-
I have a form that acts as a task bar, which acts like the office and the taskbar. But if someone hits the show desktop button, which clears all the windows and bring you to the desktop on the first click and on the second restores all the windows.
Is there a way I can have my program now that the show desktop button was pressed and it needs to put itself back on the screen?
-
Dont you get something like a minimized event? and just open it again?
what do you use to keep it in front?
-
i use api calls, to query for allowable position and reserve the space using shappbarmessage api.
I was just thinking about the minimized event, does the show desktop just minimize all the windows?
-
There is no minimize event at all it seems! hahah
A way that works is to do subclassing but I'm not good at subclassing and I don't like it because it slows down!
if you want to know more about subclassing just open a new thread!
-
Yeah I know there is no minimize event, but it calls the resize event if your form is minimized.
So i tried this
Code:
Private Sub Form_Resize()
If Me.WindowState = vbMinimized Then
Me.WindowState = vbNormal
End If
End Sub
This doesnt work when the show desktop button is pressed, so I believe that the show desktop does not minimize the windows but instead maybe puts them behind the desktop or something.
-
Sometimes I think Microshaft makes the search engine on their website bring nothing but unrelated crap up.