# Function Reference

# _GUICtrlToolbar_FindToolbar

Finds a specific toolbar

#include <GuiToolbar.au3>
_GUICtrlToolbar_FindToolbar ( $hWnd, $sText )

## Parameters

$hWnd | Window handle or text of window
$sText | Button text to search for

## Return Value

Success: | the handle of the toolbar.
Failure: | 0.

## Example

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

    Example()

    Func Example()
        Local $hToolbar

        Run("explorer.exe /root, ,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}")
        WinWaitActive("[CLASS:CabinetWClass]")
        Sleep(1000)
        $hToolbar = _GUICtrlToolbar_FindToolbar("[CLASS:CabinetWClass]", "&File")
        MsgBox($MB_SYSTEMMODAL, "Information", "File Toolbar handle: 0x" & Hex($hToolbar))
    EndFunc   ;==>Example