LoadPicture() can not load 256x256 icons?
Posted: 23 May 2020, 03:10
Code: Select all
#NoEnv
#Warn
#SingleInstance, Force
; Trying to load Resource Index: 80 (Resource ID: 84) from imagesres.dll
hMod := DllCall( "LoadLibraryEx", "Str","imageres.dll", "Ptr",0, "Int",0x2, "Ptr")
hIcon1 := DllCall("LoadImage", "Ptr",hMod, "Int",84, "Int",1, "Int",256, "Int",256, "Int",0, "Ptr")
hIcon2 := LoadPicture("imageres.dll", "Icon80 w256 h256", IT)
Gui, Add, Picture,, % "HICON:" hIcon1
Gui, Add, Picture,x+m, % "HICON:" hIcon2
Gui, Show,, % A_OsVersion
Return
In Windows 10 LoadPicture() seems to load a 128x128 icon which isn't available in Windows 7