CWindow::PostMessage

메시지 창을 만든 스레드와 연관 된 메시지 큐에 배치 됩니다.

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

설명

참조 PostMessage 에 있는 Windows SDK.

메시지를 처리 하는 스레드에 대 한 대기 하지 않고 반환 합니다.

예제

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

요구 사항

헤더: atlwin.h

참고 항목

참조

CWindow 클래스

CWindow::SendMessage

CWindow::SendNotifyMessage