WM_KEYDOWN problem

hello friends,
i have little problem with WM_KEYDOWN message:

i created simple button which is done in WM_CREATE

and WM_KEYDOWN portion is here:

switch(wParam)
{
case VK_ESCAPE:
MessageBox(0,"escape message","",0);
break;
}

everything is working fine unless i click the button. after i click button WM_KEYDOWN message is not posted. Why is this happening?

thanks for your help.
Topic archived. No new replies allowed.