by Guest » Nov 11, 2004 @ 9:23pm
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.
- Attachments
-
- SubClassTheTaskBar.zip
- (9.1 KiB) Downloaded 472 times