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::SendMessage
CWnd                                        Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  LONG SendMessage( UINT message, UINT wParam = 0, LONG lParam = 0 );
 
  Parameter   Description
 
  <message>   Specifies the message to be sent.
 
  <wParam>    Specifies additional message information. The content of
              this parameter depends on the message being sent.
 
  <lParam>    Specifies additional message information. The content of
              this parameter depends on the message being sent.
 
  Remarks
 
  Sends a message to a window or windows. The SendMessage member function
  calls the window procedure for the current CWnd object and does not
  return until that window procedure has processed the message. This is in
  contrast to the PostMessage member function which places the message
  into the CWnd message queue and returns immediately.
 
  Return Value
 
  The result returned by the invoked window procedure; its value depends
  on the message being sent.
 
  See Also
 
  ::InSendMessage, CWnd::PostMessage, CWnd::SendDlgItemMessage,
  ::SendMessage
 
 
                                     -♦-