win32 api:
So when one of my dialog boxes has focus, I press 'a' and then do some stuff in the WM_KEYDOWN message, and then it gives the bell/warning sound. Is there someway to suppress this?
win32 api:
So when one of my dialog boxes has focus, I press 'a' and then do some stuff in the WM_KEYDOWN message, and then it gives the bell/warning sound. Is there someway to suppress this?
It seems I needed to add a:
HANDLE_MSG(hWnd, WM_GETDLGCODE, Dlg_YOURPROC_OnGetDlgCode);
to the dialog and then in the Dlg_YOURPROC_OnGetDlgCode you need to return DLGC_WANTCHARS:
UINT Dlg_YOURPROC_OnGetDlgCode(HWND hwnd, LPMSG lpmsg)
{
return DLGC_WANTCHARS;
}
Not sure why I was downvoted for my question, I seem to have provided enough information for an answer...