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?
is it WM_DESTROY?
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.
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.
It's WM_SYSCOMMAND, wParam = SC_CLOSE
*mumbles* i have so so much yet to learn:eek:
What about when the window is dragged?Cause I need to intercept that message and stop the sound.
same as before, WM_SYSCOMMAND wParam=SC_MOVE
ps - dig your quote:grin:
ps - dig your quote:grin:
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.
same as before, WM_SYSCOMMAND wParam=SC_MOVE
ps - dig your quote:grin:
LOL, ya Bizarre of D-12 makes me laugh lol :grin:
"*fart* - that came from my soul" - Bizzare
PS- Sometimes he gets a little sick with his lyrics but ppl can stomach it.:grin:
PS- Sometimes he gets a little sick with his lyrics but ppl can stomach it.:grin: