CWindow::PostMessage
Coloca uma mensagem na fila de mensagens associada ao thread que criou a janela.
BOOL PostMessage(
UINT message,
WPARAM wParam = 0,
LPARAM lParam = 0
) throw();
Comentários
See PostMessage in the Windows SDK.
Retornará sem aguardar que o segmento processe a mensagem.
Exemplo
//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);
Requisitos
Cabeçalho: atlwin.h