I'm having a real bummer here on Windows CE. I am developing a file editing utility for CE, and basically it's a dialog window with lots of edit controls. I create the main window like this
hwndApp = CreateWindowEx(WS_EX_CLIENTEDGE,
TEXT("RAS Profile Editor"),
TEXT("RAS Profile Editor"),
WS_VISIBLE | WS_CAPTION | WS_SYSMENU,
0, 0, 410, 220,
NULL,
NULL,
ghInstance,
0);
where RAS Profile Editor is the registered class name. I then
create the child edit windows, one of which looks like this:
hCountryCode = CreateWindowEx(0,
TEXT( "EDIT" ),
szCountryCode.c_str(),
WS_CHILD | WS_VISIBLE | WS_BORDER |
ES_AUTOHSCROLL,
7, 25, 20, 30,
hwndApp,
(HMENU)IDC_COUNTRYCODE,
ghInstance,
NULL);
Note the parent window handle is the window created above.
Now, this all works and draws and looks great, BUT, I cannot get any char messages from the edit box! No keyboard messages come back to the parent proc as WM_COMMAND's. It DOES go into the parent's window proc when I set focus or click on the edit control using the mouse, but no keyboard commands.
How do I get these messages handled??????