Anchor Blue
January 5th, 2000, 05:36 PM
hi, i would like to know the code for disabling the start menu, thanks
|
Click to See Complete Forum and Search --> : Disabling Startmenu Anchor Blue January 5th, 2000, 05:36 PM hi, i would like to know the code for disabling the start menu, thanks Aaron Young January 5th, 2000, 09:04 PM 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 adyoung@win.bright.net aarony@redwingsoftware.com Chris Eastwood January 6th, 2000, 02:23 AM 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 codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |