JustPaste.it

::QuickLaunch Toolbar Control
SET "hWndTbCtrl=0x6e0a72"
SET "lPbtnW=0x00180000" ::Small
SET "lPbtnW=0x00340000" ::Big
::SET "SendMessage=SendMessageW"
SET "SendMessage=SendMessageA"

::TB_AUTOSIZE 0421
::https://learn.microsoft.com/it-it/windows/win32/controls/tb-autosize
winapiexec64.exe u@%SendMessage% %hWndTbCtrl% 0x0421 0 0

::TB_GETIDEALSIZE 0463
::https://learn.microsoft.com/it-it/windows/win32/controls/tb-autosize
winapiexec64.exe u@%SendMessage% %hWndTbCtrl% 0x0463 0 0x2e3e2a0

::TB_SETBUTTONWIDTH 043b
::https://learn.microsoft.com/en-us/windows/win32/controls/tb-setbuttonwidth
::winapiexec64.exe u@%SendMessage% %hWndTbCtrl% 0x043b 0 0
winapiexec64.exe u@%SendMessage% %hWndTbCtrl% 0x043b 0 %lPbtnW%

::WM_SETTINGCHANGE 001a
::https://learn.microsoft.com/en-us/windows/win32/winmsg/wm-settingchange
winapiexec64.exe u@%SendMessage% %hWndTbCtrl% 0x001a 0x2f 0
winapiexec64.exe u@%SendMessage% 0xffff 0x001a 0x2f 0

PAUSE
EXIT

::CCM_SETWINDOWTHEME 200b
::https://learn.microsoft.com/en-us/windows/win32/controls/ccm-setwindowtheme
winapiexec64.exe u@%SendMessage% %hWndTbCtrl% 0x200b 0 0x0bd7f3b8

::CCM_SETWINDOWTHEME 200b
::https://learn.microsoft.com/en-us/windows/win32/controls/ccm-setwindowtheme
winapiexec64.exe u@%SendMessage% %hWndTbCtrl% 0x200b 0 0x1224cf18

::WM_THEMECHANGED 031A
::https://learn.microsoft.com/en-us/windows/win32/winmsg/wm-themechanged
winapiexec64.exe u@%SendMessage% %hWndTbCtrl% 0x031a 0xffffffffffffffff 0x80000001