Click here to Skip to main content
15,900,511 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: enumwindows on window hidden to systray Pin
4apai20-Aug-04 2:30
4apai20-Aug-04 2:30 
GeneralRe: enumwindows on window hidden to systray Pin
Micie20-Aug-04 2:58
Micie20-Aug-04 2:58 
GeneralRe: enumwindows on window hidden to systray Pin
David Crow20-Aug-04 4:37
David Crow20-Aug-04 4:37 
GeneralRe: enumwindows on window hidden to systray Pin
4apai20-Aug-04 4:44
4apai20-Aug-04 4:44 
GeneralRe: enumwindows on window hidden to systray Pin
David Crow20-Aug-04 3:00
David Crow20-Aug-04 3:00 
GeneralRe: enumwindows on window hidden to systray Pin
Blake Miller20-Aug-04 4:33
Blake Miller20-Aug-04 4:33 
Generalshow a message like tool tip Pin
zahid_ash20-Aug-04 1:30
zahid_ash20-Aug-04 1:30 
GeneralRe: show a message like tool tip Pin
V.20-Aug-04 1:54
professionalV.20-Aug-04 1:54 
Do this:
messagemap:
ON_NOTIFY_EX(TTN_NEEDTEXT, 0, OnToolTipNotify)

in .h file:
afx_msg BOOL OnToolTipNotify(UINT id, NMHDR *pNMHDR,LRESULT *pResult);

function implementation something like this:
BOOL PbmFlexListViewer::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_PBM_DOWN:		tooltiptext2display.Format(IDS_MOVE_ROW_DOWN_PBM);<br />
			break;<br />
			case IDC_PBM_UP:		tooltiptext2display.Format(IDS_MOVE_ROW_UP_PBM);<br />
			break;<br />
			case IDC_FLEX_NEW_ITEM:	tooltiptext2display.Format(IDS_ADD_NEW_ITEM);<br />
			break;<br />
			case IDC_BUTTON_PRINT:	tooltiptext2display.Format(IDS_PBM_FLEXLIST_PRINT);<br />
			break;<br />
			case IDC_STATIC_ROW_COL:tooltiptext2display.Format(IDS_TOOLTIP_FLEXLIST_STATICCURRENTCELL);<br />
			break;<br />
			default:				tooltiptext2display = "";<br />
			break;<br />
		}								//end switch<br />
		strcpy(pTTT->szText, tooltiptext2display);<br />
		return(TRUE);<br />
	}									//end if<br />
	else{ return FALSE; }				//end else<br />
}										//end function OnToolTipNotify


DON'T FORGET in OnInitDialog or constructor:
EnableToolTips(true);

good luck.

"If I don't see you in this world, I'll see you in the next one... and don't be late." ~ Jimi Hendrix
GeneralRe: show a message like tool tip Pin
Ravi Bhavnani20-Aug-04 2:17
professionalRavi Bhavnani20-Aug-04 2:17 
GeneralQuestion about WTS fucntions Pin
4apai20-Aug-04 1:01
4apai20-Aug-04 1:01 
GeneralRe: Question about WTS fucntions Pin
4apai20-Aug-04 1:33
4apai20-Aug-04 1:33 
GeneralRe: Question about WTS fucntions Pin
Blake Miller20-Aug-04 4:42
Blake Miller20-Aug-04 4:42 
GeneralRe: Question about WTS fucntions Pin
4apai20-Aug-04 5:43
4apai20-Aug-04 5:43 
GeneralRe: Question about WTS fucntions Pin
Blake Miller30-Aug-04 6:29
Blake Miller30-Aug-04 6:29 
GeneralRe: Question about WTS fucntions Pin
4apai30-Aug-04 22:22
4apai30-Aug-04 22:22 
GeneralPrinting CFormView Pin
Stan the man20-Aug-04 0:31
Stan the man20-Aug-04 0:31 
QuestionHow can I put a breakpoint in DLL? Pin
Kamis19-Aug-04 23:22
Kamis19-Aug-04 23:22 
AnswerRe: How can I put a breakpoint in DLL? Pin
Antony M Kancidrowski19-Aug-04 23:51
Antony M Kancidrowski19-Aug-04 23:51 
GeneralRe: How can I put a breakpoint in DLL? Pin
Kamis20-Aug-04 0:05
Kamis20-Aug-04 0:05 
GeneralRe: How can I put a breakpoint in DLL? Pin
Antony M Kancidrowski20-Aug-04 0:19
Antony M Kancidrowski20-Aug-04 0:19 
GeneralRe: How can I put a breakpoint in DLL? Pin
Kamis20-Aug-04 0:29
Kamis20-Aug-04 0:29 
AnswerRe: How can I put a breakpoint in DLL? Pin
jmkhael19-Aug-04 23:52
jmkhael19-Aug-04 23:52 
GeneralRe: How can I put a breakpoint in DLL? Pin
Kamis20-Aug-04 0:07
Kamis20-Aug-04 0:07 
GeneralRe: How can I put a breakpoint in DLL? Pin
jmkhael20-Aug-04 0:13
jmkhael20-Aug-04 0:13 
GeneralRe: How can I put a breakpoint in DLL? Pin
Kamis20-Aug-04 0:18
Kamis20-Aug-04 0:18 

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.