|
-
Aug 13th, 2000, 01:56 AM
#1
Thread Starter
Member
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
-
Aug 13th, 2000, 02:13 AM
#2
Junior Member
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 
-
Aug 13th, 2000, 02:15 AM
#3
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)
-
Aug 18th, 2000, 12:21 PM
#4
Thread Starter
Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|