能力值:
( LV8,RANK:130 )
|
-
-
2 楼
Public Sub TopMenu(ByVal hwnd As Long)
Dim n As Integer
hMenu = GetMenu(hwnd)
TopMenuCount = GetMenuItemCount(hMenu)
For n = 0 To TopMenuCount
EnableMenuItem hMenu, n, MF_ENABLED + MF_BYPOSITION + MF_BYCOMMAND
SubMenu hMenu, n
Next n
End Sub
Public Sub SubMenu(ByVal hMenu As Long, ByVal l As Integer)
Dim Y As Integer
hSubMenu = GetSubMenu(hMenu, l)
SubMenuCount = GetMenuItemCount(hSubMenu)
For Y = 0 To SubMenuCount
EnableMenuItem hSubMenu, Y, MF_ENABLED + MF_BYPOSITION + MF_BYCOMMAND
Next Y
End Sub
我以前写的,能激活一些菜单,弹出式的不行,可以参考一下。
|
能力值:
( LV5,RANK:60 )
|
-
-
3 楼
谢谢你,大大!
|
|
|