-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathResources.inc
117 lines (109 loc) · 4.72 KB
/
Resources.inc
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
macro DLGTEMPLATEEX helpID,exStyle,style,cDlgItems,x,y,cx,cy,_menu,title,pointsize,weight,italic,charset,typeface{
dd 0xFFFF0001,helpID,exStyle,style
dw cDlgItems,x,y,cx,cy,_menu,0
du title,0
dw pointsize,weight
db italic,charset
du typeface,0
}
macro DLGITEMTEMPLATEEX helpID,exStyle,style,x,y,cx,cy,id,class,title{
align 4
dd helpID,exStyle,style
dw x,y,cx,cy
dd id
if class eq 'BUTTON'
dw 0FFFFh,80h
else if class eq 'EDIT'
dw 0FFFFh,81h
else if class eq 'STATIC'
dw 0FFFFh,82h
else if class eq 'LISTBOX'
dw 0FFFFh,83h
else if class eq 'SCROLLBAR'
dw 0FFFFh,84h
else if class eq 'COMBOBOX'
dw 0FFFFh,85h
else
du class,0
end if
du title,0
dw 0
}
align 16
mult: dd 0, 0,1,1,\
-1, 0,0,1,\
0, 0,0,0,\
0,-1,1,0,\
0, 0,0,0,\
0, 0,0,0,\
0, 0,0,0,\
-1,-1,0,0
corners: dd +1,+1,\
-1,+1,\
+1,-1,\
-1,-1
dbl_05: dq 0.5,0.5
RCP_SCALE_FACTOR: dq 0.01,0.01
SCALE_FACTOR: dd 100,100
UNPACKED_OFFSET=10000
rcp_sizeof_unpackedRect dd 0.03125 ;0.5/sizeof_unpackedRect;
maxrate dd 2147483647.0
MainDlg: DLGTEMPLATEEX 0,0,DS_SETFONT+DS_MODALFRAME+DS_CENTER+WS_POPUP+WS_CAPTION+WS_SYSMENU,8,0,0,132,60,0,'',9,FW_NORMAL,0,0,'Tahoma'
;encoding macro don`t work here. I don`t know why. So I define unicode-string by hand.
EDIT_CAPTIONS equ 0428h,0438h,0440h,0438h,043Dh,0430h,000Dh,000Ah,000Dh,000Ah,0412h,044Bh,0441h,043Eh,0442h,0430h,000Dh,000Ah,000Dh,000Ah,041Eh,0442h,0441h,0442h,0443h,043Fh;'Øèðèíà',13,10,13,10,'Âûñîòà',13,10,13,10,'Îòñòóï'
DLGITEMTEMPLATEEX 0,0,SS_LEFT+WS_CHILD+WS_VISIBLE ,2 ,2 ,30 ,40,0,'STATIC',EDIT_CAPTIONS
DLGITEMTEMPLATEEX 0,0,ES_LEFT+ES_NUMBER+WS_CHILD+WS_VISIBLE+WS_BORDER+WS_TABSTOP,36,1 ,25 ,12,1,'EDIT','1200'
DLGITEMTEMPLATEEX 0,0,ES_LEFT+ES_NUMBER+WS_CHILD+WS_VISIBLE+WS_BORDER+WS_TABSTOP,36,16,25 ,12,2,'EDIT','2400'
DLGITEMTEMPLATEEX 0,0,ES_LEFT+ES_NUMBER+WS_CHILD+WS_VISIBLE+WS_BORDER+WS_TABSTOP,36,32,25 ,12,3,'EDIT','0'
DLGITEMTEMPLATEEX 0,0,BS_AUTOCHECKBOX+WS_CHILD+WS_VISIBLE+WS_TABSTOP ,67,1 ,62 ,12,4,'BUTTON','Ïåðåìåøàòü'
DLGITEMTEMPLATEEX 0,0,BS_AUTOCHECKBOX+WS_CHILD+WS_VISIBLE+WS_TABSTOP ,67,16,62 ,12,5,'BUTTON','Äîáàâèòü ðàìêó'
DLGITEMTEMPLATEEX 0,0,BS_DEFPUSHBUTTON+WS_CHILD+WS_VISIBLE+WS_TABSTOP ,70,33,50 ,11,6,'BUTTON','&OK'
DLGITEMTEMPLATEEX 0,0,WS_VISIBLE+WS_CHILD ,2 ,48,128,10,7,'msctls_progress32',''
dd sizeof.strDirectEnpack-2
strDirectEnpack du 'DirectEnpack',0
sizeof.strDirectEnpack=$-strDirectEnpack
dd 16
strStandard du 'Standard',0
dd 42
strButtonCaption du 'Ïðÿìîóãîëüíûé ðàñêðîé',0
errCPUNotSupported du 'Ïðîöåññîð íå ïîääåðæèâàåòñÿ. Òðåáóåòñÿ SSE 4.1.',0
fmt du '%u/%u, âûñîòà %u ìì',0
ICOData file 'icon.ico'
sizeof.ICOData=$-ICOData
BMPData file 'icon.bmp'
sizeof.BMPData=$-BMPData
data import
library kernel,'KERNEL32.DLL',\
user,'USER32'
import kernel,\
CloseHandle,'CloseHandle',\
CreateEventW,'CreateEventW',\
CreateFileW,'CreateFileW',\
CreateThread,'CreateThread',\
ExitThread,'ExitThread',\
GetSystemInfo,'GetSystemInfo',\
GetTempPathW,'GetTempPathW',\
lstrcmpW,'lstrcmpW',\
lstrcpyW,'lstrcpyW',\
SetEvent,'SetEvent',\
VirtualAlloc,'VirtualAlloc',\
VirtualFree,'VirtualFree',\
WaitForMultipleObjects,'WaitForMultipleObjects',\
WaitForSingleObject,'WaitForSingleObject',\
WriteFile,'WriteFile'
import user,\
DialogBoxIndirectParamW,'DialogBoxIndirectParamW',\
EnableWindow,'EnableWindow',\
EndDialog,'EndDialog',\
GetDlgItem,'GetDlgItem',\
MessageBoxW,'MessageBoxW',\
PostMessageW,'PostMessageW',\
SendMessageW,'SendMessageW',\
SendDlgItemMessageW,'SendDlgItemMessageW',\
wsprintfW,'wsprintfW'
end data
data export
export 0,AttachPlugin,'AttachPlugin'
end data
data fixups
end data