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!
Printable View
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!
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.
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)
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!