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...
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...