#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>

_Main()

Func _Main()
	Local $iBtn1, $iBtn2, $iBtn3, $iBtn4
	Local $iBtn5, $iBtnClose

	GUICreate("test", 240, 180)
	$iBtn1 = GUICtrlCreateButton("1", 0, 0, 40, 40, $BS_ICON)
	GUICtrlSetImage(-1, "shell32.dll", 5)
	$iBtn2 = GUICtrlCreateButton("2", 40, 00, 40, 40, $BS_ICON)
	GUICtrlSetImage(-1, "shell32.dll", 7)
	$iBtn3 = GUICtrlCreateButton("3", 80, 00, 40, 40, $BS_ICON)
	GUICtrlSetImage(-1, "shell32.dll", 22)
	$iBtn4 = GUICtrlCreateButton("4", 120, 0, 40, 40, $BS_ICON)
	GUICtrlSetImage(-1, "shell32.dll", 23)
	$iBtn5 = GUICtrlCreateButton("5", 160, 0, 40, 40, $BS_ICON)
	GUICtrlSetImage(-1, "shell32.dll", 32)
	$iBtnClose = GUICtrlCreateButton("close", 200, 0, 40, 40, $BS_ICON)
	GUICtrlSetImage(-1, "shell32.dll", 28)
	GUISetState()

	; Опрос GUI пока окно не будет закрыто
	While 1
		Switch GUIGetMsg()
			Case $GUI_EVENT_CLOSE
				ExitLoop
			Case $iBtn1
				;
			Case $iBtn2
				;
			Case $iBtn3
				;
			Case $iBtn4
				;
			Case $iBtn5
				;
			Case $iBtnClose
				ExitLoop
			Case Else
		EndSwitch
	WEnd

	GUIDelete()
EndFunc   ;==>_Main
