Results 1 to 6 of 6

Thread: Show Desktop Problem?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2000
    Posts
    367
    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?

  2. #2
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    Dont you get something like a minimized event? and just open it again?

    what do you use to keep it in front?
    Sanity is a full time job

    Puh das war harter Stoff!

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    May 2000
    Posts
    367
    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?

  4. #4
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    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!
    Sanity is a full time job

    Puh das war harter Stoff!

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    May 2000
    Posts
    367
    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.

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    May 2000
    Posts
    367
    Sometimes I think Microshaft makes the search engine on their website bring nothing but unrelated crap up.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width