CWnd::OnWndMsg
Visual Studio 2012
This member function is called by WindowProc, or is called during message reflection.
virtual BOOL OnWndMsg( UINT message, WPARAM wParam, LPARAM lParam, LRESULT* pResult );
OnWndMsg determines the message type and either calls the appropriate framework function (for example, OnCommand for WM_COMMAND) or finds the appropriate message in the message map.
For more information about message reflection, see Handling Reflected Messages.