用法类似这样。。。
BOOL WinMsg(MSG *pMsg)
{
ASSERT(pMsg);
if(pMsg->message == WM_KEYDOWN)
{
switch(pMsg->wParam)
{
case VK_ESCAPE:
// if is pressed, then the palette is dismissed.
case VK_RETURN:
case VK_SPACE:
{
destroyWindow();
break;
}
default:
break;
}
}
return false;
}
//enable windows messaging.
acedRegisterFilterWinMsg(WinMsg);