Try the code below and then re-size the window. You will notice the icon shrinks to the size of the control (which is correct). Though I am interested to know what message should I used so this is done automatically?
I know I can use WinMove() but that's a little hacky!
#include <GUIConstantsEx.au3>
#include <WinAPI.au3>
#include <WindowsConstants.au3>
#include <WinAPIShellEx.au3>
Global Const $STM_SETIMAGE = 0x0172
Example()
Func Example()
Local $hGUI = GUICre
I coded this awhile ago: #include <Constants.au3>
#include <GDIPlus.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
Global Const $STM_SETIMAGE = 0x0172
Global $sPathKey = "HKLM64\SOFTWARE\AutoIt v3\AutoIt\"
If @OSArch = "x64" Then $sPathKey = "HKLM\SOFTWARE\Wow6432Node\AutoIt v3\AutoIt\"
Global $sImage = RegRead($sPathKey, "InstallDir") & "\Examples\GUI\logo4.gif"
_GDIPlus_Startup()
Global $hBmp = _GDIPlus_BitmapCreateFromFile($sImage)
Global $