Win 95 task bar question 
Author Message
 Win 95 task bar question

Hi-

  I'm using VB4/16 bit

  Parts of my app needs to use the entire screen.  So if Win '95 users
have their task bars set to "stay always on top" then they lose some
info at the bottom of the screen.  Is there a way for me to temporarily
hide the task bar?  Is this improper etiquette?  Or should I rely on the
user to resize (i.e. shrink) their task bars?

                            Thanks,
                            Brad Stone



Fri, 10 Mar 2000 03:00:00 GMT  
 Win 95 task bar question

 Brad

Are you displaying a maximised form (WindowState=2) or are you sizing to
Screen.Width and Screen.Height?

Regards
{*filter*}



Sun, 12 Mar 2000 03:00:00 GMT  
 Win 95 task bar question

All you have to do is paste this in the general section of your form.
'---------------------------------------------------------------
Option Explicit

Dim hwnd1 As Long

Private Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long,
ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, ByVal cx As
Long, ByVal cy As Long, ByVal wFlags As Long) As Long
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal
lpClassName As String, ByVal lpWindowName As String) As Long

Const SWP_HIDEWINDOW = &H80

Const SWP_SHOWWINDOW = &H40
'-------------------------------------------------------------
'To hide the task bar use this code.
hwnd1 = FindWindow("Shell_traywnd", "")
Call SetWindowPos(hwnd1, 0, 0, 0, 0, 0, SWP_HIDEWINDOW)
'-------------------------------------------------------------
'Use this to show it again.

Call SetWindowPos(hwnd1, 0, 0, 0, 0, 0, SWP_SHOWWINDOW)


Quote:
>Hi-

>  I'm using VB4/16 bit

>  Parts of my app needs to use the entire screen.  So if Win '95 users
>have their task bars set to "stay always on top" then they lose some
>info at the bottom of the screen.  Is there a way for me to temporarily
>hide the task bar?  Is this improper etiquette?  Or should I rely on the
>user to resize (i.e. shrink) their task bars?

>                            Thanks,
>                            Brad Stone



Thu, 16 Mar 2000 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Q: Config of Win '95/Win NT Task Bar via VB4

2. ??? Display icon in win 95 task bar???

3. Win 95 Task BAr

4. Application In Win 95 task bar.

5. Win 95/NT task bar for ActiveX.EXE

6. Showing forms in WIN 95 task bar

7. Setting Win 95 Task Bar Properties from VB5

8. WIN-95 to WIN-NT Transportability Question

9. Question: Win NT or Win 95 ?

10. How to make a icon into the Task Bar of 95 VB 3

11. Hiding/covering 95's task bar

12. Hiding/covering 95's task bar

 

 
Powered by phpBB® Forum Software