Click here to Skip to main content
16,005,120 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CDialog Question Pin
David Crow26-Jan-05 8:41
David Crow26-Jan-05 8:41 
GeneralRe: CDialog Question Pin
Blake Miller26-Jan-05 8:43
Blake Miller26-Jan-05 8:43 
GeneralRe: CDialog Question Pin
Anonymous26-Jan-05 9:20
Anonymous26-Jan-05 9:20 
GeneralRe: CDialog Question Pin
Blake Miller26-Jan-05 11:26
Blake Miller26-Jan-05 11:26 
GeneralRe: CDialog Question Pin
poiut26-Jan-05 9:37
poiut26-Jan-05 9:37 
Generaldsadas Pin
Anonymous26-Jan-05 5:08
Anonymous26-Jan-05 5:08 
GeneralDisplaying Tooltiptext -Problem Pin
Pazzuzu26-Jan-05 4:55
Pazzuzu26-Jan-05 4:55 
GeneralRe: Displaying Tooltiptext -Problem Pin
V.26-Jan-05 5:11
professionalV.26-Jan-05 5:11 
FROM MSDN:

In writing your tool tip notification handler, you need to use the TOOLTIPTEXT structure. The members of the TOOLTIPTEXT structure are:

typedef struct {
NMHDR hdr; // required for all WM_NOTIFY messages
LPTSTR lpszText; // see below
WCHAR szText[80]; // buffer for tool tip text
HINSTANCE hinst; // see below
UINT uflags; // flag indicating how to interpret the
// idFrom member of the NMHDR structure
// that is included in the structure
} TOOLTIPTEXT, FAR *LPTOOLTIPTEXT;
hdr
Identifies the tool that needs text. The only member of this structure you might need is the control's command ID. The control's command ID will be in the idFrom member of the NMHDR structure, accessed with the syntax hdr.idFrom. See NMHDR for a discussion of members of the NMHDR structure.
lpszText
Address of a string to receive the text for a tool.
szText
Buffer that receives the tool tip text. An application can copy the text to this buffer as an alternative to specifying a string address.
hinst
Handle of the instance that contains a string resource to be used as the tool tip text. If lpszText is the address of the tool tip text, this member is NULL.
When you handle the TTN_NEEDTEXT notification message, specify the string to be displayed in one of the following ways:

Copy the text to the buffer specified by the szText member.
Copy the address of the buffer that contains the text to the lpszText member.
Copy the identifier of a string resource to the lpszText member, and copy the handle of the instance that contains the resource to the hinst member


I think you can try using szText. Remember it can only hold 80 characters, which is not much.

good luck.
(let me now if it worked? tnx)

"If I don't see you in this world, I'll see you in the next one... and don't be late." ~ Jimi Hendrix
GeneralAccessing float from an Edit Box (MFC) Pin
Member 166473326-Jan-05 4:53
Member 166473326-Jan-05 4:53 
GeneralRe: Accessing float from an Edit Box (MFC) Pin
Chris Losinger26-Jan-05 5:32
professionalChris Losinger26-Jan-05 5:32 
GeneralRe: Accessing float from an Edit Box (MFC) Pin
Bob Ciora26-Jan-05 5:51
Bob Ciora26-Jan-05 5:51 
Generalwindows task manager Pin
Devasish26-Jan-05 2:52
Devasish26-Jan-05 2:52 
GeneralRe: windows task manager Pin
David Crow26-Jan-05 5:58
David Crow26-Jan-05 5:58 
GeneralRe: windows task manager Pin
Blake Miller26-Jan-05 8:49
Blake Miller26-Jan-05 8:49 
GeneralADO Question Updated VC++ Pin
ivax26-Jan-05 2:50
ivax26-Jan-05 2:50 
GeneralRe: ADO Question Pin
BlackDice26-Jan-05 6:38
BlackDice26-Jan-05 6:38 
GeneralRe: ADO Question Pin
ivax27-Jan-05 1:11
ivax27-Jan-05 1:11 
Generalpdf search api Pin
Anonymous26-Jan-05 2:36
Anonymous26-Jan-05 2:36 
Generaltemplates with a nice unresolved external Pin
Ylis26-Jan-05 2:23
Ylis26-Jan-05 2:23 
GeneralRe: templates with a nice unresolved external Pin
ThatsAlok26-Jan-05 2:37
ThatsAlok26-Jan-05 2:37 
GeneralRe: templates with a nice unresolved external Pin
Bob Ciora26-Jan-05 2:38
Bob Ciora26-Jan-05 2:38 
GeneralRe: templates with a nice unresolved external Pin
Ylis26-Jan-05 3:49
Ylis26-Jan-05 3:49 
GeneralRe: templates with a nice unresolved external Pin
Bob Ciora26-Jan-05 4:03
Bob Ciora26-Jan-05 4:03 
GeneralRe: templates with a nice unresolved external Pin
Nemanja Trifunovic26-Jan-05 2:53
Nemanja Trifunovic26-Jan-05 2:53 
GeneralCode completion plugin for Borland C++ Pin
Jose M Castellanos26-Jan-05 1:55
Jose M Castellanos26-Jan-05 1:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.