#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <ButtonConstants.au3>
$Gui = GuiCreate("Splitter Bar", 200, 70)
$Menu = GUICtrlCreateMenu("Menu")
GUICtrlCreateMenuItem("Item", $Menu)
_GUICtrlCreateSeparator(3, 5, 195, -1, $SS_ETCHEDHORZ)
$Left = 7
$IconsArr = StringSplit("13|23|25|169|28", "|")
For $i = 1 To $IconsArr[0]
$ControlID = GUICtrlCreateButton("", $Left, 10, 24, 24, $BS_ICON)
GUICtrlSetImage(-1, "shell32.dll", $IconsArr[$i], 0)
If $i < $IconsArr[0] Then _GUICtrlCreateSeparator($Left + 30, 10, 25, -1, $SS_ETCHEDVERT)
$Left += 40
Next
_GUICtrlCreateSeparator(3, 40, 195, -1, $SS_ETCHEDHORZ)
GUISetState()
While 1
$Msg = GUIGetMsg()
Switch $Msg
Case $GUI_EVENT_CLOSE, $ControlID
Exit
EndSwitch
WEnd
Func _GUICtrlCreateSeparator($iLeft, $iTop, $iLenght, $iWidth = -1, $nStyle = $SS_ETCHEDHORZ)
Local $nSetStyle = $nStyle, $iTmpSwap
If $iWidth > 0 Then
$nSetStyle = $SS_SUNKEN
EndIf
Switch $nStyle
Case $SS_ETCHEDHORZ
$iTmpSwap = $iWidth
$iWidth = $iLenght
$iLenght = $iTmpSwap
Case $SS_ETCHEDVERT
If $nSetStyle <> $SS_SUNKEN Then
$iWidth = -1
EndIf
Case Else
If $nSetStyle <> $SS_SUNKEN Then
Return SetError(1, 0, 0)
EndIf
EndSwitch
If $iLenght = -1 Then
$iLenght = 1
EndIf
If $iWidth = -1 Then
$iWidth = 1
EndIf
Return GUICtrlCreateLabel("", $iLeft, $iTop, $iWidth, $iLenght, $nSetStyle)
EndFunc