Page 1 of 2

Minimize acting strange

PostPosted: Nov 8, 2004 @ 10:38pm
by levy

PostPosted: Nov 9, 2004 @ 9:37pm
by Guest

PostPosted: Nov 10, 2004 @ 9:19am
by Johan

PostPosted: Nov 11, 2004 @ 9:23pm
by Guest
Thanks for replying - I carefully traced through the message loop and found the problem.

If anyone cares:
When the GetOpenFileName function is called, Minimize() is called which sets m_bAppShouldMinimize = TRUE, but then theres a wait for GetOpenFileName to finish(press cancel or select a file) which causes the WM_USER_MINIMIZE message to not be posted until after the open file dialog is closed. So all I do now is set m_bAppShouldMinimize = FALSE after GetOpenFileName.

If anyone is still listening - my real problem however are shell windows which create a new process and then run on their own. Since the minimize button doesn't have a message I never know when the shell window is closed and cannot tell my application to begin drawing again. I was told to try subclassing the taskbar and find when the minimize button rectangle is hit - but I can't get it to be subclassed........

I attached a small (9kB) windows ce 4.0 project which just sets up a basic window and tries to subclass the taskbar that if anyone would look at I would be quite grateful as I'm very stuck at this point.

PostPosted: Nov 12, 2004 @ 7:18pm
by Guest

PostPosted: Dec 9, 2004 @ 8:59pm
by Guest

PostPosted: Dec 13, 2004 @ 10:16pm
by Guest

PostPosted: Dec 13, 2004 @ 10:25pm
by Kzinti

PostPosted: Dec 14, 2004 @ 12:07am
by Guest

PostPosted: Dec 14, 2004 @ 12:48am
by Kzinti

PostPosted: Dec 14, 2004 @ 1:09am
by Guest

PostPosted: Dec 14, 2004 @ 1:24am
by Kzinti

PostPosted: Dec 14, 2004 @ 1:52am
by Guest

PostPosted: Dec 14, 2004 @ 4:19am
by Guest

PostPosted: Dec 14, 2004 @ 5:46am
by Kzinti