Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Is there any way to get the state of "toggledesktop" ?

36 views
Skip to first unread message

衛中

unread,
Jan 11, 2012, 2:52:59 AM1/11/12
to
Dear all,

I'm currently working on a project in which I need the information of
current state of "toggledesktop".
For example if the user pressed win+d key to minimize all window, I
need to enable some functions in my application. If user pressed win
+d
key again to restore, I need to enable another functions.
Also I need the information of toggledesktop state when this
application initialized, so capturing the keystorke in the
application
may not work. It would be appreciated if anyone has any idea about
how
to get the current state of "toggledesktop".


Thanks and Regards.



Alf P. Steinbach

unread,
Jan 11, 2012, 4:02:36 AM1/11/12
to
This sounds misguided.

Just treat a toggled desktop as a desktop with all windows minimized.

It would not surprise me if that's what it is.


Cheers & hth.,

- Alf


衛中

unread,
Jan 11, 2012, 4:29:59 AM1/11/12
to
On Jan 11, 5:02 pm, "Alf P. Steinbach" <alf.p.steinbach
Thanks Alf.
It looks like a little different between the toggledesktop and a
desktop with all windows minimized.
You can try If you minimized windows one by one and press win+D key,
the system doesn't maximized all window but restore to previous state
of desktop.
I'm just curious about if there's any existing system information of
this toggle state.

Christian ASTOR

unread,
Jan 11, 2012, 7:55:10 AM1/11/12
to
衛中 a écrit :
> It would be appreciated if anyone has any idea about
> how to get the current state of "toggledesktop".

There is no public flag for this, at least on XP...
But you can get it by checking if the context menu item from
"Shell_TrayWnd" matches with string id = 850

WayneH

unread,
Jan 11, 2012, 11:59:51 AM1/11/12
to
Thanks Christian!
I'll give it a try.
0 new messages