怎么添加WMHOTKEY的消息?

日期:2021-12-29 21:15:54 人气:1

怎么添加WMHOTKEY的消息?

RegisterHotKey(this->m_hWnd,1001,MOD_CONTROL|MOD_ALT,'Z');
LRESULT CMy50Dlg::OnHotKey(WPARAM wParam,LPARAM lParam)
{
this->SetForegroundWindow();
return 1;
}
ON_MESSAGE(WM_HOTKEY,OnHotKey)
LRESULT OnHotK
    A+
热门评论