Click to See Complete Forum and Search --> : catch the keyboard


Septimiu
May 28th, 1999, 06:51 AM
I have a dialog box with a cricheditctrl inside.
I can't catch the keyboard although I use OnChar() function.

May 28th, 1999, 07:01 AM
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