How to show desktop[probably solved]



  • Hello.

    Everybody know, if you'll press logo(Win key) + L, the desktop will be shown. Due to the reason I'm not so closely familiar with win32 API, I would like to ask you a question: how it can be done programmatically? For instance, we have a simple window with only one button, and when we press that button all opened windows will be minimized.

    Thank you beforehand for answers.



  • I think you should investigate the proper win32 API to do that. Notice that "showing the desktop" isn't the same than minimizing all windows.



  • Thank you. I guess so. I found the solution, but it relates to other framework. Here it is, if somebody will be interested in: http://blogs.msdn.com/b/robgruen/archive/2004/02/24/79294.aspx

    But still I haven't any clue, which one win32 API I need to investigate.

    Added: http://msdn.microsoft.com/en-us/library/ms646310 here is the clue.



  • I think you should not implement this feature in your application, unless you have a very good reason to do so. I personally will get angry if an application can "instrument" other unrelated applications within my desktop. It should be really smarter to implement a feature to make your application hide and leave the user to decide to show or not the whole desktop. That's my opinion.



  • [quote author="fluca1978" date="1321816947"]I think you should not implement this feature in your application, unless you have a very good reason to do so. I personally will get angry if an application can "instrument" other unrelated applications within my desktop. It should be really smarter to implement a feature to make your application hide and leave the user to decide to show or not the whole desktop. That's my opinion.[/quote]

    Thank you for answer.
    I thought about that too. As good reason I could say, for an example, a kind of an emergency signal.



  • [quote author="dmitrij" date="1321820034"]

    I thought about that too. As good reason I could say, for an example, a kind of an emergency signal.[/quote]

    Again, in my opinion it should be better to hide your whole application rather than try to show the desktop. And in the case of an emergency signal, it should be better to raise a window on top of the others.



  • Thank you for answer. Probably I'll do it in your way. And if it will not work in some cases: full-screen movies etc., I'll try to show the Desktop and after that show the notification.



  • [quote author="dmitrij" date="1321879809"]Thank you for answer. Probably I'll do it in your way. And if it will not work in some cases: full-screen movies etc., I'll try to show the Desktop and after that show the notification.[/quote]

    Please note that some operating systems, like Windows, automatically show docking messages even when there is a full screen application like a movie player. It could be that the operating systems you are going to deploy already have such a feature.



  • I didn't consider that. As I understand, the client will use it only in windows-environment.I guess, in this case, problem solved.
    Thank you.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.