Click here to Skip to main content
15,914,010 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Results of ReadProcessMemory() Pin
4apai20-Aug-04 5:37
4apai20-Aug-04 5:37 
GeneralRe: Results of ReadProcessMemory() Pin
jmkhael20-Aug-04 5:43
jmkhael20-Aug-04 5:43 
GeneralRe: Results of ReadProcessMemory() Pin
4apai20-Aug-04 5:49
4apai20-Aug-04 5:49 
GeneralRe: Results of ReadProcessMemory() Pin
Micie20-Aug-04 5:55
Micie20-Aug-04 5:55 
GeneralRe: Results of ReadProcessMemory() Pin
4apai20-Aug-04 6:04
4apai20-Aug-04 6:04 
GeneralRe: Results of ReadProcessMemory() Pin
Micie20-Aug-04 6:08
Micie20-Aug-04 6:08 
GeneralRe: Results of ReadProcessMemory() Pin
David Crow20-Aug-04 6:23
David Crow20-Aug-04 6:23 
GeneralRe: Results of ReadProcessMemory() Pin
jmkhael20-Aug-04 6:25
jmkhael20-Aug-04 6:25 
Generalenumwindows on window hidden to systray Pin
NikoTanghe20-Aug-04 1:34
NikoTanghe20-Aug-04 1:34 
GeneralRe: enumwindows on window hidden to systray Pin
4apai20-Aug-04 1:51
4apai20-Aug-04 1:51 
GeneralRe: enumwindows on window hidden to systray Pin
NikoTanghe20-Aug-04 2:01
NikoTanghe20-Aug-04 2:01 
GeneralRe: enumwindows on window hidden to systray Pin
4apai20-Aug-04 2:12
4apai20-Aug-04 2:12 
GeneralRe: enumwindows on window hidden to systray Pin
NikoTanghe20-Aug-04 2:19
NikoTanghe20-Aug-04 2:19 
GeneralRe: enumwindows on window hidden to systray Pin
4apai20-Aug-04 2:21
4apai20-Aug-04 2:21 
GeneralRe: enumwindows on window hidden to systray Pin
NikoTanghe20-Aug-04 2:25
NikoTanghe20-Aug-04 2:25 
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 

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.