Click to See Complete Forum and Search --> : RichEdit Keyboard problem


kearxxx
July 25th, 2006, 07:47 AM
Hi,

I'm really confused right now.
I have build an MDI appliation. One of the MDI child windows, when it is
created (gets WM_CREATE message) creates the richedit classwindow.
Of course the MDI child is a parent for the richedit control.

My problem is that i want to detect the cursor moves, so i tried to control
all messages like: WM_CHAR/WM_KEYDOWN/WM_KEYUP/WM_NOTIFY/WM_COMMAND in the MdiChildWndProc, but it seems such event doesnt occur.

I tried to do the same in the main window proc with the same effect.
Is there any way to handle WM_KEYDOWN etc. etc. messages for the RichEdit control? The cursor change its position but i need to handle the message to know where. Can anybody help?

Thank you!

kearxxx
July 25th, 2006, 08:32 AM
ROTFL!

I've figured out the problem, i forgot to use this thing:
SendMessage(hRich, EM_SETEVENTMASK, (WPARAM) 0, (LPARAM) MyProc) ;