CWindow::PostMessage

Inserisce un messaggio nella coda di messaggi associata al thread che ha creato la finestra.

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

Note

Vedere PostMessage in Windows SDK.

Restituisce senza attendere il thread per elaborare il messaggio.

Esempio

//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);

Requisiti

Header: atlwin.h

Vedere anche

Riferimenti

Classe di CWindow

CWindow::SendMessage

CWindow::SendNotifyMessage