Edit

WM_ Messages: S

Note

The Microsoft Foundation Classes (MFC) library continues to be supported. However, we're no longer adding features or updating the documentation.

The following map entries correspond to the function prototypes.

Map entry Function prototype
ON_WM_SETCURSOR( ) afx_msg BOOL OnSetCursor( CWnd*, UINT, UINT );
ON_WM_SETFOCUS( ) afx_msg void OnSetFocus( CWnd* );
ON_WM_SETTINGCHANGE( ) afx_msg void OnSettingChange( UINT uFlags, LPCTSTR lpszSection );
ON_WM_SHOWWINDOW( ) afx_msg void OnShowWindow( BOOL, UINT );
ON_WM_SIZE( ) afx_msg void OnSize( UINT, int, int );
ON_WM_SIZECLIPBOARD( ) afx_msg void OnSizeClipboard( CWnd*, HANDLE );
ON_WM_SIZING( ) afx_msg void OnSizing( UINT, LPRECT );
ON_WM_SPOOLERSTATUS( ) afx_msg void OnSpoolerStatus( UINT, UINT );
ON_WM_STYLECHANGED( ) afx_msg void OnStyleChanged( int, LPSTYLESTRUCT );
ON_WM_STYLECHANGING( ) afx_msg void OnStyleChanging( int, LPSTYLESTRUCT );
ON_WM_SYSCHAR( ) afx_msg void OnSysChar( UINT, UINT, UINT );
ON_WM_SYSCOLORCHANGE( ) afx_msg void OnSysColorChange( );
ON_WM_SYSCOMMAND( ) afx_msg void OnSysCommand( UINT, LONG );
ON_WM_SYSDEADCHAR( ) afx_msg void OnSysDeadChar( UINT, UINT, UINT );
ON_WM_SYSKEYDOWN( ) afx_msg void OnSysKeyDown( UINT, UINT, UINT );
ON_WM_SYSKEYUP( ) afx_msg void OnSysKeyUp( UINT, UINT, UINT );

See also

Message Maps
Handlers for WM_ Messages