Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

CWinThread::PostThreadMessage

 

Called to post a user-defined message to another CWinThread object.


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

message

ID of the user-defined message.

wParam

First message parameter.

lParam

Second message parameter.

Nonzero if successful; otherwise 0.

The posted message is mapped to the proper message handler by the message map macro ON_THREAD_MESSAGE.

System_CAPS_noteNote

When calling the Windows PostThreadMessage function within an MFC application, the MFC message handlers are not called. For more information, see the Knowledge Base article, "PRB: MFC Message Handler Not Called with PostThreadMessage()" (Q142415).

Requirements

Header: afxwin.h

Show: