-
Stop Process?
I have made a simple little window. When I close the app, the process keeps running.
I have this in my code
Code:
case WM_DESTROY:
UnregisterClass("Class", g_hInstance);
PostQuitMessage ( 0 );
break;
Why is the programs process still running after I close the app.
-
does your GetMessage loop check for the 0 value?
-
PostQuitMessage() simply puts WM_QUIT into the thread's message queue. Does your message loop handle WM_QUIT?
gg
-
Ah, thank you,
I forgot to check for WM_QUIT
[edit]
Funny thing is I just gave an example of that to someone else. :D