[DONE]How to disable Windows 7 taskbar "Always On Top"?

Windows specific forum
User avatar
skywalk
Addict
Addict
Posts: 4242
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

[DONE]How to disable Windows 7 taskbar "Always On Top"?

Post by skywalk »

Hi,
After using Win7, I have to say the taskbar is annoying.
Does anyone know a way to disable the Windows 7 taskbar "Always On Top"?
I do not want the "Auto Hide" option as it pops up at undesired times. :(
Last edited by skywalk on Fri Aug 26, 2011 10:04 pm, edited 1 time in total.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
RASHAD
PureBasic Expert
PureBasic Expert
Posts: 4997
Joined: Sun Apr 12, 2009 6:27 am

Re: How to disable Windows 7 taskbar "Always On Top"?

Post by RASHAD »

Hi
You can hide or show the TaskBar as you like if is that what you are asking for

Code: Select all

TaskBar = FindWindow_("Shell_TrayWnd",0)
Start = FindWindow_(0,"Start")
  If IsWindowVisible_(TaskBar)
    ShowWindow_(TaskBar,#SW_HIDE)
    ShowWindow_(Start,#SW_HIDE)
  Else
    ShowWindow_(TaskBar,#SW_SHOW)
    ShowWindow_(Start,#SW_SHOW)
  EndIf

Egypt my love
User avatar
skywalk
Addict
Addict
Posts: 4242
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: How to disable Windows 7 taskbar "Always On Top"?

Post by skywalk »

Thanks Rashad!
That works, but the area occupied by the taskbar is blocked out even when the taskbar is hidden. :(

But, if I enable "Auto-Hide the taskbar" and run your code, I can then recover the extra window area reserved for the taskbar!

Do you know how to programmatically select the "Auto-Hide" option?

Thanks again Rashad!
Starting to enjoy Win7 now. :)
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
RASHAD
PureBasic Expert
PureBasic Expert
Posts: 4997
Joined: Sun Apr 12, 2009 6:27 am

Re: How to disable Windows 7 taskbar "Always On Top"?

Post by RASHAD »

Egypt my love
User avatar
skywalk
Addict
Addict
Posts: 4242
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

[DONE]How to disable Windows 7 taskbar "Always On Top"?

Post by skywalk »

Thanks Rashad!
Post Reply