What window message is put into my apps queue when a user clicks the "X" on the window? I would like to handle it and close my app. But using the defWindowProc just destroys the window and my emulators sound keeps going lol.
is it WM_DESTROY?
Posted on 2004-08-06 20:30:00 by x86asm
i bet it might be WM_CLOSE, then WM_DESTROY


WM_CLOSE

The WM_CLOSE message is sent as a signal that a window or an application should terminate



WM_DESTROY

The WM_DESTROY message is sent when a window is being destroyed. It is sent to the window procedure of the window being destroyed after the window is removed from the screen.
Posted on 2004-08-06 20:32:57 by Black iCE
It's WM_SYSCOMMAND, wParam = SC_CLOSE
Posted on 2004-08-06 20:36:24 by donkey
*mumbles* i have so so much yet to learn:eek:
Posted on 2004-08-06 20:42:32 by Black iCE
What about when the window is dragged?Cause I need to intercept that message and stop the sound.
Posted on 2004-08-06 23:05:52 by x86asm
same as before, WM_SYSCOMMAND wParam=SC_MOVE

ps - dig your quote:grin:
Posted on 2004-08-06 23:08:48 by Black iCE
WM_ENTERSIZEMOVE is sent just before it starts moving and WM_EXITSIZEMOVE just as it finishes. It is also sent when the user is resizing the window. You can also just check the wParam of WM_SYSCOMMAND for SC_MOVE or SC_SIZE.
Posted on 2004-08-06 23:10:34 by donkey

same as before, WM_SYSCOMMAND wParam=SC_MOVE

ps - dig your quote:grin:

LOL, ya Bizarre of D-12 makes me laugh lol :grin:
Posted on 2004-08-07 09:43:31 by x86asm
"*fart* - that came from my soul" - Bizzare
PS- Sometimes he gets a little sick with his lyrics but ppl can stomach it.:grin:
Posted on 2004-08-07 15:40:17 by Black iCE