PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

WM_ACTIVE message

I just finished changing my GapiDraw front-end over to 1.02. There wasn't really any problems except for one minor assumption I had been making. My screen initialization code assumed that a new window had a WM_ACTIVE message passed to it when it was created. This behavior always appeared to be true in WinXP when I debugged, and my program worked on my EM-500, so I assumed that the behavior was valid there, too.

After upgrading, though, I discovered that the front-end was creating the window but then stayed deactivated. Oddly enough, when I used the remote debugging tools (about the most painful process I can think of), the window did activate. It appears that OpenDisplay in 1.01 caused the window to receive a WM_ACTIVE message, while 1.02 does not. This is certainly not a bug, but in case anyone else's programs relied on this behavior (purposefully or not) I thought I would relate my experience.

-Ionitor
I think this is because 1.02 handles the GXResume/Suspend behavior now.
Thanks for reporting Ionitor. I will look into the issue and see what I can dig out.

/Johan