Compartir a través de


CWindow::SendMessage

Envía un mensaje en la y no vuelve hasta que el procedimiento de ventana haya procesado el mensaje.

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

Comentarios

Vea SendMessage en Windows SDK.

Ejemplo

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

Requisitos

encabezado: atlwin.h

Vea también

Referencia

Clase de CWindow

CWindow::PostMessage

CWindow::SendNotifyMessage

CWindow::SendMessageToDescendants