CodePudding user response:
PreTranslateMessage event
If (pMsg - & gt; Message==WM_KEYDOWN) is a keyboard events
CodePudding user response:
if (WM_KEYDOWN==pMsg - & gt; Message)//here to judge the type of message, is WM_KEYDOWN said keys news
{
If ((VK_LEFT==pMsg - & gt; WParam))//judgment which buttons here
{
//here after the add button to do
}
}
CodePudding user response:
Also can give you the main form of directly adding WM_KEYDOWN message processing function, which is inside the message processing function directly determine the button is pressedCodePudding user response:
Ok, I will, thank you!!!!!!