类向导添加PreTranslateMessage虚函数
在函数内添加:
1某一按钮响应
if (pMsg->wParam == VK_F12 )
{
MessageBox("12");
return 1;
}
2组合按钮响应
if (pMsg->wParam == VK_F12 && (GetKeyState(VK_CONTROL)))
{
MessageBox("c+12");
return 1;
}
类向导添加PreTranslateMessage虚函数
在函数内添加:
1某一按钮响应
if (pMsg->wParam == VK_F12 )
{
MessageBox("12");
return 1;
}
2组合按钮响应
if (pMsg->wParam == VK_F12 && (GetKeyState(VK_CONTROL)))
{
MessageBox("c+12");
return 1;
}