Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CWnd::PostMessage
CWnd                                        Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  BOOL PostMessage( UINT message, UINT wParam = 0, LONG lParam = 0 );
 
  Parameter   Description
 
  <message>   Specifies the message to be posted.
 
  <wParam>    Specifies additional message information. The content of
              this parameter depends on the message being posted.
 
  <lParam>    Specifies additional message information. The content of
              this parameter depends on the message being posted.
 
  Remarks
 
  Places a message in the current CWnd object's message queue, and then
  returns without waiting for the corresponding window to process the
  message. Messages in a message queue are retrieved by calls to the
  GetMessage or PeekMessage Windows functions.
 
  An application should never use the PostMessage member function to send
  a message to a control; it should use SendDlgItemMessage.
 
  The Windows PostMessage function can be used to access another
  application.
 
  Return Value
 
  TRUE if the message is posted; otherwise FALSE.
 
  See Also
 
  ::GetMessage, ::PeekMessage, ::PostMessage, ::PostAppMessage,
  CWnd::SendMessage, CWnd::SendDlgItemMessage
 
 
                                     -♦-