다음을 통해 공유


CWnd::OnWndMsg

This member function is called by WindowProc, or is called during message reflection.

virtual BOOL OnWndMsg(
   UINT message,
   WPARAM wParam,
   LPARAM lParam,
   LRESULT* pResult 
);

Parameters

  • message
    Specifies the message to be sent.

  • wParam
    Specifies additional message-dependent information.

  • lParam
    Specifies additional message-dependent information.

  • pResult
    The return value of WindowProc. Depends on the message; may be NULL.

Return Value

TRUE if message was handled; otherwise FALSE.

Remarks

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.

Requirements

Header: afxwin.h

See Also

Reference

CWnd Class

Hierarchy Chart

CWnd::OnChildNotify

CWnd::SendChildNotifyLastMsg

CWnd::ReflectChildNotify

CCmdTarget::OnCmdMsg

CWnd::ReflectLastMsg

Concepts

CWnd Members