다음을 통해 공유


CWindow::SendMessage

창에는 메시지를 보내고 창 프로시저에서 메시지를 처리할 때까지 반환 하지 않습니다.

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

설명

참조 SendMessage 에 있는 Windows SDK.

예제

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

요구 사항

헤더: atlwin.h

참고 항목

참조

CWindow Class

CWindow::PostMessage

CWindow::SendNotifyMessage

CWindow::SendMessageToDescendants