Reg : Key Down message not receiving in dialog procedure
-
Hi, I created an dialog application in SDK. Dialog does not contain any control. I tried to capture WM_KEYDOWN message, but not receiving this messaage. In MFC I can track this message in PreTranslateMessage but I do not know how to track in SDK. Any Idea please. Thanks
-
Hi, I created an dialog application in SDK. Dialog does not contain any control. I tried to capture WM_KEYDOWN message, but not receiving this messaage. In MFC I can track this message in PreTranslateMessage but I do not know how to track in SDK. Any Idea please. Thanks
If you dont have any control on the dialog you can us eof WM_KEYDOWN/UP can you show your code and see Keyboard messages/accelerators handling in MFC dialog...[^]
-
If you dont have any control on the dialog you can us eof WM_KEYDOWN/UP can you show your code and see Keyboard messages/accelerators handling in MFC dialog...[^]
BOOL CALLBACK DialogProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) { BOOL bResult = FALSE; switch(uMsg) { case WM_INITDIALOG: // implemention code; bResult = TRUE; break; case WM_KEYDOWN: // implemention code; bResult = TRUE; break; } return(bResult); } DialogBox(g_hInstance, MAKEINTRESOURCE(IDD_DIALOG1), NULL, DialogProc);