CWindow::PostMessage

Setzt eine Meldung in der Meldungswarteschlange, die mit dem Thread zugeordnet ist, der das Fenster erstellt wurde.

BOOL PostMessage(
   UINT message,
   WPARAM wParam = 0,
   LPARAM lParam = 0 
) throw();

Hinweise

Siehe PostMessage in Windows SDK.

EINGABETASTE, ohne auf den Thread zu warten, bis die Nachricht zu verarbeiten.

Beispiel

//The following example attaches an HWND to the CWindow object and 
//posts a WM_PAINT message to the Window wrapped by the CWindow object 
//using CWindow::PostMessage() with the default values of WPARAM and 
//LPARAM

CWindow myWindow;
myWindow.Attach(hWnd);
myWindow.PostMessage(WM_PAINT);

Anforderungen

Header: atlwin.h

Siehe auch

Referenz

CWindow-Klasse

CWindow::SendMessage

CWindow::SendNotifyMessage