Results 1 to 3 of 3

Thread: Taskbar

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Oct 2002
    Location
    Indonesia
    Posts
    16

    Unhappy Taskbar

    Is there someone know How do we hide the taskbar ( the start button from the window)
    when we run the VB program?

    THX.....

  2. #2
    Fanatic Member Vanguard-MnC's Avatar
    Join Date
    Apr 2002
    Location
    Inactive for like ever.
    Posts
    628
    From www.allapi.net:

    VB Code:
    1. Declare Function SetWindowPos Lib "user32" (ByVal hwnd _
    2. As Long, ByVal hWndInsertAfter As Long, ByVal x As Long, _
    3. ByVal y As Long, ByVal cx As Long, ByVal cy As Long, ByVal _
    4. wFlags As Long) As Long        
    5.  
    6. Declare Function FindWindow Lib "user32" Alias _
    7. "FindWindowA" (ByVal lpClassName As String, ByVal _
    8. lpWindowName As String) As Long
    9.  
    10. Const SWP_HIDEWINDOW = &H80
    11. Const SWP_SHOWWINDOW = &H40        
    12.  
    13. Code to Hide the Taskbar
    14.  
    15. Dim Thwnd as Long
    16. Thwnd = FindWindow("Shell_traywnd", "")
    17. Call SetWindowPos(Thwnd, 0, 0, 0, 0, 0, SWP_HIDEWINDOW)        
    18.  
    19. Code to Show the Taskbar
    20.  
    21. Dim Thwnd as Long
    22. Thwnd = FindWindow("Shell_traywnd", "")
    23. Call SetWindowPos(Thwnd, 0, 0, 0, 0, 0, SWP_SHOWWINDOW)

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Oct 2002
    Location
    Indonesia
    Posts
    16
    Thx...
    But how we know the lpClassName, and the lpWindowName?
    What does it means?
    What class name do we point ?
    What is the meaning of window handle? why is the parameter is HWND, we always use Me.Hwnd? and what is the different with hdc?
    And what is the hwndInsertAfter?

    Oh yeah... if we want to make a dynamic control from SSTAB, Winsock ( not the VB general tool ), how we know the classname?
    and the license?


    THX... a lot

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width