-
December 11th, 2009, 10:19 PM
#1
[RESOLVED] WM_KEYDOWN VK_RETURN problem
Hi!
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|