禁用Windows的开始按钮
2004-06-21 08:44
267 查看
禁用Windows的开始按钮
'
' Paste this into a Code Mode (BAS)
'
Option Explicit
'
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
public Sub EnableStartMenuButton(byval bEnable as Boolean)
'
' Don't forget to re-enable it !
'
Dim lHwnd as Long
'
lHwnd = FindWindowEx(0&, 0&, "Shell_TrayWnd", vbNullString)
lHwnd = FindWindowEx(lHwnd, 0&, "Button", vbNullString)
Call EnableWindow(lHwnd, bEnable)
'
End Sub
'
'
'
' Paste this into a Code Mode (BAS)
'
Option Explicit
'
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
public Sub EnableStartMenuButton(byval bEnable as Boolean)
'
' Don't forget to re-enable it !
'
Dim lHwnd as Long
'
lHwnd = FindWindowEx(0&, 0&, "Shell_TrayWnd", vbNullString)
lHwnd = FindWindowEx(lHwnd, 0&, "Button", vbNullString)
Call EnableWindow(lHwnd, bEnable)
'
End Sub
'
'
相关文章推荐
- 传Windows 8.1系统将重新加入开始按钮
- 禁用 Windows 窗体 DataGridView 控件的按钮列中的按钮
- Windows 活动目录禁用重启、关机按钮
- 微软密谋恢复Windows开始按钮:引开发者质疑
- 如何:禁用 Windows 窗体 DataGridView 控件的按钮列中的按钮
- C# 如何:禁用 Windows 窗体 DataGridView 控件的按钮列中的按钮 Enable = false
- 禁用Windows窗体的关闭按钮
- 让Windows的开始按钮及菜单靠边站
- Windows 9 将于明年11月发布 无开始按钮
- 【Windows 8系统开始添加关机按钮教程】
- Windows 8.1(Windows Blue)确认加入开始按钮
- JQuery 开始关闭按钮禁用属性
- 怎样修改windows里的开始按钮的位图?
- Classic Shell:找回 Windows 8 / Windows Server 2012 的经典的开始按钮和开始菜单
- 怎样修改windows里的开始按钮的位图?
- 图说:Windows 8的缩略图开始按钮
- Windows 8.1开始按钮如何使用?
- Windows 10下WLAN突然不能连接(按那个启用禁用蓝牙的按钮也没有用)的问题
- 如何:禁用 Windows 窗体 DataGridView 控件的按钮列中的按钮(摘录)
- Windows 找不到文件'(null)'.请确定文件名是否正确后,再试一下.要搜索文件,请单击[开始]按钮,然后单击"搜索"