Wilson WindowWare Tech Support

WinBatch WinBatch+Compiler WebBatch
Home | Tech Database | Tech BBS | White Papers | Purchase


How to Hide the Taskbar so that User Cannot Get to It

Keywords:      hide taskbar   task bar

Question:

I want to hide the taskbar in Windows 95. Is there any way to do that with WinBatch?

Answer:

It was tougher than I thought, but here is a running script. Requires both Control Manager and WILX extenders.
;This script shows how to hide the task bar so the user cannot get to it.

AddExtender("wwctl34I.dll")
AddExtender("wilx34I.dll")
moi=DllHwnd("")

thiswnd=cWndInfo(moi,4)

while thiswnd!=0
   ; Is it the one
   class=cWndInfo(thiswnd,2)
   if class=="Shell_TrayWnd" 
      ; convert to winid format
      hexwnd=xBaseConvert(thiswnd,10,16)
      hexwnd=StrFixLeft(hexwnd,"0",8)
      hexwnd=strcat("#WIN$ID#",hexwnd)
      WinHide(hexwnd)
      Message("Hmmm","TaskBar Hidden")
      WinShow(hexwnd)
      Message("Hmmm","It's Baaaaack")
      exit
   endif
   thiswnd=cWndInfo(thiswnd,6)
endwhile

Message("Hmmm","Not Found")

Question:

I have developed a screen combining boxes and a dialog box. Looks very nice. Trouble is, if the taskbar in Win95 is moved around, top left for right, the alignment is off between the box and dialog box.

Do you know how to determine the postion of the taskbar? I have searched high and low, used a registry monitor program, nothing.

Answer:

I think the taskbar position is saved in the ShellIconCache file in the windows directory. But it is a binary file and I have no idea on how to read it.

In cases like this I usually just make a smaller screen so that the taskbar could be anywhere and my screen is still visible.


Article ID:   W13255
Filename:   Hide Taskbar so User Cannot Get to It.txt