Hi
This code closes the window with PostMessage.
But if i write SendMesssage instead of Post message it doesn't close the window.I don't understand why it is so.
What are the differences so postmessage can close the window but postmessage can not.Code:HWND h=::FindWindow(NULL,L"Tutorial: A Simple Window - Mozilla Firefox"); PostMessage(h,WM_QUIT,0,0);
Thanks




Reply With Quote