EDIT: Delete code I'd pasted here. An error in my code was causing the behavior described (missing a break
in a switch statement).
In a switch
statement that handled the messages from GetMessage
, I tossed in the integer values for a couple of messages that don't have aliases defined (using a list I found here: http://www.mazama.net/scheme/v12/w32message.scm) with message boxes that would pop if one of these messages was received. My expectation was that the unnamed messages were simply deprecated and would never show up.
I also tried some code under WM_ACTIVATE
that was supposed to minimize the window if I clicked out of it. I messed something up, so the window minimizes itself as soon as it opens, but that's not what brought me here. As soon as the window opens and minimizes, the message box pops to tell me Windows sent message 9. If I dismiss it, the message box pops again.
So it got me wondering, does anyone know what event triggers that message? Or, for that matter, any of the integer values returned by GetMessage that don't have an alias? Everything I've found listing the Windows messages omits the same numbers as the link I posted above.