I've created an edit control using CreateWindowEx. I want to capture keypresses, and send them to the parent.
When i check the input to the WM_COMMAND case in WndProc in the parent window, i don't receive anything when i press Esc, enter, etc...
How can i accomplish this, am i on the wrong direction here?
Code:
if((retVal=CreateWindowEx(WS_EX_CLIENTEDGE, "EDIT", achTxt, WS_CHILD|WS_TABSTOP, x, y, w, h, hwParent, NULL, hInstance, NULL))!=NULL){
ShowWindow(retVal, SW_SHOW); return(retVal);
}else
return(0);