How can a window in a dialog receive keyboard message?
I create a window in a dialog.This window can show 3D drawing including rotation and can receive mouse message,but it can not receive keyboard message.
Please tell me why,Thank you for your answer.My code for create window is as follow.Maybe it need more parameter.
My program for create window is as follow:
R2=CRect(200, 600, 1000, 800);
// TODO: Add extra initialization here
m_pDisplay1->Create( NULL, //CWnd default
NULL, //has no name
WS_CHILD|WS_CLIPSIBLINGS|WS_CLIPCHILDREN|WS_VISIBLE,
R2,
this, //this is the parent
u1);