|
-
January 5th, 2000, 06:36 PM
#1
Disabling Startmenu
hi, i would like to know the code for disabling the start menu, thanks
-
January 5th, 2000, 10:04 PM
#2
Re: Disabling Startmenu
Try the EnableWindow API, ie.
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 Command1_Click()
static bEnabled as Boolean
Dim lhWnd as Long
lhWnd = FindWindowEx(0&, 0&, "Shell_TrayWnd", vbNullString)
lhWnd = FindWindowEx(lhWnd, 0&, "Button", vbNullString)
Call EnableWindow(lhWnd, bEnabled)
bEnabled = Not bEnabled
End Sub
Aaron Young
Analyst Programmer
[email protected]
[email protected]
-
January 6th, 2000, 03:23 AM
#3
Re: Disabling Startmenu
Nice one Aaron - a bit dangerous though, but interesting none the less.
Would you like it posted to the site ?
Chris Eastwood
CodeGuru - the website for developers
http://codeguru.developer.com/vb
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
|