检索菜单的最大高度
#Include <GuiMenu.au3>
_GUICtrlMenu_GetMenuHeight($hMenu)
| $hMenu | 菜单句柄 | 
| 返回菜单的最大像素高度 | 
#include <GuiMenu.au3>
_Main()
Func _Main()
    Local $hWnd, $hMain, $hFile
    ; 打开记事本
    Run("notepad.exe")
    WinWaitActive("[CLASS:Notepad]")
    $hWnd = WinGetHandle("[CLASS:Notepad]")
    $hMain = _GUICtrlMenu_GetMenu($hWnd)
    $hFile = _GUICtrlMenu_GetItemSubMenu($hMain, 0)
    ; Get/Set File menu max height
    Writeln("File menu max height: " & _GUICtrlMenu_GetMenuHeight($hFile))
    _GUICtrlMenu_SetMenuHeight($hFile, 100)
    Writeln("File menu max height: " & _GUICtrlMenu_GetMenuHeight($hFile))
EndFunc   ;==>_Main
; 写入一行文本到记事本
Func Writeln($sText)
    ControlSend("[CLASS:Notepad]", "", "Edit1", $sText & @CR)
EndFunc   ;==>Writeln