I have a dialog box with a cricheditctrl inside.
I can't catch the keyboard although I use OnChar() function.
Printable View
I have a dialog box with a cricheditctrl inside.
I can't catch the keyboard although I use OnChar() function.
Hi ,
You need to derive your own CRichedit Class, call, the following code
OnGetDlgCode..
UINT result = CMyDerivedClass::OnGetDlgCode();
result = result DLGC_WANTALLKEYS;
return result;
Then you can call OnChar or OnKeyDown