Compartir a través de


CWindow::PostMessage

Coloca un mensaje en la cola de mensajes asociado al subproceso que creó la ventana.

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

Comentarios

Vea PostMessage en Windows SDK.

vuelve sin esperar el subproceso para procesar el mensaje.

Ejemplo

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

Requisitos

encabezado: atlwin.h

Vea también

Referencia

CWindow Class

CWindow::SendMessage

CWindow::SendNotifyMessage