CWindow::SendMessage
Invia un messaggio alla finestra e non restituisce alcun valore finché la routine della finestra non ha elaborato il messaggio.
LRESULT SendMessage(
UINT message,
WPARAM wParam = 0,
LPARAM lParam = 0
) throw();
static LRESULT SendMessage(
HWND hWnd,
UINT message,
WPARAM wParam,
LPARAM lParam
) throw();
Note
Vedere SendMessage in Windows SDK.
Esempio
// 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);
Requisiti
Header: atlwin.h