I have a WinAPI application that creates a dialogbox from a template. this dialogbox contains a custom control, that I implement myself. This custom control contains two editboxes (created dynamically). The editboxes are single-line.
The problem I have is that I need to receive VK_RETURN in the message WM_KEYDOWN (not after the button has been released) in the window procedure of the editbox (I have subclassed the editboxes to handle events) and I can't.
Using Spy++, I have seen that the editbox DOES post the message, but I do not receive it in my "case WM_KEYDOWN:" section of EditProcedure. However, i receive WM_KEYUP when I press VK_RETURN and WM_KEYDOWN when I press VK_BACK.
can anybody give me an idea about what to do?
I am using VC++ 2008.