Click here to Skip to main content
16,016,168 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: checking if document is closing Pin
MailtoGops6-Jun-05 5:08
MailtoGops6-Jun-05 5:08 
GeneralRe: checking if document is closing Pin
liquid_6-Jun-05 5:12
liquid_6-Jun-05 5:12 
GeneralCreating and displaying video stream from raw data Pin
rfenton1236-Jun-05 3:21
rfenton1236-Jun-05 3:21 
GeneralRaw Database File Format Pin
Toni786-Jun-05 3:14
Toni786-Jun-05 3:14 
GeneralRe: Raw Database File Format Pin
David Crow6-Jun-05 4:22
David Crow6-Jun-05 4:22 
GeneralRe: Raw Database File Format Pin
Toni786-Jun-05 5:42
Toni786-Jun-05 5:42 
GeneralChild DialogBox (win32) doesn't receive ENTER keyboard input Pin
jean-francois.lefebvre6-Jun-05 2:58
jean-francois.lefebvre6-Jun-05 2:58 
GeneralRe: Child DialogBox (win32) doesn't receive ENTER keyboard input Pin
Andy Moore6-Jun-05 7:45
Andy Moore6-Jun-05 7:45 
There is some extra coding that you have to do to make this work with a modeless dialog.

You first need to set a WH_GETMESSAGE hook in the dialogs WndProc for WM_INITDIALOG. You hook proc will look something like this:

LRESULT CALLBACK GetMessageProc( int nCode, WPARAM wParam, LPARAM lParam )<br />
{<br />
	LPMSG lpMsg = (LPMSG)lParam;<br />
<br />
	if( (nCode >= 0) && wParam == PM_REMOVE &&<br />
		(lpMsg->message >= WM_KEYFIRST && lpMsg->message <= WM_KEYLAST) )<br />
	{<br />
		if( IsWindow( lpMsg->hwnd ) && IsDialogMessage( g_hWnd, lpMsg ) )<br />
		{<br />
			/*Tell windows to avoid further processing of this message. The IsDialogMessage<br />
			  call will tell windows to convert keyboard accelerators into the correct button<br />
			  commands.*/<br />
			lpMsg->hwnd = NULL;<br />
			lpMsg->message = WM_NULL;<br />
			lpMsg->lParam = 0L;<br />
			lpMsg->wParam = 0;<br />
		}<br />
	}<br />
<br />
	return ( CallNextHookEx( g_hHook, nCode, wParam, lParam ) );<br />
}


I hope this helps.

Human beings were not meant to sit in little cubicles staring at computer screens all day, filling out useless forms and listening to eight different bosses drone on about about mission statements. -- Peter Gibbons
GeneralCRichEditDoc Serialization strangeness Pin
hairy_hats6-Jun-05 2:56
hairy_hats6-Jun-05 2:56 
GeneralpInvoke problem Pin
ppp0016-Jun-05 1:15
ppp0016-Jun-05 1:15 
QuestionWhy am i getting this message? Pin
mpallavi6-Jun-05 0:57
mpallavi6-Jun-05 0:57 
AnswerRe: Why am i getting this message? Pin
RChin6-Jun-05 1:01
RChin6-Jun-05 1:01 
GeneralRe: Why am i getting this message? Pin
mpallavi6-Jun-05 1:41
mpallavi6-Jun-05 1:41 
GeneralRe: Why am i getting this message? Pin
RChin6-Jun-05 1:50
RChin6-Jun-05 1:50 
GeneralRe: Why am i getting this message? Pin
mpallavi6-Jun-05 2:26
mpallavi6-Jun-05 2:26 
AnswerRe: Why am i getting this message? Pin
ThatsAlok6-Jun-05 1:07
ThatsAlok6-Jun-05 1:07 
GeneralRe: Why am i getting this message? Pin
mpallavi6-Jun-05 1:43
mpallavi6-Jun-05 1:43 
GeneralRe: Why am i getting this message? Pin
ThatsAlok6-Jun-05 1:47
ThatsAlok6-Jun-05 1:47 
Generalcapturing the save events Pin
Anonymous6-Jun-05 0:47
Anonymous6-Jun-05 0:47 
GeneralRe: capturing the save events Pin
MailtoGops6-Jun-05 4:54
MailtoGops6-Jun-05 4:54 
GeneralRe: capturing the save events Pin
Sunil Virmani6-Jun-05 18:19
Sunil Virmani6-Jun-05 18:19 
GeneralGetting the number of packets received / sent Pin
Nikhil Wason5-Jun-05 23:53
Nikhil Wason5-Jun-05 23:53 
GeneralRe: Getting the number of packets received / sent Pin
ThatsAlok5-Jun-05 23:56
ThatsAlok5-Jun-05 23:56 
GeneralRe: Getting the number of packets received / sent Pin
Cedric Moonen6-Jun-05 0:03
Cedric Moonen6-Jun-05 0:03 
GeneralRe: Getting the number of packets received / sent Pin
ThatsAlok6-Jun-05 0:12
ThatsAlok6-Jun-05 0:12 

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.