Click here to Skip to main content
16,010,918 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Trail version... Pin
RobJones8-Jul-04 6:09
RobJones8-Jul-04 6:09 
GeneralCPropertyPage / CPropertySheet problem Pin
SJolly8-Jul-04 2:32
SJolly8-Jul-04 2:32 
GeneralRe: CPropertyPage / CPropertySheet problem Pin
David Crow8-Jul-04 2:54
David Crow8-Jul-04 2:54 
GeneralRe: CPropertyPage / CPropertySheet problem Pin
SJolly8-Jul-04 3:46
SJolly8-Jul-04 3:46 
GeneralRe: CPropertyPage / CPropertySheet problem Pin
David Crow8-Jul-04 3:57
David Crow8-Jul-04 3:57 
GeneralRe: CPropertyPage / CPropertySheet problem Pin
SJolly8-Jul-04 4:09
SJolly8-Jul-04 4:09 
GeneralCHeaderList messages via CViewList Pin
Member 3600828-Jul-04 2:27
Member 3600828-Jul-04 2:27 
Questiononly 1 control catches tooltip? Pin
V.8-Jul-04 2:16
professionalV.8-Jul-04 2:16 
This is the situation:
ON_NOTIFY_EX(TTN_NEEDTEXT, 0, OnToolTipNotify )
EnableToolTips(TRUE); is the first statement in OnInitDialog
<br />
BOOL DlgFlexListFormatColumns::OnToolTipNotify(UINT id, NMHDR *pNMHDR, LRESULT *pResult){<br />
	//pTTT->szText ==> maximum 80 characters<br />
	CString tooltiptext2display;<br />
	tooltiptext2display = "";<br />
	TOOLTIPTEXT *pTTT = (TOOLTIPTEXT *)pNMHDR;    <br />
	UINT nID = pNMHDR->idFrom;<br />
    if (pTTT->uFlags & TTF_IDISHWND)   {<br />
        // idFrom is actually the HWND of the tool<br />
        nID = ::GetDlgCtrlID((HWND)nID);<br />
		switch(nID){<br />
			case IDC_STATIC_LINESPERROW: tooltiptext2display.Format(IDS_LINESPERROW);<br />
			break;<br />
			case IDC_EDIT_NROFLINES:	 tooltiptext2display.Format(IDS_LINESPERROW);<br />
			break;<br />
			default:<br />
			break;<br />
		}									//end switch<br />
		strcpy(pTTT->szText, tooltiptext2display);<br />
		return(TRUE);<br />
	}										//end if<br />
	else{ return FALSE; }					//end else<br />
}											//end method OnToolTipNotify<br />

and in the header:
afx_msg BOOL OnToolTipNotify(UINT id, NMHDR *pNMHDR,LRESULT *pResult);<br />


QUESTION:
There is only 1 control in my dialog which catches (and thus shows) a tooltip. All the rest does nothing.
What did I do wrong?

tnx for your help...

"If I don't see you in this world, I'll see you in the next one... and don't be late." ~ Jimi Hendrix
AnswerRe: only 1 control catches tooltip? Pin
David Crow8-Jul-04 2:57
David Crow8-Jul-04 2:57 
GeneralRe: only 1 control catches tooltip? Pin
V.8-Jul-04 3:00
professionalV.8-Jul-04 3:00 
GeneralRe: only 1 control catches tooltip? Pin
David Crow8-Jul-04 3:06
David Crow8-Jul-04 3:06 
GeneralRe: only 1 control catches tooltip? Pin
V.8-Jul-04 3:27
professionalV.8-Jul-04 3:27 
GeneralRe: only 1 control catches tooltip? Pin
David Crow8-Jul-04 4:04
David Crow8-Jul-04 4:04 
GeneralRe: only 1 control catches tooltip? Pin
V.8-Jul-04 3:56
professionalV.8-Jul-04 3:56 
GeneralRe: only 1 control catches tooltip? Pin
David Crow8-Jul-04 4:00
David Crow8-Jul-04 4:00 
GeneralClass hierarchy question... Pin
vmaltsev8-Jul-04 1:57
vmaltsev8-Jul-04 1:57 
GeneralRe: Class hierarchy question... Pin
Hans Ruck8-Jul-04 5:05
Hans Ruck8-Jul-04 5:05 
QuestionHow to trap Ctrl + F keys in listctrl Pin
Azghar Hussain8-Jul-04 1:23
professionalAzghar Hussain8-Jul-04 1:23 
AnswerRe: How to trap Ctrl + F keys in listctrl Pin
Steve Thresher8-Jul-04 4:12
Steve Thresher8-Jul-04 4:12 
AnswerRe: How to trap Ctrl + F keys in listctrl Pin
*Dreamz8-Jul-04 4:16
*Dreamz8-Jul-04 4:16 
GeneralNIC number Pin
Monty28-Jul-04 0:57
Monty28-Jul-04 0:57 
GeneralRe: NIC number Pin
RobJones8-Jul-04 2:41
RobJones8-Jul-04 2:41 
GeneralButton control Pin
macmac388-Jul-04 0:54
macmac388-Jul-04 0:54 
GeneralRe: Button control Pin
V.8-Jul-04 1:02
professionalV.8-Jul-04 1:02 
GeneralRe: Button control Pin
David Crow8-Jul-04 4:11
David Crow8-Jul-04 4:11 

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.