win32 Dialogbox

  • Thread starter Thread starter sgrm123
  • Start date Start date
S

sgrm123

Guest
Hi,

I am launching a modal dialog using dialogBox function in win32 application but when typing letters WM_CHAR or WM_KEYDOWN is not getting called.


DialogBox(hInstance,MAKEINTRESOURCE (Res), hParentWnd, Dialog_Simulation_Proc);

BOOL CALLBACK Dialog_Simulation_Proc(HWND hWnd, UINT msg, WPARAM wparam, LPARAM lparam)
{
hDlgHwnd=hWnd;

switch(msg)
{
case WM_CHAR:
gKeyBoardChar = (char)wparam;
break;
case WM_KEYDOWN:
gKeyBoardChar = (char)wparam;
break;






How to get the letter typed?

Continue reading...
 
Back
Top