windows+D? Urgent please.
-
Which message gets processed by application when user presses "windows+d" or clicks "show desktop" icon in quick launch so application minimizes?
-
Which message gets processed by application when user presses "windows+d" or clicks "show desktop" icon in quick launch so application minimizes?
Well, you get a WM_SIZE[^] message when your window gets minimized but i doubt there is a way to distinguish between the event of "show desktop" and any other cause of minimizing (like the user clicking the minimize button). Why do you have to know that?
> The problem with computers is that they do what you tell them to do and not what you want them to do. < > Life: great graphics, but the gameplay sux. <
-
Well, you get a WM_SIZE[^] message when your window gets minimized but i doubt there is a way to distinguish between the event of "show desktop" and any other cause of minimizing (like the user clicking the minimize button). Why do you have to know that?
> The problem with computers is that they do what you tell them to do and not what you want them to do. < > Life: great graphics, but the gameplay sux. <
I have application, in custome menu I have option "minimize", by clicking on it application goes to sys tray, now menu option would be "restore" ...but that two case(mentioned in Q) option remains "minimize" as application is minimized all ready? it shud be "restore" :doh:
-
Well, you get a WM_SIZE[^] message when your window gets minimized but i doubt there is a way to distinguish between the event of "show desktop" and any other cause of minimizing (like the user clicking the minimize button). Why do you have to know that?
> The problem with computers is that they do what you tell them to do and not what you want them to do. < > Life: great graphics, but the gameplay sux. <
Application does not get WM_SIZE message in both case mentioned in Q.
-
I have application, in custome menu I have option "minimize", by clicking on it application goes to sys tray, now menu option would be "restore" ...but that two case(mentioned in Q) option remains "minimize" as application is minimized all ready? it shud be "restore" :doh:
Well, WM_SIZE[^] with SIZE_MINIMIZED in lParam should tell you your app got minimized and i guess SIZE_RESTORED should tell you if it got restored or SIZE_MAXIMIZED if it got maximized, but if i were you i would rather query the window'S state using GetWindowPlacement[^] and set my menu item accordingly every time the menu is shown, i think it is easier to handle than tracking some flag thoroughout the application...
> The problem with computers is that they do what you tell them to do and not what you want them to do. < > Life: great graphics, but the gameplay sux. <
-
Application does not get WM_SIZE message in both case mentioned in Q.
Hmm, you are right, one would think it would get a WM_SIZE, same with WM_WINDOWPOSCHANGED...sorry about that...i see what else i find, if i figure out anything i will get back to you...how about GetWindowPlacement mentioned in my other[^] post?
> The problem with computers is that they do what you tell them to do and not what you want them to do. < > Life: great graphics, but the gameplay sux. <
-
Hmm, you are right, one would think it would get a WM_SIZE, same with WM_WINDOWPOSCHANGED...sorry about that...i see what else i find, if i figure out anything i will get back to you...how about GetWindowPlacement mentioned in my other[^] post?
> The problem with computers is that they do what you tell them to do and not what you want them to do. < > Life: great graphics, but the gameplay sux. <
Still I'm confused, application minimizes (in both cases) but message Q does not process any message how this is possible?
-
Still I'm confused, application minimizes (in both cases) but message Q does not process any message how this is possible?
I have found several answers to what happens with a window when the desktop is shown, so now i am also confused: -the window gets minimized -the window gets hidden -the window gets moved to a poisition way outside of the visible area -the desktop window simply overlaps the window (so the window gets send behind the desktop) So finding out if your window is hidden or not by "show desktop" seems trickier than we thought...
> The problem with computers is that they do what you tell them to do and not what you want them to do. < > Life: great graphics, but the gameplay sux. <