PostMessage
Places a message in the message queue associated with the thread that created the window. Returns without waiting for the thread to process the message.
BOOL PostMessage( uint msg, DWORD wParam = 0, DWORD lParam = 0 )
The result of the message processing; its value depends on the message sent.
EX1
int Window_PostMessage_ex1() { GraphPage gp; gp.Create("origin.otp"); Window myWindow = gp.GetWindow(); myWindow.PostMessage(WM_CLOSE); if(gp.IsValid()) out_str("Error: gp should be destroy."); return 0; }
origin.h