Hi,
I am trying to catch the VK_RETURN message from a edit control in my window app. I have created a main window which i them add a edit control like this:
Code:
sendTextHandle = CreateWindowEx(
WS_EX_WINDOWEDGE, "EDIT", NULL,
WS_VISIBLE|WS_BORDER|ES_AUTOHSCROLL,
10, 415, 500, 30, mainHwnd, (HMENU)150,
hInstance, NULL);
where mainHwnd is the handle to main window
THe edit box is created and display in the main window. But i cant figure out to catch events from it. I can catch when something is being typed into it by the VW_COMMAND, but which message do i switch on for the Enter key. VW_KEYDOWN dosnt catch it.
Also...when i type in the edit control it goes off and displays the letter for a while in the editbox. I can slow it down by looping on a counter when i recieve a VW_COMMAND message from it, but is there any other way...
G'n'R