Function Reference


_GUICtrlToolbar_GetAnchorHighlight

Retrieves the anchor highlight setting

#include <GuiToolbar.au3>
_GUICtrlToolbar_GetAnchorHighlight ( $hWnd )

Parameters

$hWnd Handle to the control

Return Value

True: anchor highlighting is enabled.
False: anchor highlighting is not enabled?

Remarks

Anchor highlighting means that the last highlighted item will remain highlighted until another item is highlighted.
This occurs even if the cursor leaves the toolbar control.

Related

_GUICtrlToolbar_SetAnchorHighlight

Example

#include <GUIConstantsEx.au3>
#include <GuiToolbar.au3>
#include <MsgBoxConstants.au3>

Example()

Func Example()
    Local $hToolbar, $bEnabled

    Run("explorer.exe /root, ,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}")
    WinWaitActive("My Computer")
    Sleep(1000)
    $hToolbar = _GUICtrlToolbar_FindToolbar("[CLASS:CabinetWClass]", "&File")
    $bEnabled = _GUICtrlToolbar_GetAnchorHighlight($hToolbar)
    MsgBox($MB_SYSTEMMODAL, "Information", "Anchor highlight enabled: " & $bEnabled)
    _GUICtrlToolbar_SetAnchorHighlight($hToolbar, Not $bEnabled)
    MsgBox($MB_SYSTEMMODAL, "Information", "Anchor highlight enabled: " & _GUICtrlToolbar_GetAnchorHighlight($hToolbar))
EndFunc   ;==>Example