|
-
Aug 6th, 2003, 09:19 AM
#1
Thread Starter
Hyperactive Member
how i can disable the "start menu" ??
pease be with you
how i can disable the "start menu" ??
thanks
In the name of allah , the beneficent , the merciful
Say (O Muhammad ): We believe in allah and that which is revealed unto us and that which was revealed unto abraham and ishmael and isaac and jacob and the tribes , and that which was vouchsafed unto moses and jesus and the prophets from their lord . we make no distinction between any of them , and unto him we have surrendered
---- Great Sites For You -------------------
If you want to know some small things about islam ?
-
Aug 6th, 2003, 03:40 PM
#2
Fanatic Member
This will hide it.
VB Code:
Option Explicit
Private Declare Function GetWindow Lib "user32" (ByVal hwnd As Long, ByVal wCmd As Long) As Long
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function GetClassName Lib "user32" Alias "GetClassNameA" (ByVal hwnd As Long, ByVal lpClassName As String, ByVal nMaxCount As Long) As Long
Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long
Private Const GW_CHILD = 5
Private Const GW_HWNDNEXT = 2
Private Const SW_HIDE = 0
Private Const SW_SHOW = 5
Private Const GW_HWNDFIRST = 0
Private Const GW_HWNDLAST = 1
Private Const GW_HWNDPREV = 3
Dim fWnd As Long, gWnd As Long, IpClass As String * 250, gClass As Long
Private Sub Form_Load()
HideWnd
End Sub
Function ShowWnd() As String
fWnd = FindWindow("Shell_TrayWnd", vbNullString)
gWnd = GetWindow(fWnd, GW_CHILD)
gClass = GetClassName(gWnd, IpClass, 250)
IpClass = Left$(IpClass, gClass)
If Left$(IpClass, 6) = "Button" Then
ShowWindow gWnd, SW_SHOW
End If
End Function
Function HideWnd() As String
fWnd = FindWindow("Shell_TrayWnd", vbNullString)
gWnd = GetWindow(fWnd, GW_CHILD)
gClass = GetClassName(gWnd, IpClass, 250)
IpClass = Left$(IpClass, gClass)
If Left$(IpClass, 6) = "Button" Then
ShowWindow gWnd, SW_HIDE
End If
End Function
Private Sub Form_Unload(Cancel As Integer)
ShowWnd
End Sub
-
Aug 6th, 2003, 03:55 PM
#3
Hyperactive Member
VB Code:
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, ByVal lpsz2 As String) As Long
Private Declare Function EnableWindow Lib "user32" (ByVal hwnd As Long, ByVal fEnable As Long) As Long
Private Sub Form_Load()
ShellTrayWnd = FindWindow("Shell_TrayWnd", vbNullString)
Button = FindWindowEx(ShellTrayWnd, 0, "Button", vbNullString)
EnableWindow Button, False
End Sub
This works on WinNT 4.0 ..... The window classes may be different on later versions.
-
Aug 6th, 2003, 04:58 PM
#4
Originally posted by Eras3r
VB Code:
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, ByVal lpsz2 As String) As Long
Private Declare Function EnableWindow Lib "user32" (ByVal hwnd As Long, ByVal fEnable As Long) As Long
Private Sub Form_Load()
ShellTrayWnd = FindWindow("Shell_TrayWnd", vbNullString)
Button = FindWindowEx(ShellTrayWnd, 0, "Button", vbNullString)
EnableWindow Button, False
End Sub
This works on WinNT 4.0 ..... The window classes may be different on later versions.
This disables only the clicking, not the keyboard (Win key).
Has someone helped you? Then you can Rate their helpful post. 
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
|