|
-
Nov 7th, 2002, 01:53 AM
#1
Thread Starter
Junior Member
Taskbar
Is there someone know How do we hide the taskbar ( the start button from the window)
when we run the VB program?
THX.....
-
Nov 7th, 2002, 01:57 AM
#2
Fanatic Member
From www.allapi.net:
VB Code:
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
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
Code to Hide the Taskbar
Dim Thwnd as Long
Thwnd = FindWindow("Shell_traywnd", "")
Call SetWindowPos(Thwnd, 0, 0, 0, 0, 0, SWP_HIDEWINDOW)
Code to Show the Taskbar
Dim Thwnd as Long
Thwnd = FindWindow("Shell_traywnd", "")
Call SetWindowPos(Thwnd, 0, 0, 0, 0, 0, SWP_SHOWWINDOW)
-
Nov 7th, 2002, 04:47 AM
#3
Thread Starter
Junior Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|