CWindow::SendMessage

Sendet eine Meldung in die Fenster und wird erst zurückgegeben, wenn die Fensterprozedur die Meldung verarbeitet hat.

LRESULT SendMessage(
   UINT message,
   WPARAM wParam = 0,
   LPARAM lParam = 0 
) throw();
static LRESULT SendMessage(
   HWND hWnd,
   UINT message,
   WPARAM wParam,
   LPARAM lParam 
) throw();

Hinweise

Siehe SendMessage in Windows SDK.

Beispiel

// The following example attaches a HWND to the CWindow
// object and sends a WM_PAINT message to the window
// wrapped by CWindow object using CWindow::SendMessage.

CWindow myWindow;
myWindow.Attach(hWnd);   
myWindow.SendMessage(WM_PAINT, 0L, 0L);

Anforderungen

Header: atlwin.h

Siehe auch

Referenz

CWindow-Klasse

CWindow::PostMessage

CWindow::SendNotifyMessage

CWindow::SendMessageToDescendants