Debian Codegraph @

Include/WinMessages.nsh

raw
1 /*
2 _____________________________________________________________________________
3
4 List of common Windows Messages
5 _____________________________________________________________________________
6
7 2005 Shengalts Aleksander aka Instructor ([email protected])
8
9
10 Usage example:
11 ---------------------------------------------------
12 Name "Output"
13 OutFile "Output.exe"
14
15 !include "WinMessages.nsh"
16
17 Section
18 FindWindow $0 '#32770' '' $HWNDPARENT
19 GetDlgItem $1 $0 1027
20 SendMessage $1 ${WM_SETTEXT} 0 'STR:MyText'
21 SectionEnd
22 ---------------------------------------------------
23
24
25 Prefix Message category
26 -------------------------
27 SW ShowWindow Commands
28 CCM Generic Common Control
29 BM Button control
30 CB Combo box control
31 EM Edit control
32 LB List box control
33 WM General window
34 ABM Application desktop toolbar
35 DBT Device
36 DM Default push button control
37 HDM Header control
38 LVM List view control
39 SB Status bar window
40 SBM Scroll bar control
41 STM Static control
42 TCM Tab control
43 PBM Progress bar
44 ACM Animation control
45 TBM Track bar
46 UDM Up-down control
47 HKM Hot key control
48 IPM IP address control
49 NCM Network address control
50 -----------------------------------
51
52 NOT included messages (WM_USER + X)
53 -----------------------------------
54 CBEM Extended combo box control
55 CDM Common dialog box
56 DL Drag list box
57 PGM Pager control
58 PSM Property sheet
59 RB Rebar control
60 TB Toolbar
61 TTM Tooltip control
62 TVM Tree-view control
63 -----------------------------------
64 */
65
66
67 !ifndef WINMESSAGES_INCLUDED
68 !define WINMESSAGES_INCLUDED
69 !verbose push
70 !verbose 3
71
72 !define _NSIS_DEFAW '!insertmacro _NSIS_DEFAW '
73 !macro _NSIS_DEFAW d
74 !ifdef NSIS_UNICODE
75 !define ${d} "${${d}W}"
76 !else
77 !define ${d} "${${d}A}"
78 !endif
79 !macroend
80
81 !define HWND_BROADCAST 0xFFFF
82
83 #ShowWindow Commands#
84 !define SW_HIDE 0
85 !define SW_SHOWNORMAL 1
86 !define SW_NORMAL 1
87 !define SW_SHOWMINIMIZED 2
88 !define SW_SHOWMAXIMIZED 3
89 !define SW_MAXIMIZE 3
90 !define SW_SHOWNOACTIVATE 4
91 !define SW_SHOW 5
92 !define SW_MINIMIZE 6
93 !define SW_SHOWMINNOACTIVE 7
94 !define SW_SHOWNA 8
95 !define SW_RESTORE 9
96 !define SW_SHOWDEFAULT 10
97 !define SW_FORCEMINIMIZE 11
98 !define SW_MAX 11
99
100 #Generic Common Control Messages#
101 !define CCM_FIRST 0x2000
102 !define /math CCM_SETBKCOLOR ${CCM_FIRST} + 0x1 ; IE4
103 !define /math CCM_SETUNICODEFORMAT ${CCM_FIRST} + 0x5
104 !define /math CCM_GETUNICODEFORMAT ${CCM_FIRST} + 0x6
105 !define /math CCM_SETVERSION ${CCM_FIRST} + 0x7 ; IE5
106 !define /math CCM_GETVERSION ${CCM_FIRST} + 0x8
107 !define /math CCM_SETWINDOWTHEME ${CCM_FIRST} + 0xB ; WinXP
108 !define /math CCM_DPISCALE ${CCM_FIRST} + 0xC
109 !define WM_USER 0x400
110
111 !define CCS_TOP 1
112 !define CCS_BOTTOM 3
113 !define CCS_NODIVIDER 64
114 !define CCS_LEFT 129
115 !define CCS_RIGHT 131
116
117 !define I_IMAGENONE -2
118
119 #Button Control Messages#
120 !define BM_CLICK 0x00F5
121 !define BM_GETCHECK 0x00F0
122 !define BM_GETIMAGE 0x00F6
123 !define BM_GETSTATE 0x00F2
124 !define BM_SETCHECK 0x00F1
125 !define BM_SETIMAGE 0x00F7
126 !define BM_SETSTATE 0x00F3
127 !define BM_SETSTYLE 0x00F4
128 !define BCM_SETSHIELD 0x160C ; WinVista + ComCtl32 v6
129
130 !define BST_UNCHECKED 0
131 !define BST_CHECKED 1
132 !define BST_INDETERMINATE 2
133 !define BST_PUSHED 4
134 !define BST_FOCUS 8
135
136 #Combo Box Messages#
137 !define CB_ADDSTRING 0x0143
138 !define CB_DELETESTRING 0x0144
139 !define CB_DIR 0x0145
140 !define CB_FINDSTRING 0x014C
141 !define CB_FINDSTRINGEXACT 0x0158
142 !define CB_GETCOUNT 0x0146
143 !define CB_GETCURSEL 0x0147
144 !define CB_GETDROPPEDCONTROLRECT 0x0152
145 !define CB_GETDROPPEDSTATE 0x0157
146 !define CB_GETDROPPEDWIDTH 0x015f
147 !define CB_GETEDITSEL 0x0140
148 !define CB_GETEXTENDEDUI 0x0156
149 !define CB_GETHORIZONTALEXTENT 0x015d
150 !define CB_GETITEMDATA 0x0150
151 !define CB_GETITEMHEIGHT 0x0154
152 !define CB_GETLBTEXT 0x0148
153 !define CB_GETLBTEXTLEN 0x0149
154 !define CB_GETLOCALE 0x015A
155 !define CB_GETTOPINDEX 0x015b
156 !define CB_INITSTORAGE 0x0161
157 !define CB_INSERTSTRING 0x014A
158 !define CB_LIMITTEXT 0x0141
159 !define CB_MSGMAX 0x015B # 0x0162 0x0163
160 !define CB_MULTIPLEADDSTRING 0x0163
161 !define CB_RESETCONTENT 0x014B
162 !define CB_SELECTSTRING 0x014D
163 !define CB_SETCURSEL 0x014E
164 !define CB_SETDROPPEDWIDTH 0x0160
165 !define CB_SETEDITSEL 0x0142
166 !define CB_SETEXTENDEDUI 0x0155
167 !define CB_SETHORIZONTALEXTENT 0x015e
168 !define CB_SETITEMDATA 0x0151
169 !define CB_SETITEMHEIGHT 0x0153
170 !define CB_SETLOCALE 0x0159
171 !define CB_SETTOPINDEX 0x015c
172 !define CB_SHOWDROPDOWN 0x014F
173 !define CBM_FIRST 0x1700 ; Vista+
174 !define /math CB_SETMINVISIBLE ${CBM_FIRST} + 1
175 !define /math CB_GETMINVISIBLE ${CBM_FIRST} + 2
176 !define /math CB_SETCUEBANNER ${CBM_FIRST} + 3
177 !define /math CB_GETCUEBANNER ${CBM_FIRST} + 4
178
179 !define CB_ERR -1
180
181 #Edit Control Messages#
182 !define EM_CANUNDO 0x00C6
183 !define EM_CHARFROMPOS 0x00D7
184 !define EM_EMPTYUNDOBUFFER 0x00CD
185 !define EM_FMTLINES 0x00C8
186 !define EM_GETFIRSTVISIBLELINE 0x00CE
187 !define EM_GETHANDLE 0x00BD
188 !define EM_GETIMESTATUS 0x00D9
189 !define EM_GETLIMITTEXT 0x00D5
190 !define EM_GETLINE 0x00C4
191 !define EM_GETLINECOUNT 0x00BA
192 !define EM_GETMARGINS 0x00D4
193 !define EM_GETMODIFY 0x00B8
194 !define EM_GETPASSWORDCHAR 0x00D2
195 !define EM_GETRECT 0x00B2
196 !define EM_GETSEL 0x00B0
197 !define EM_GETTHUMB 0x00BE
198 !define EM_GETWORDBREAKPROC 0x00D1
199 !define EM_LIMITTEXT 0x00C5
200 !define EM_LINEFROMCHAR 0x00C9
201 !define EM_LINEINDEX 0x00BB
202 !define EM_LINELENGTH 0x00C1
203 !define EM_LINESCROLL 0x00B6
204 !define EM_POSFROMCHAR 0x00D6
205 !define EM_REPLACESEL 0x00C2
206 !define EM_SCROLL 0x00B5
207 !define EM_SCROLLCARET 0x00B7
208 !define EM_SETHANDLE 0x00BC
209 !define EM_SETIMESTATUS 0x00D8
210 !define EM_SETLIMITTEXT 0x00C5 # Same as EM_LIMITTEXT
211 !define EM_SETMARGINS 0x00D3
212 !define EM_SETMODIFY 0x00B9
213 !define EM_SETPASSWORDCHAR 0x00CC
214 !define EM_SETREADONLY 0x00CF
215 !define EM_SETRECT 0x00B3
216 !define EM_SETRECTNP 0x00B4
217 !define EM_SETSEL 0x00B1
218 !define EM_SETTABSTOPS 0x00CB
219 !define EM_SETWORDBREAKPROC 0x00D0
220 !define EM_UNDO 0x00C7
221 !define ECM_FIRST 0x1500 ; CC6+
222 !define /math EM_SETCUEBANNER ${ECM_FIRST} + 1
223
224 #RichEdit Messages#
225 !define /math EM_EXGETSEL ${WM_USER} + 52
226 !define /math EM_EXLIMITTEXT ${WM_USER} + 53
227 !define /math EM_EXLINEFROMCHAR ${WM_USER} + 54
228 !define /math EM_GETEVENTMASK ${WM_USER} + 59
229 !define /math EM_GETOLEINTERFACE ${WM_USER} + 60
230 !define /math EM_HIDESELECTION ${WM_USER} + 63
231 !define /math EM_SETBKGNDCOLOR ${WM_USER} + 67
232 !define /math EM_SETEVENTMASK ${WM_USER} + 69
233 !define /math EM_STREAMIN ${WM_USER} + 73
234 !define /math EM_STREAMOUT ${WM_USER} + 74
235 !define /math EM_GETTEXTRANGE ${WM_USER} + 75
236 !define /math EM_SETOPTIONS ${WM_USER} + 77
237 !define /math EM_GETOPTIONS ${WM_USER} + 78
238 !define /math EM_SETUNDOLIMIT ${WM_USER} + 82 ; v2+
239 !define /math EM_AUTOURLDETECT ${WM_USER} + 91
240 !define /Math EM_SETTEXTEX ${WM_USER} + 97 ; v3+
241 !define /math EM_SETEDITSTYLE ${WM_USER} + 204
242 !define /math EM_SETFONTSIZE ${WM_USER} + 223
243
244 !define EN_MSGFILTER 0x0700
245 !define EN_SELCHANGE 0x0702
246 !define EN_LINK 0x070b
247
248 !define ENM_NONE 0x00000000
249 !define ENM_CHANGE 0x00000001
250 !define ENM_UPDATE 0x00000002
251 !define ENM_SCROLL 0x00000004
252 !define ENM_SCROLLEVENTS 0x00000008
253 !define ENM_KEYEVENTS 0x00010000
254 !define ENM_MOUSEEVENTS 0x00020000
255 !define ENM_SELCHANGE 0x00080000
256 !define ENM_LINK 0x04000000 ; v2+
257
258 #Listbox Messages#
259 !define LB_ADDFILE 0x0196
260 !define LB_ADDSTRING 0x0180
261 !define LB_DELETESTRING 0x0182
262 !define LB_DIR 0x018D
263 !define LB_FINDSTRING 0x018F
264 !define LB_FINDSTRINGEXACT 0x01A2
265 !define LB_GETANCHORINDEX 0x019D
266 !define LB_GETCARETINDEX 0x019F
267 !define LB_GETCOUNT 0x018B
268 !define LB_GETCURSEL 0x0188
269 !define LB_GETHORIZONTALEXTENT 0x0193
270 !define LB_GETITEMDATA 0x0199
271 !define LB_GETITEMHEIGHT 0x01A1
272 !define LB_GETITEMRECT 0x0198
273 !define LB_GETLOCALE 0x01A6
274 !define LB_GETSEL 0x0187
275 !define LB_GETSELCOUNT 0x0190
276 !define LB_GETSELITEMS 0x0191
277 !define LB_GETTEXT 0x0189
278 !define LB_GETTEXTLEN 0x018A
279 !define LB_GETTOPINDEX 0x018E
280 !define LB_INITSTORAGE 0x01A8
281 !define LB_INSERTSTRING 0x0181
282 !define LB_ITEMFROMPOINT 0x01A9
283 !define LB_MSGMAX 0x01A8 # 0x01B0 0x01B1
284 !define LB_MULTIPLEADDSTRING 0x01B1
285 !define LB_RESETCONTENT 0x0184
286 !define LB_SELECTSTRING 0x018C
287 !define LB_SELITEMRANGE 0x019B
288 !define LB_SELITEMRANGEEX 0x0183
289 !define LB_SETANCHORINDEX 0x019C
290 !define LB_SETCARETINDEX 0x019E
291 !define LB_SETCOLUMNWIDTH 0x0195
292 !define LB_SETCOUNT 0x01A7
293 !define LB_SETCURSEL 0x0186
294 !define LB_SETHORIZONTALEXTENT 0x0194
295 !define LB_SETITEMDATA 0x019A
296 !define LB_SETITEMHEIGHT 0x01A0
297 !define LB_SETLOCALE 0x01A5
298 !define LB_SETSEL 0x0185
299 !define LB_SETTABSTOPS 0x0192
300 !define LB_SETTOPINDEX 0x0197
301
302 !define LB_ERR -1
303
304 #Window Messages#
305 !define WM_ACTIVATE 0x0006
306 !define WM_ACTIVATEAPP 0x001C
307 !define WM_AFXFIRST 0x0360
308 !define WM_AFXLAST 0x037F
309 !define WM_APP 0x8000
310 !define WM_APPCOMMAND 0x0319
311 !define WM_ASKCBFORMATNAME 0x030C
312 !define WM_CANCELJOURNAL 0x004B
313 !define WM_CANCELMODE 0x001F
314 !define WM_CAPTURECHANGED 0x0215
315 !define WM_CHANGECBCHAIN 0x030D
316 !define WM_CHANGEUISTATE 0x0127
317 !define WM_CHAR 0x0102
318 !define WM_CHARTOITEM 0x002F
319 !define WM_CHILDACTIVATE 0x0022
320 !define WM_CLEAR 0x0303
321 !define WM_CLOSE 0x0010
322 !define WM_COMMAND 0x0111
323 !define WM_COMMNOTIFY 0x0044 # no longer supported
324 !define WM_COMPACTING 0x0041
325 !define WM_COMPAREITEM 0x0039
326 !define WM_CONTEXTMENU 0x007B
327 !define WM_CONVERTREQUESTEX 0x108
328 !define WM_COPY 0x0301
329 !define WM_COPYDATA 0x004A
330 !define WM_CREATE 0x0001
331 !define WM_CTLCOLOR 0x0019
332 !define WM_CTLCOLORBTN 0x0135
333 !define WM_CTLCOLORDLG 0x0136
334 !define WM_CTLCOLOREDIT 0x0133
335 !define WM_CTLCOLORLISTBOX 0x0134
336 !define WM_CTLCOLORMSGBOX 0x0132
337 !define WM_CTLCOLORSCROLLBAR 0x0137
338 !define WM_CTLCOLORSTATIC 0x0138
339 !define WM_CUT 0x0300
340 !define WM_DDE_FIRST 0x3E0
341 !define WM_DEADCHAR 0x0103
342 !define WM_DELETEITEM 0x002D
343 !define WM_DESTROY 0x0002
344 !define WM_DESTROYCLIPBOARD 0x0307
345 !define WM_DEVICECHANGE 0x0219
346 !define WM_DEVMODECHANGE 0x001B
347 !define WM_DISPLAYCHANGE 0x007E
348 !define WM_DRAWCLIPBOARD 0x0308
349 !define WM_DRAWITEM 0x002B
350 !define WM_DROPFILES 0x0233
351 !define WM_ENABLE 0x000A
352 !define WM_ENDSESSION 0x0016
353 !define WM_ENTERIDLE 0x0121
354 !define WM_ENTERMENULOOP 0x0211
355 !define WM_ENTERSIZEMOVE 0x0231
356 !define WM_ERASEBKGND 0x0014
357 !define WM_EXITMENULOOP 0x0212
358 !define WM_EXITSIZEMOVE 0x0232
359 !define WM_FONTCHANGE 0x001D
360 !define WM_GETDLGCODE 0x0087
361 !define WM_GETFONT 0x0031
362 !define WM_GETHOTKEY 0x0033
363 !define WM_GETICON 0x007F
364 !define WM_GETMINMAXINFO 0x0024
365 !define WM_GETOBJECT 0x003D
366 !define WM_GETTEXT 0x000D
367 !define WM_GETTEXTLENGTH 0x000E
368 !define WM_HANDHELDFIRST 0x0358
369 !define WM_HANDHELDLAST 0x035F
370 !define WM_HELP 0x0053
371 !define WM_HOTKEY 0x0312
372 !define WM_HSCROLL 0x0114
373 !define WM_HSCROLLCLIPBOARD 0x030E
374 !define WM_ICONERASEBKGND 0x0027
375 !define WM_IME_CHAR 0x0286
376 !define WM_IME_COMPOSITION 0x010F
377 !define WM_IME_COMPOSITIONFULL 0x0284
378 !define WM_IME_CONTROL 0x0283
379 !define WM_IME_ENDCOMPOSITION 0x010E
380 !define WM_IME_KEYDOWN 0x0290
381 !define WM_IME_KEYLAST 0x010F
382 !define WM_IME_KEYUP 0x0291
383 !define WM_IME_NOTIFY 0x0282
384 !define WM_IME_REQUEST 0x0288
385 !define WM_IME_SELECT 0x0285
386 !define WM_IME_SETCONTEXT 0x0281
387 !define WM_IME_STARTCOMPOSITION 0x010D
388 !define WM_INITDIALOG 0x0110
389 !define WM_INITMENU 0x0116
390 !define WM_INITMENUPOPUP 0x0117
391 !define WM_INPUT 0x00FF
392 !define WM_INPUTLANGCHANGE 0x0051
393 !define WM_INPUTLANGCHANGEREQUEST 0x0050
394 !define WM_KEYDOWN 0x0100
395 !define WM_KEYFIRST 0x0100
396 !define WM_KEYLAST 0x0108
397 !define WM_KEYUP 0x0101
398 !define WM_KILLFOCUS 0x0008
399 !define WM_LBUTTONDBLCLK 0x0203
400 !define WM_LBUTTONDOWN 0x0201
401 !define WM_LBUTTONUP 0x0202
402 !define WM_MBUTTONDBLCLK 0x0209
403 !define WM_MBUTTONDOWN 0x0207
404 !define WM_MBUTTONUP 0x0208
405 !define WM_MDIACTIVATE 0x0222
406 !define WM_MDICASCADE 0x0227
407 !define WM_MDICREATE 0x0220
408 !define WM_MDIDESTROY 0x0221
409 !define WM_MDIGETACTIVE 0x0229
410 !define WM_MDIICONARRANGE 0x0228
411 !define WM_MDIMAXIMIZE 0x0225
412 !define WM_MDINEXT 0x0224
413 !define WM_MDIREFRESHMENU 0x0234
414 !define WM_MDIRESTORE 0x0223
415 !define WM_MDISETMENU 0x0230
416 !define WM_MDITILE 0x0226
417 !define WM_MEASUREITEM 0x002C
418 !define WM_MENUCHAR 0x0120
419 !define WM_MENUCOMMAND 0x0126
420 !define WM_MENUDRAG 0x0123
421 !define WM_MENUGETOBJECT 0x0124
422 !define WM_MENURBUTTONUP 0x0122
423 !define WM_MENUSELECT 0x011F
424 !define WM_MOUSEACTIVATE 0x0021
425 !define WM_MOUSEFIRST 0x0200
426 !define WM_MOUSEHOVER 0x02A1
427 !define WM_MOUSELAST 0x0209 # 0x020A 0x020D
428 !define WM_MOUSELEAVE 0x02A3
429 !define WM_MOUSEMOVE 0x0200
430 !define WM_MOUSEWHEEL 0x020A
431 !define WM_MOVE 0x0003
432 !define WM_MOVING 0x0216
433 !define WM_NCACTIVATE 0x0086
434 !define WM_NCCALCSIZE 0x0083
435 !define WM_NCCREATE 0x0081
436 !define WM_NCDESTROY 0x0082
437 !define WM_NCHITTEST 0x0084
438 !define WM_NCLBUTTONDBLCLK 0x00A3
439 !define WM_NCLBUTTONDOWN 0x00A1
440 !define WM_NCLBUTTONUP 0x00A2
441 !define WM_NCMBUTTONDBLCLK 0x00A9
442 !define WM_NCMBUTTONDOWN 0x00A7
443 !define WM_NCMBUTTONUP 0x00A8
444 !define WM_NCMOUSEHOVER 0x02A0
445 !define WM_NCMOUSELEAVE 0x02A2
446 !define WM_NCMOUSEMOVE 0x00A0
447 !define WM_NCPAINT 0x0085
448 !define WM_NCRBUTTONDBLCLK 0x00A6
449 !define WM_NCRBUTTONDOWN 0x00A4
450 !define WM_NCRBUTTONUP 0x00A5
451 !define WM_NCXBUTTONDBLCLK 0x00AD
452 !define WM_NCXBUTTONDOWN 0x00AB
453 !define WM_NCXBUTTONUP 0x00AC
454 !define WM_NEXTDLGCTL 0x0028
455 !define WM_NEXTMENU 0x0213
456 !define WM_NOTIFY 0x004E
457 !define WM_NOTIFYFORMAT 0x0055
458 !define WM_NULL 0x0000
459 !define WM_PAINT 0x000F
460 !define WM_PAINTCLIPBOARD 0x0309
461 !define WM_PAINTICON 0x0026
462 !define WM_PALETTECHANGED 0x0311
463 !define WM_PALETTEISCHANGING 0x0310
464 !define WM_PARENTNOTIFY 0x0210
465 !define WM_PASTE 0x0302
466 !define WM_PENWINFIRST 0x0380
467 !define WM_PENWINLAST 0x038F
468 !define WM_POWER 0x0048
469 !define WM_POWERBROADCAST 0x0218
470 !define WM_PRINT 0x0317
471 !define WM_PRINTCLIENT 0x0318
472 !define WM_QUERYDRAGICON 0x0037
473 !define WM_QUERYENDSESSION 0x0011
474 !define WM_QUERYNEWPALETTE 0x030F
475 !define WM_QUERYOPEN 0x0013
476 !define WM_QUERYUISTATE 0x0129
477 !define WM_QUEUESYNC 0x0023
478 !define WM_QUIT 0x0012
479 !define WM_RBUTTONDBLCLK 0x0206
480 !define WM_RBUTTONDOWN 0x0204
481 !define WM_RBUTTONUP 0x0205
482 !define WM_RASDIALEVENT 0xCCCD
483 !define WM_RENDERALLFORMATS 0x0306
484 !define WM_RENDERFORMAT 0x0305
485 !define WM_SETCURSOR 0x0020
486 !define WM_SETFOCUS 0x0007
487 !define WM_SETFONT 0x0030
488 !define WM_SETHOTKEY 0x0032
489 !define WM_SETICON 0x0080
490 !define WM_SETREDRAW 0x000B
491 !define WM_SETTEXT 0x000C
492 !define WM_SETTINGCHANGE 0x001A # Same as WM_WININICHANGE
493 !define WM_SHOWWINDOW 0x0018
494 !define WM_SIZE 0x0005
495 !define WM_SIZECLIPBOARD 0x030B
496 !define WM_SIZING 0x0214
497 !define WM_SPOOLERSTATUS 0x002A
498 !define WM_STYLECHANGED 0x007D
499 !define WM_STYLECHANGING 0x007C
500 !define WM_SYNCPAINT 0x0088
501 !define WM_SYSCHAR 0x0106
502 !define WM_SYSCOLORCHANGE 0x0015
503 !define WM_SYSCOMMAND 0x0112
504 !define WM_SYSDEADCHAR 0x0107
505 !define WM_SYSKEYDOWN 0x0104
506 !define WM_SYSKEYUP 0x0105
507 !define WM_TABLET_FIRST 0x02C0
508 !define WM_TABLET_LAST 0x02DF
509 !define WM_THEMECHANGED 0x031A
510 !define WM_TCARD 0x0052
511 !define WM_TIMECHANGE 0x001E
512 !define WM_TIMER 0x0113
513 !define WM_UNDO 0x0304
514 !define WM_UNICHAR 0x0109
515 !define WM_UNINITMENUPOPUP 0x0125
516 !define WM_UPDATEUISTATE 0x0128
517 !define WM_USERCHANGED 0x0054
518 !define WM_VKEYTOITEM 0x002E
519 !define WM_VSCROLL 0x0115
520 !define WM_VSCROLLCLIPBOARD 0x030A
521 !define WM_WINDOWPOSCHANGED 0x0047
522 !define WM_WINDOWPOSCHANGING 0x0046
523 !define WM_WININICHANGE 0x001A
524 !define WM_WTSSESSION_CHANGE 0x02B1
525 !define WM_XBUTTONDBLCLK 0x020D
526 !define WM_XBUTTONDOWN 0x020B
527 !define WM_XBUTTONUP 0x020C
528
529
530 #Application desktop toolbar#
531 !define ABM_ACTIVATE 0x00000006 # lParam == TRUE/FALSE means activate/deactivate
532 !define ABM_GETAUTOHIDEBAR 0x00000007
533 !define ABM_GETSTATE 0x00000004
534 !define ABM_GETTASKBARPOS 0x00000005
535 !define ABM_NEW 0x00000000
536 !define ABM_QUERYPOS 0x00000002
537 !define ABM_REMOVE 0x00000001
538 !define ABM_SETAUTOHIDEBAR 0x00000008 # This can fail, you MUST check the result
539 !define ABM_SETPOS 0x00000003
540 !define ABM_WINDOWPOSCHANGED 0x0000009
541
542 #Device#
543 !define DBT_APPYBEGIN 0x0000
544 !define DBT_APPYEND 0x0001
545 !define DBT_CONFIGCHANGECANCELED 0x0019
546 !define DBT_CONFIGCHANGED 0x0018
547 !define DBT_CONFIGMGAPI32 0x0022
548 !define DBT_CONFIGMGPRIVATE 0x7FFF
549 !define DBT_CUSTOMEVENT 0x8006 # User-defined event
550 !define DBT_DEVICEARRIVAL 0x8000 # System detected a new device
551 !define DBT_DEVICEQUERYREMOVE 0x8001 # Wants to remove, may fail
552 !define DBT_DEVICEQUERYREMOVEFAILED 0x8002 # Removal aborted
553 !define DBT_DEVICEREMOVECOMPLETE 0x8004 # Device is gone
554 !define DBT_DEVICEREMOVEPENDING 0x8003 # About to remove, still avail.
555 !define DBT_DEVICETYPESPECIFIC 0x8005 # Type specific event
556 !define DBT_DEVNODES_CHANGED 0x0007
557 !define DBT_DEVTYP_DEVICEINTERFACE 0x00000005 # Device interface class
558 !define DBT_DEVTYP_DEVNODE 0x00000001 # Devnode number
559 !define DBT_DEVTYP_HANDLE 0x00000006 # File system handle
560 !define DBT_DEVTYP_NET 0x00000004 # Network resource
561 !define DBT_DEVTYP_OEM 0x00000000 # Oem-defined device type
562 !define DBT_DEVTYP_PORT 0x00000003 # Serial, parallel
563 !define DBT_DEVTYP_VOLUME 0x00000002 # Logical volume
564 !define DBT_LOW_DISK_SPACE 0x0048
565 !define DBT_MONITORCHANGE 0x001B
566 !define DBT_NO_DISK_SPACE 0x0047
567 !define DBT_QUERYCHANGECONFIG 0x0017
568 !define DBT_SHELLLOGGEDON 0x0020
569 !define DBT_USERDEFINED 0xFFFF
570 !define DBT_VOLLOCKLOCKFAILED 0x8043
571 !define DBT_VOLLOCKLOCKRELEASED 0x8045
572 !define DBT_VOLLOCKLOCKTAKEN 0x8042
573 !define DBT_VOLLOCKQUERYLOCK 0x8041
574 !define DBT_VOLLOCKQUERYUNLOCK 0x8044
575 !define DBT_VOLLOCKUNLOCKFAILED 0x8046
576 !define DBT_VPOWERDAPI 0x8100 # VPOWERD API for Win95
577 !define DBT_VXDINITCOMPLETE 0x0023
578
579 #Default push button control#
580 !define DM_BITSPERPEL 0x00040000
581 !define DM_COLLATE 0x00008000
582 !define DM_COLOR 0x00000800
583 !define DM_COPIES 0x00000100
584 !define DM_DEFAULTSOURCE 0x00000200
585 !define DM_DISPLAYFLAGS 0x00200000
586 !define DM_DISPLAYFREQUENCY 0x00400000
587 !define DM_DITHERTYPE 0x04000000
588 !define DM_DUPLEX 0x00001000
589 !define DM_FORMNAME 0x00010000
590 !define DM_GRAYSCALE 0x00000001 # This flag is no longer valid
591 !define DM_ICMINTENT 0x01000000
592 !define DM_ICMMETHOD 0x00800000
593 !define DM_INTERLACED 0x00000002 # This flag is no longer valid
594 !define DM_LOGPIXELS 0x00020000
595 !define DM_MEDIATYPE 0x02000000
596 !define DM_NUP 0x00000040
597 !define DM_ORIENTATION 0x00000001
598 !define DM_PANNINGHEIGHT 0x10000000
599 !define DM_PANNINGWIDTH 0x08000000
600 !define DM_PAPERLENGTH 0x00000004
601 !define DM_PAPERSIZE 0x00000002
602 !define DM_PAPERWIDTH 0x00000008
603 !define DM_PELSHEIGHT 0x00100000
604 !define DM_PELSWIDTH 0x00080000
605 !define DM_POSITION 0x00000020
606 !define DM_PRINTQUALITY 0x00000400
607 !define DM_SCALE 0x00000010
608 !define DM_SPECVERSION 0x0320 # 0x0400 0x0401
609 !define DM_TTOPTION 0x00004000
610 !define DM_YRESOLUTION 0x00002000
611
612 #Header control#
613 !define HDM_FIRST 0x1200
614
615 #List view control#
616 !define LVS_SINGLESEL 4
617 !define LVS_SHOWSELALWAYS 8
618 !define LVS_SORTASCENDING 0x10
619 !define LVS_SORTDESCENDING 0x20
620 !define LVS_SHAREIMAGELISTS 0x40
621 !define LVS_EDITLABELS 0x200
622 !define LVS_NOSCROLL 0x2000
623 !define LVS_NOCOLUMNHEADER 0x4000
624 !define LVS_NOSORTHEADER 0x8000
625 !define LVS_ICON 0
626 !define LVS_REPORT 1
627 !define LVS_SMALLICON 2
628 !define LVS_LIST 3
629 !define LVS_EX_CHECKBOXES 4
630 !define LVS_EX_FULLROWSELECT 0x20
631 !define LVS_EX_INFOTIP 0x400
632 !define LVS_EX_LABELTIP 0x4000
633 !define LVS_EX_DOUBLEBUFFER 0x10000
634 !define LVIF_TEXT 1
635 !define LVIF_IMAGE 2
636 !define LVIF_PARAM 4
637 !define LVIF_STATE 8
638 !define LVIS_STATEIMAGEMASK 0xF000
639 !define LVCF_FMT 1
640 !define LVCF_WIDTH 2
641 !define LVCF_TEXT 4
642 !define LVCF_SUBITEM 8
643 !define SYSSTRUCT_LVITEM_V1 (i,i,i,i,&i${NSIS_PTR_SIZE},t,i,i,p)
644 !define SYSSTRUCT_LVITEM_V2 (i,i,i,i,&i${NSIS_PTR_SIZE},t,i,i,p,i) ; IE3
645 !define SYSSTRUCT_LVITEM_V3 (i,i,i,i,&i${NSIS_PTR_SIZE},t,i,i,p,i,i,i,i) ; WinXP + ComCtl32 v6
646 !define SYSSTRUCT_LVITEM_V4 (i,i,i,i,&i${NSIS_PTR_SIZE},t,i,i,p,i,i,i,i,i,i) ; WinVista + ComCtl32 v6
647 !define LVSCW_AUTOSIZE -1
648 !define LVSCW_AUTOSIZE_USEHEADER -2
649 !define LVM_FIRST 0x00001000
650 !define /math LVM_GETIMAGELIST ${LVM_FIRST} + 2
651 !define /math LVM_SETIMAGELIST ${LVM_FIRST} + 3
652 !define /math LVM_GETITEMCOUNT ${LVM_FIRST} + 4
653 !define /math LVM_GETITEMA ${LVM_FIRST} + 5
654 !define /math LVM_SETITEMA ${LVM_FIRST} + 6
655 !define /math LVM_INSERTITEMA ${LVM_FIRST} + 7
656 !define /math LVM_DELETEITEM ${LVM_FIRST} + 8
657 !define /math LVM_DELETEALLITEMS ${LVM_FIRST} + 9
658 !define /math LVM_INSERTCOLUMNA ${LVM_FIRST} + 27
659 !define /math LVM_SETCOLUMNWIDTH ${LVM_FIRST} + 30
660 !define /math LVM_SETITEMSTATE ${LVM_FIRST} + 43
661 !define /math LVM_GETITEMSTATE ${LVM_FIRST} + 44
662 !define /math LVM_GETITEMTEXTA ${LVM_FIRST} + 45
663 !define /math LVM_SETITEMTEXTA ${LVM_FIRST} + 46
664 !define /math LVM_SETITEMCOUNT ${LVM_FIRST} + 47
665 !define /math LVM_SORTITEMS ${LVM_FIRST} + 48
666 !define /math LVM_SETEXTENDEDLISTVIEWSTYLE ${LVM_FIRST} + 54
667 !define /math LVM_GETEXTENDEDLISTVIEWSTYLE ${LVM_FIRST} + 55
668 !define /math LVM_GETITEMW ${LVM_FIRST} + 75
669 !define /math LVM_SETITEMW ${LVM_FIRST} + 76
670 !define /math LVM_INSERTITEMW ${LVM_FIRST} + 77
671 !define /math LVM_INSERTCOLUMNW ${LVM_FIRST} + 97
672 !define /math LVM_GETITEMTEXTW ${LVM_FIRST} + 115
673 !define /math LVM_SETITEMTEXTW ${LVM_FIRST} + 116
674 !define /math LVM_SETSELECTEDCOLUMN ${LVM_FIRST} + 140
675 ${_NSIS_DEFAW} LVM_GETITEM
676 ${_NSIS_DEFAW} LVM_SETITEM
677 ${_NSIS_DEFAW} LVM_INSERTITEM
678 ${_NSIS_DEFAW} LVM_INSERTCOLUMN
679 ${_NSIS_DEFAW} LVM_GETITEMTEXT
680 ${_NSIS_DEFAW} LVM_SETITEMTEXT
681
682 #Status bar window#
683 !define SB_SIMPLEID 0x00ff
684
685 #Scroll bar control#
686 !define SBM_ENABLE_ARROWS 0x00E4 # Not in win3.1
687 !define SBM_GETPOS 0x00E1 # Not in win3.1
688 !define SBM_GETRANGE 0x00E3 # Not in win3.1
689 !define SBM_GETSCROLLINFO 0x00EA
690 !define SBM_SETPOS 0x00E0 # Not in win3.1
691 !define SBM_SETRANGE 0x00E2 # Not in win3.1
692 !define SBM_SETRANGEREDRAW 0x00E6 # Not in win3.1
693 !define SBM_SETSCROLLINFO 0x00E9
694
695 #Static control#
696 !define STM_SETICON 0x0170
697 !define STM_GETICON 0x0171
698 !define STM_SETIMAGE 0x0172
699 !define STM_GETIMAGE 0x0173
700 !define STM_MSGMAX 0x0174
701
702 #Tab control#
703 !define TCS_SCROLLOPPOSITE 0x0001
704 !define TCIF_TEXT 1
705 !define TCIF_PARAM 8
706 !define SYSSTRUCT_TCITEM (i,i,&i${NSIS_PTR_SIZE},t,i,i,p)
707 !define TCM_FIRST 0x1300
708 !define /math TCM_INSERTITEMA ${TCM_FIRST} + 7
709 !define /math TCM_GETCURSEL ${TCM_FIRST} + 11
710 !define /math TCM_ADJUSTRECT ${TCM_FIRST} + 40
711 !define /math TCM_INSERTITEMW ${TCM_FIRST} + 62
712 !define TCN_SELCHANGE -551
713 !define TCN_SELCHANGING -552
714 ${_NSIS_DEFAW} TCM_INSERTITEM
715
716 #Progress bar control#
717 !define PBM_SETRANGE 0x401
718 !define PBM_SETPOS 0x402
719 !define PBM_DELTAPOS 0x403
720 !define PBM_SETSTEP 0x404
721 !define PBM_STEPIT 0x405
722 !define PBM_SETRANGE32 0x406 ; IE3 + ComCtl32 v4.70
723 !define PBM_GETRANGE 0x407
724 !define PBM_GETPOS 0x408
725 !define PBM_SETBARCOLOR 0x409 ; IE4 + ComCtl32 v4.71
726 !define PBM_SETBKCOLOR ${CCM_SETBKCOLOR}
727 !define PBM_SETMARQUEE 0x40A ; WinXP + ComCtl32 v6
728 !define PBM_GETSTEP 0x40D ; WinVista
729 !define PBM_GETBKCOLOR 0x40E
730 !define PBM_GETBARCOLOR 0x40F
731 !define PBM_SETSTATE 0x410
732 !define PBM_GETSTATE 0x411
733
734 !define PBST_NORMAL 1
735 !define PBST_ERROR 2
736 !define PBST_PAUSED 3
737
738 #Animation control#
739 !define /math ACM_OPENA ${WM_USER} + 100
740 !define /math ACM_PLAY ${WM_USER} + 101
741 !define /math ACM_STOP ${WM_USER} + 102
742 !define /math ACM_OPENW ${WM_USER} + 103
743 ${_NSIS_DEFAW} ACM_OPEN
744
745 #TrackBar control#
746 !define /math TBM_GETPOS ${WM_USER} + 0
747 !define /math TBM_GETRANGEMIN ${WM_USER} + 1
748 !define /math TBM_GETRANGEMAX ${WM_USER} + 2
749 !define /math TBM_GETTIC ${WM_USER} + 3
750 !define /math TBM_SETTIC ${WM_USER} + 4
751 !define /math TBM_SETPOS ${WM_USER} + 5
752 !define /math TBM_SETRANGE ${WM_USER} + 6
753 !define /math TBM_SETRANGEMIN ${WM_USER} + 7
754 !define /math TBM_SETRANGEMAX ${WM_USER} + 8
755 !define /math TBM_CLEARTICS ${WM_USER} + 9
756 !define /math TBM_SETSEL ${WM_USER} + 10
757 !define /math TBM_SETSELSTART ${WM_USER} + 11
758 !define /math TBM_SETSELEND ${WM_USER} + 12
759 !define /math TBM_GETPTICS ${WM_USER} + 14
760 !define /math TBM_GETTICPOS ${WM_USER} + 15
761 !define /math TBM_GETNUMTICS ${WM_USER} + 16
762 !define /math TBM_GETSELSTART ${WM_USER} + 17
763 !define /math TBM_GETSELEND ${WM_USER} + 18
764 !define /math TBM_CLEARSEL ${WM_USER} + 19
765 !define /math TBM_SETTICFREQ ${WM_USER} + 20 ; TBS_AUTOTICKS required
766 !define /math TBM_SETPAGESIZE ${WM_USER} + 21
767 !define /math TBM_GETPAGESIZE ${WM_USER} + 22
768 !define /math TBM_SETLINESIZE ${WM_USER} + 23
769 !define /math TBM_GETLINESIZE ${WM_USER} + 24
770 !define /math TBM_GETTHUMBRECT ${WM_USER} + 25
771 !define /math TBM_GETCHANNELRECT ${WM_USER} + 26
772 !define /math TBM_SETTHUMBLENGTH ${WM_USER} + 27
773 !define /math TBM_GETTHUMBLENGTH ${WM_USER} + 28
774 !define /math TBM_SETTOOLTIPS ${WM_USER} + 29 ; IE3
775 !define /math TBM_GETTOOLTIPS ${WM_USER} + 30 ; IE3
776 !define /math TBM_SETTIPSIDE ${WM_USER} + 31 ; IE3
777 !define /math TBM_SETBUDDY ${WM_USER} + 32 ; IE3
778 !define /math TBM_GETBUDDY ${WM_USER} + 33 ; IE3
779 !define TBM_SETUNICODEFORMAT ${CCM_SETUNICODEFORMAT} ; IE4
780 !define TBM_GETUNICODEFORMAT ${CCM_GETUNICODEFORMAT} ; IE4
781 !define /math TBM_SETPOSNOTIFY ${WM_USER} + 34 ; 7?
782
783 #UpDown controls#
784 !define /math UDM_SETRANGE ${WM_USER} + 101
785 !define /math UDM_GETRANGE ${WM_USER} + 102
786 !define /math UDM_SETPOS ${WM_USER} + 103
787 !define /math UDM_GETPOS ${WM_USER} + 104
788 !define /math UDM_SETBUDDY ${WM_USER} + 105
789 !define /math UDM_GETBUDDY ${WM_USER} + 106
790 !define /math UDM_SETACCEL ${WM_USER} + 107
791 !define /math UDM_GETACCEL ${WM_USER} + 108
792 !define /math UDM_SETBASE ${WM_USER} + 109
793 !define /math UDM_GETBASE ${WM_USER} + 110
794 !define /math UDM_SETRANGE32 ${WM_USER} + 111 ; IE4
795 !define /math UDM_GETRANGE32 ${WM_USER} + 112 ; IE4
796 !define UDM_SETUNICODEFORMAT ${CCM_SETUNICODEFORMAT} ; IE4
797 !define UDM_GETUNICODEFORMAT ${CCM_GETUNICODEFORMAT} ; IE4
798 !define /math UDM_SETPOS32 ${WM_USER} + 113 ; IE5
799 !define /math UDM_GETPOS32 ${WM_USER} + 114 ; IE5
800
801 #HotKey control#
802 !define /math HKM_SETHOTKEY ${WM_USER} + 1
803 !define /math HKM_GETHOTKEY ${WM_USER} + 2
804 !define /math HKM_SETRULES ${WM_USER} + 3
805 !define /IfNDef HOTKEYF_SHIFT 0x01
806 !define /IfNDef HOTKEYF_CONTROL 0x02
807 !define /IfNDef HOTKEYF_ALT 0x04
808 !define /IfNDef HOTKEYF_EXT 0x08
809 !define HKCOMB_NONE 0x01
810 !define HKCOMB_S 0x02
811 !define HKCOMB_C 0x04
812 !define HKCOMB_A 0x08
813 !define HKCOMB_SC 0x10
814 !define HKCOMB_SA 0x20
815 !define HKCOMB_CA 0x40
816 !define HKCOMB_SCA 0x80
817
818 #IPAddress control#
819 !define /math IPM_CLEARADDRESS ${WM_USER} + 100
820 !define /math IPM_SETADDRESS ${WM_USER} + 101
821 !define /math IPM_GETADDRESS ${WM_USER} + 102
822 !define /math IPM_SETRANGE ${WM_USER} + 103
823 !define /math IPM_SETFOCUS ${WM_USER} + 104
824 !define /math IPM_ISBLANK ${WM_USER} + 105
825
826 #NetworkAddress control#
827 !define /math NCM_GETADDRESS ${WM_USER} + 1 ; Vista+
828 !define /math NCM_SETALLOWTYPE ${WM_USER} + 2
829 !define /math NCM_GETALLOWTYPE ${WM_USER} + 3
830 !define /math NCM_DISPLAYERRORTIP ${WM_USER} + 4
831
832 #Month calendar control#
833 !define MCM_FIRST 0x1000
834 !define /math MCM_GETCURSEL ${MCM_FIRST} + 1
835 !define /math MCM_SETCURSEL ${MCM_FIRST} + 2
836 !define /math MCM_GETMAXSELCOUNT ${MCM_FIRST} + 3
837 !define /math MCM_SETMAXSELCOUNT ${MCM_FIRST} + 4
838 !define /math MCM_GETSELRANGE ${MCM_FIRST} + 5
839 !define /math MCM_SETSELRANGE ${MCM_FIRST} + 6
840 !define /math MCM_GETMONTHRANGE ${MCM_FIRST} + 7
841 !define /math MCM_SETDAYSTATE ${MCM_FIRST} + 8
842 !define /math MCM_GETMINREQRECT ${MCM_FIRST} + 9
843 !define /math MCM_SETCOLOR ${MCM_FIRST} + 10
844 !define /math MCM_GETCOLOR ${MCM_FIRST} + 11
845 !define /math MCM_SETTODAY ${MCM_FIRST} + 12
846 !define /math MCM_GETTODAY ${MCM_FIRST} + 13
847 !define /math MCM_HITTEST ${MCM_FIRST} + 14
848 !define /math MCM_SETFIRSTDAYOFWEEK ${MCM_FIRST} + 15
849 !define /math MCM_GETFIRSTDAYOFWEEK ${MCM_FIRST} + 16
850 !define /math MCM_GETRANGE ${MCM_FIRST} + 17
851 !define /math MCM_SETRANGE ${MCM_FIRST} + 18
852 !define /math MCM_GETMONTHDELTA ${MCM_FIRST} + 19
853 !define /math MCM_SETMONTHDELTA ${MCM_FIRST} + 20
854 !define /math MCM_GETMAXTODAYWIDTH ${MCM_FIRST} + 21
855 !define MCM_SETUNICODEFORMAT ${CCM_SETUNICODEFORMAT} ; IE4+
856 !define MCM_GETUNICODEFORMAT ${CCM_SETUNICODEFORMAT} ; IE4+
857 !define /math MCM_GETCURRENTVIEW ${MCM_FIRST} + 22 ; Vista+
858 !define /math MCM_GETCALENDARCOUNT ${MCM_FIRST} + 23
859 !define /math MCM_GETCALENDARGRIDINFO ${MCM_FIRST} + 24
860 !define /math MCM_GETCALID ${MCM_FIRST} + 27
861 !define /math MCM_SETCALID ${MCM_FIRST} + 28
862 !define /math MCM_SIZERECTTOMIN ${MCM_FIRST} + 29
863 !define /math MCM_SETCALENDARBORDER ${MCM_FIRST} + 30
864 !define /math MCM_GETCALENDARBORDER ${MCM_FIRST} + 31
865 !define /math MCM_SETCURRENTVIEW ${MCM_FIRST} + 32
866 !define MCN_SELCHANGE -749
867 !define MCN_GETDAYSTATE -747
868 !define MCN_SELECT -746
869 !define MCN_VIEWCHANGE -750 ; Vista+?
870
871 #DateTime control#
872 !define DTM_FIRST 0x1000
873 !define /math DTM_GETSYSTEMTIME ${DTM_FIRST} + 1
874 !define /math DTM_SETSYSTEMTIME ${DTM_FIRST} + 2
875 !define /math DTM_SETFORMATA ${DTM_FIRST} + 5
876 !define /math DTM_SETFORMATW ${DTM_FIRST} + 50
877 ${_NSIS_DEFAW} DTM_SETFORMAT
878 !define /math DTM_GETMONTHCAL ${DTM_FIRST} + 8
879 !define /math DTM_SETMCFONT ${DTM_FIRST} + 9 ; IE4+?
880 !define /math DTM_GETMCFONT ${DTM_FIRST} + 10 ; IE4+?
881 !define /math DTM_SETMCSTYLE ${DTM_FIRST} + 11 ; Vista+?
882 !define /math DTM_GETMCSTYLE ${DTM_FIRST} + 12 ; Vista+?
883 !define /math DTM_CLOSEMONTHCAL ${DTM_FIRST} + 13 ; Vista+?
884 !define DTN_DATETIMECHANGE -759
885 !define /IfNDef GDT_ERROR -1
886 !define /IfNDef GDT_VALID 0
887 !define /IfNDef GDT_NONE 1
888
889 !verbose pop
890 !endif