WM_HOTKEY is not included in the Class Wizard, if you want to set this message, you must be added manually. Suppose the name of the Project is Temp, then the operation is as follows: 1. The statement of the hot key message processing function is added at the message map in the temption.h file. // {{AFX_MSG (CTempView) afx_msg void OnChar (UINT nChar, UINT nRepCnt, UINT nFlags); afx_msg void OnDestroy (); afx_msg int OnCreate (LPCREATESTRUCT lpCreateStruct); afx_msg void OnKeyDown (UINT nChar, UINT nRepCnt, UINT nFlags); afx_msg void OnKeyUp (UINT nChar, UINT nRepCnt, UINT nFlags); afx_msg void OnHScroll (UINT nSBCode, UINT nPos, CScrollBar * pScrollBar); afx_msg void onKillFocus (CWnd * pNewWnd); afx_msg void OnMouseMove (UINT nFlags, CPoint point); afx_msg Void OnlButtonup (Uint Nflags, Cpoint Point); //}} AFX_MSG LRESULT OnHotKey (WPARAM WPARAM, LPARAM LRESULT); // This sentence is the addition of the content, and the hotkey message processing function is declared. Declare_message_map ()