CWindow::PostMessage
Umieszcza wiadomość w kolejce wiadomości związane z wątku, który utworzył okno.
BOOL PostMessage(
UINT message,
WPARAM wParam = 0,
LPARAM lParam = 0
) throw();
Uwagi
Zobacz PostMessage w Windows SDK.
Zwraca, bez oczekiwania na wątek przetwarzania wiadomości.
Przykład
//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);
Wymagania
Nagłówek: atlwin.h