CWindow::PostMessage
更新 : 2007 年 11 月
ウィンドウを作成したスレッドに関連付けられたメッセージ キューにメッセージを格納します。
BOOL PostMessage(
UINT message,
WPARAM wParam = 0,
LPARAM lParam = 0
) throw();
解説
Windows SDK の「PostMessage」を参照してください。
メッセージを処理するスレッドを待たずに制御を返します。
使用例
//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