I’ve made a lot of trails to load custom icons to toolbar.My aim is to include the icons in the same exe file.
The result is blank square in icon place
Here is the code:-
#AutoIt3Wrapper_Res_Icon_Add=ICO_00.ICO
#AutoIt3Wrapper_Res_Icon_Add=ICO_01.ICO
#include <GuiConstantsEx.au3>
#include <WindowsConstants.au3>
#include <GuiToolBar.au3>
Opt('MustDeclareVars', 1)
_Main()
Func _Main()
Global Enum $idNew = 1000, $idOpen
Local $hGUI, $hToolbar, $hNormal
Local $hGUI = GUICreate("Toolbar", 400, 300)
Local $hToolbar = _GUICtrlToolbar_Create($hGUI)
_GUICtrlToolbar_AddBitmap($hGUI, 1, @ScriptFullPath, -5)
_GUICtrlToolbar_AddButton($hToolbar, $idNew, 0)
_GUICtrlToolbar_AddButton($hToolbar, $idOpen, 1)
GUISetState()
Do
Until GUIGetMsg() = $GUI_EVENT_CLOSE
EndFunc ;==>_Main
Any idea for help