Results 1 to 4 of 4

Thread: windows task bar

  1. #1

    Thread Starter
    Member
    Join Date
    May 2000
    Location
    USA
    Posts
    37

    Question

    Hello everyone,

    Does anyone out there have an idea how to make the windows taskbar toggle in or out of auto hide. Using VB6 at the click of a button or menu item? I don't have a clue!
    Jerome W. Norgren

    "Know how to ask. There is nothing more difficult for some people, nor for others, easier."

    - Baltasar Gracian

  2. #2
    Junior Member
    Join Date
    Jul 2000
    Posts
    19

    hmmm...

    you could run the menu using GetMenu
    But, im guessing there is a reg entry for it..somewhere..
    Or, maybe try:
    Declare Function SystemParametersInfo Lib "user32" Alias "SystemParametersInfoA" (ByVal uAction As Long, ByVal uParam As Long, lpvParam As Any, ByVal fuWinIni As Long) As Long

    i will look for the action...im almost 100% there is one, explorer uses that function for alot of features, changing colors, wallpaper, getting positions, setting positions...so im SURE it will set auto hide.
    vb5 pr

  3. #3
    Guest
    I'm not sure about auto hiding, but here's how to hide or show it:

    Code:
    Declare Function findwindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
    Declare Function showWindow Lib "user32" Alias "ShowWindow" (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long
    Public Const SW_HIDE = 0
    Public Const SW_SHOW = 5
    
    'Hide:
    tray& = findwindow("Shell_TrayWnd", vbNullString)
    X = showwindow(tray&, SW_HIDE)
    
    'Show:
    tray& = findwindow("Shell_TrayWnd", vbNullString)
    X = showwindow(tray&, SW_SHOW)

  4. #4

    Thread Starter
    Member
    Join Date
    May 2000
    Location
    USA
    Posts
    37

    Thumbs up

    To: prye and Matthew Gates


    ***********************************************************
    prye,

    I haven't found how to select auto-hide taskbar as yet but your post gave me some good info on other things.

    ***********************************************************

    ***********************************************************
    Matthew Gates,

    Your post did indeed show me how to show/hide the taskbar and I believe that it may be the best solution for what I'm trying to do.
    Which will allow for more usage across different systems. ie.... win 95, 98, 2K.

    **********************************************************

    Thanks to both of you for your help!

    Jerome W. Norgren

    "Know how to ask. There is nothing more difficult for some people, nor for others, easier."

    - Baltasar Gracian

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