heres my message loop:
heres my End() function:
why, when i use the PostQuitMessage(), the WM_DESTROY isn't called?
what window message i can use after the PostQuitMessage()?
Code:
WPARAM MessageLoop()
{
MSG msgEvents;
while(GetMessage(&msgEvents,NULL,0,0))
{
if(!IsDialogMessage(ActivatedForm,&msgEvents))
{
TranslateMessage(&msgEvents);
DispatchMessage(&msgEvents);
}
}
return msgEvents.wParam;
}
Code:
void End()
{
if(hhookCBTProc!=0)
UnhookWindowsHookEx(hhookCBTProc);
PostQuitMessage(0);
}
what window message i can use after the PostQuitMessage()?