Click here to Skip to main content
15,849,030 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: [how to] multi-language/unicode application Pin
zecodela12-May-03 0:36
zecodela12-May-03 0:36 
GeneralRe: [how to] multi-language/unicode application Pin
Ted Ferenc12-May-03 1:06
Ted Ferenc12-May-03 1:06 
GeneralRe: [how to] multi-language/unicode application Pin
zecodela12-May-03 1:58
zecodela12-May-03 1:58 
GeneralRe: [how to] multi-language/unicode application Pin
Anonymous12-May-03 4:46
Anonymous12-May-03 4:46 
GeneralPassing a va_list to printf Pin
Jo Fredrickson10-May-03 21:37
Jo Fredrickson10-May-03 21:37 
GeneralRe: Passing a va_list to printf Pin
Johnny ²10-May-03 22:30
Johnny ²10-May-03 22:30 
GeneralRe: Passing a va_list to printf Pin
Jo Fredrickson10-May-03 23:15
Jo Fredrickson10-May-03 23:15 
QuestionPossible solutions to my problem? Pin
georgiek5010-May-03 18:40
georgiek5010-May-03 18:40 
I need some programming advice to a specific problem I am having in my app. I have a bunch of owner-drawn buttons on the main window, all of which work with a tooltip through a hook. I have subclassed the windows to receive the WM_LBUTTONDOWN and WM_LBUTTONUP messages. When the user clicks on the button a "push" is simulated through InvalidateRect and through BitBlt in WM_DRAWITEM a new bitmap is painted when the mouse button is pressed down and then the button is repainted upon WM_LBUTTONUP. All this works fine expect when the tooltip is showing. I am thinking it has something to do with the hook. Does someone have a workaround for this. Here is the code to the hook procedure:

<br />
LRESULT CALLBACK GetMsgProc(int nCode, WPARAM wParam, LPARAM lParam)<br />
{	<br />
	if (nCode < 0) <br />
		return CallNextHookEx(cSkinObject.hMsgHook, nCode, wParam, lParam); <br />
	<br />
	switch ( ((MSG*)lParam)->message ) <br />
	{ <br />
		case WM_MOUSEMOVE:<br />
		case WM_LBUTTONDOWN:<br />
			SendMessage(hwndTool, TTM_RELAYEVENT, 0, lParam);<br />
	<br />
			break;<br />
	<br />
		default: <br />
		<br />
			break; <br />
    } <br />
    return CallNextHookEx(cSkinObject.hMsgHook, nCode, wParam, lParam); <br />
}<br />
<br />
Thanks in advance.<br />

AnswerRe: Possible solutions to my problem? Pin
G. Steudtel12-May-03 2:50
G. Steudtel12-May-03 2:50 
GeneralDialog box Handle where to find it Pin
WinNewbie10-May-03 16:24
sussWinNewbie10-May-03 16:24 
GeneralRe: Dialog box Handle where to find it Pin
Michael Dunn10-May-03 18:12
sitebuilderMichael Dunn10-May-03 18:12 
GeneralRe: Dialog box Handle where to find it Pin
Win Newbie11-May-03 3:39
sussWin Newbie11-May-03 3:39 
GeneralRe: Dialog box Handle where to find it Pin
WinNewbie12-May-03 7:19
sussWinNewbie12-May-03 7:19 
GeneralHave split up string, but there must be a better way of doing this!! Pin
IrishSonic10-May-03 15:18
IrishSonic10-May-03 15:18 
GeneralRe: Have split up string, but there must be a better way of doing this!! Pin
Bartosz Bien10-May-03 15:24
Bartosz Bien10-May-03 15:24 
GeneralRe: Have split up string, but there must be a better way of doing this!! Pin
Michael Dunn10-May-03 15:29
sitebuilderMichael Dunn10-May-03 15:29 
Generalread a vector Pin
aguest10-May-03 14:48
aguest10-May-03 14:48 
GeneralRe: read a vector Pin
Ernest Laurentin10-May-03 15:50
Ernest Laurentin10-May-03 15:50 
GeneralRe: read a vector Pin
aguest10-May-03 16:37
aguest10-May-03 16:37 
GeneralProblem with GetLine() in a CEdit Pin
selecta10-May-03 13:29
selecta10-May-03 13:29 
GeneralRe: Problem with GetLine() in a CEdit Pin
Ernest Laurentin10-May-03 15:44
Ernest Laurentin10-May-03 15:44 
GeneralRe: Problem with GetLine() in a CEdit Pin
selecta11-May-03 7:17
selecta11-May-03 7:17 
GeneralRe: Problem with GetLine() in a CEdit Pin
selecta11-May-03 8:27
selecta11-May-03 8:27 
GeneralHtml control and selection Pin
Atlence10-May-03 12:30
Atlence10-May-03 12:30 
GeneralCBTProc not working Pin
S van Leent10-May-03 9:46
S van Leent10-May-03 9:46 

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.