CWnd::GetCurrentMessage
staticconstMSG*PASCALGetCurrentMessage();
Return Value
Returns a pointer to the MSG structure that contains the message the window is currently processing. Should only be called when in an OnMessage handler.
Example
See the example for CMDIFrameWnd::MDICascade.