Sdílet prostřednictvím


CWindow::SendMessage

Odešle zprávu do okna a nevrátí, dokud zpracoval okna zprávy.

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

Poznámky

Viz SendMessage v .

Příklad

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

Požadavky

Záhlaví: atlwin.h

Viz také

Referenční dokumentace

Třída CWindow

CWindow::PostMessage

CWindow::SendNotifyMessage

CWindow::SendMessageToDescendants