CWnd::SendNotifyMessage

Sends the specified message to the window.

BOOL SendNotifyMessage(
   UINT message,
   WPARAM wParam,
   LPARAM lParam 
);

Parameters

  • message
    Specifies the message to be sent.

  • wParam
    Specifies additional message-dependent information.

  • lParam
    Specifies additional message-dependent information.

Return Value

Nonzero if the function is successful; otherwise 0.

Remarks

If the window was created by the calling thread, SendNotifyMessage calls the window procedure for the window and does not return until the window procedure has processed the message. If the window was created by a different thread, SendNotifyMessage passes the message to the window procedure and returns immediately; it does not wait for the window procedure to finish processing the message.

Requirements

Header: afxwin.h

See Also

Concepts

CWnd Class

CWnd Members

Hierarchy Chart

CWnd::SendMessage

SendNotifyMessage