设置定位高亮
#Include <GuiToolBar.au3>
_GUICtrlToolbar_SetAnchorHighlight($hWnd, $fAnchor)
$hWnd | 控件句柄 |
$fAnchor | 定位高亮设置: True - 启用定位高亮设置 False - 禁用定位高亮设置 |
成功: | 返回先前的定位高亮设置 |
#include <GuiToolbar.au3>
_Main()
Func _Main()
Local $hToolbar, $fEnabled
Run("explorer.exe /root, ,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}")
WinWaitActive("My Computer")
$hToolbar = _GUICtrlToolbar_FindToolbar("[CLASS:CabinetWClass]", "&File")
$fEnabled = _GUICtrlToolbar_GetAnchorHighlight($hToolbar)
MsgBox(4096, "信息", "Anchor highlight enabled: " & $fEnabled)
_GUICtrlToolbar_SetAnchorHighlight($hToolbar, Not $fEnabled)
MsgBox(4096, "信息", "Anchor highlight enabled: " & _GUICtrlToolbar_GetAnchorHighlight($hToolbar))
EndFunc ;==>_Main