-
Notifications
You must be signed in to change notification settings - Fork 72
/
Copy pathIL.ahk
28 lines (22 loc) · 1022 Bytes
/
IL.ahk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
ImageList_Create(cx,cy,flags,cInitial,cGrow){
return DllCall("comctl32.dll\ImageList_Create", "int", cx, "int", cy, "uint", flags, "int", cInitial, "int", cGrow)
}
ImageList_Add(hIml, hbmImage, hbmMask=""){
return DllCall("comctl32.dll\ImageList_Add", "uint", hIml, "uint",hbmImage, "uint", hbmMask)
}
ImageList_AddIcon(hIml, hIcon) {
return DllCall("comctl32.dll\ImageList_ReplaceIcon", "uint", hIml, "int", -1, "uint", hIcon)
}
ImageList_Remove(hIml, Pos=-1){
return DllCall("comctl32.dll\ImageList_Remove", "uint", hIml, "int", Pos)
}
API_LoadImage(pPath, uType, cxDesired, cyDesired, fuLoad) {
return, DllCall( "LoadImage", "uint", 0, "str", pPath, "uint", uType, "int", cxDesired, "int", cyDesired, "uint", fuLoad)
}
LoadIcon(Filename, IconNumber, IconSize) {
DllCall("PrivateExtractIcons"
,"str",Filename,"int",IconNumber-1,"int",IconSize,"int",IconSize
,"uint*",h_icon,"uint*",0,"uint",1,"uint",0,"int")
if !ErrorLevel
return h_icon
}