1 | ' api_msg.sbp - declarations file for window control.
|
---|
2 |
|
---|
3 | '------------------------------
|
---|
4 | ' Virtual Keys, Standard Set
|
---|
5 | '------------------------------
|
---|
6 |
|
---|
7 | Const VK_LBUTTON = &H01
|
---|
8 | Const VK_RBUTTON = &H02
|
---|
9 | Const VK_CANCEL = &H03
|
---|
10 | Const VK_MBUTTON = &H04
|
---|
11 | '#if _WIN32_WINNT >= &H0500
|
---|
12 | Const VK_XBUTTON1 = &H05
|
---|
13 | Const VK_XBUTTON2 = &H06
|
---|
14 | '#endif
|
---|
15 | Const VK_BACK = &H08
|
---|
16 | Const VK_TAB = &H09
|
---|
17 |
|
---|
18 | Const VK_CLEAR = &H0C
|
---|
19 | Const VK_RETURN = &H0D
|
---|
20 |
|
---|
21 | Const VK_SHIFT = &H10
|
---|
22 | Const VK_CONTROL = &H11
|
---|
23 | Const VK_MENU = &H12
|
---|
24 | Const VK_PAUSE = &H13
|
---|
25 | Const VK_CAPITAL = &H14
|
---|
26 |
|
---|
27 | Const VK_KANA = &H15
|
---|
28 | Const VK_HANGEUL = &H15
|
---|
29 | Const VK_HANGUL = &H15
|
---|
30 | Const VK_JUNJA = &H17
|
---|
31 | Const VK_FINAL = &H18
|
---|
32 | Const VK_HANJA = &H19
|
---|
33 | Const VK_KANJI = &H19
|
---|
34 |
|
---|
35 | Const VK_ESCAPE = &H1B
|
---|
36 |
|
---|
37 | Const VK_CONVERT = &H1C
|
---|
38 | Const VK_NONCONVERT = &H1D
|
---|
39 | Const VK_ACCEPT = &H1E
|
---|
40 | Const VK_MODECHANGE = &H1F
|
---|
41 |
|
---|
42 | Const VK_SPACE = &H20
|
---|
43 | Const VK_PRIOR = &H21
|
---|
44 | Const VK_NEXT = &H22
|
---|
45 | Const VK_END = &H23
|
---|
46 | Const VK_HOME = &H24
|
---|
47 | Const VK_LEFT = &H25
|
---|
48 | Const VK_UP = &H26
|
---|
49 | Const VK_RIGHT = &H27
|
---|
50 | Const VK_DOWN = &H28
|
---|
51 | Const VK_SELECT = &H29
|
---|
52 | Const VK_PRINT = &H2A
|
---|
53 | Const VK_EXECUTE = &H2B
|
---|
54 | Const VK_SNAPSHOT = &H2C
|
---|
55 | Const VK_INSERT = &H2D
|
---|
56 | Const VK_DELETE = &H2E
|
---|
57 | Const VK_HELP = &H2F
|
---|
58 |
|
---|
59 | Const VK_LWIN = &H5B
|
---|
60 | Const VK_RWIN = &H5C
|
---|
61 | Const VK_APPS = &H5D
|
---|
62 | Const VK_SLEEP = &H5F
|
---|
63 |
|
---|
64 | Const VK_NUMPAD0 = &H60
|
---|
65 | Const VK_NUMPAD1 = &H61
|
---|
66 | Const VK_NUMPAD2 = &H62
|
---|
67 | Const VK_NUMPAD3 = &H63
|
---|
68 | Const VK_NUMPAD4 = &H64
|
---|
69 | Const VK_NUMPAD5 = &H65
|
---|
70 | Const VK_NUMPAD6 = &H66
|
---|
71 | Const VK_NUMPAD7 = &H67
|
---|
72 | Const VK_NUMPAD8 = &H68
|
---|
73 | Const VK_NUMPAD9 = &H69
|
---|
74 | Const VK_MULTIPLY = &H6A
|
---|
75 | Const VK_ADD = &H6B
|
---|
76 | Const VK_SEPARATOR = &H6C
|
---|
77 | Const VK_SUBTRACT = &H6D
|
---|
78 | Const VK_DECIMAL = &H6E
|
---|
79 | Const VK_DIVIDE = &H6F
|
---|
80 | Const VK_F1 = &H70
|
---|
81 | Const VK_F2 = &H71
|
---|
82 | Const VK_F3 = &H72
|
---|
83 | Const VK_F4 = &H73
|
---|
84 | Const VK_F5 = &H74
|
---|
85 | Const VK_F6 = &H75
|
---|
86 | Const VK_F7 = &H76
|
---|
87 | Const VK_F8 = &H77
|
---|
88 | Const VK_F9 = &H78
|
---|
89 | Const VK_F10 = &H79
|
---|
90 | Const VK_F11 = &H7A
|
---|
91 | Const VK_F12 = &H7B
|
---|
92 | Const VK_F13 = &H7C
|
---|
93 | Const VK_F14 = &H7D
|
---|
94 | Const VK_F15 = &H7E
|
---|
95 | Const VK_F16 = &H7F
|
---|
96 | Const VK_F17 = &H80
|
---|
97 | Const VK_F18 = &H81
|
---|
98 | Const VK_F19 = &H82
|
---|
99 | Const VK_F20 = &H83
|
---|
100 | Const VK_F21 = &H84
|
---|
101 | Const VK_F22 = &H85
|
---|
102 | Const VK_F23 = &H86
|
---|
103 | Const VK_F24 = &H87
|
---|
104 |
|
---|
105 | Const VK_NUMLOCK = &H90
|
---|
106 | Const VK_SCROLL = &H91
|
---|
107 |
|
---|
108 | ' Used only as parameters to GetAsyncKeyState() and GetKeyState().
|
---|
109 | Const VK_LSHIFT = &HA0
|
---|
110 | Const VK_RSHIFT = &HA1
|
---|
111 | Const VK_LCONTROL = &HA2
|
---|
112 | Const VK_RCONTROL = &HA3
|
---|
113 | Const VK_LMENU = &HA4
|
---|
114 | Const VK_RMENU = &HA5
|
---|
115 |
|
---|
116 | '#if _WIN32_WINNT >= &h0500
|
---|
117 | Const VK_BROWSER_BACK = &HA6
|
---|
118 | Const VK_BROWSER_FORWARD = &HA7
|
---|
119 | Const VK_BROWSER_REFRESH = &HA8
|
---|
120 | Const VK_BROWSER_STOP = &HA9
|
---|
121 | Const VK_BROWSER_SEARCH = &HAA
|
---|
122 | Const VK_BROWSER_FAVORITES = &HAB
|
---|
123 | Const VK_BROWSER_HOME = &HAC
|
---|
124 |
|
---|
125 | Const VK_VOLUME_MUTE = &HAD
|
---|
126 | Const VK_VOLUME_DOWN = &HAE
|
---|
127 | Const VK_VOLUME_UP = &HAF
|
---|
128 | Const VK_MEDIA_NEXT_TRACK = &HB0
|
---|
129 | Const VK_MEDIA_PREV_TRACK = &HB1
|
---|
130 | Const VK_MEDIA_STOP = &HB2
|
---|
131 | Const VK_MEDIA_PLAY_PAUSE = &HB3
|
---|
132 | Const VK_LAUNCH_MAIL = &HB4
|
---|
133 | Const VK_LAUNCH_MEDIA_SELECT = &HB5
|
---|
134 | Const VK_LAUNCH_APP1 = &HB6
|
---|
135 | Const VK_LAUNCH_APP2 = &HB7
|
---|
136 | '#endif
|
---|
137 |
|
---|
138 | Const VK_OEM_1 = &HBA
|
---|
139 | Const VK_OEM_PLUS = &HBB
|
---|
140 | Const VK_OEM_COMMA = &HBC
|
---|
141 | Const VK_OEM_MINUS = &HBD
|
---|
142 | Const VK_OEM_PERIOD = &HBE
|
---|
143 | Const VK_OEM_2 = &HBF
|
---|
144 | Const VK_OEM_3 = &HC0
|
---|
145 | Const VK_OEM_4 = &HDB
|
---|
146 | Const VK_OEM_5 = &HDC
|
---|
147 | Const VK_OEM_6 = &HDD
|
---|
148 | Const VK_OEM_7 = &HDE
|
---|
149 | Const VK_OEM_8 = &HDF
|
---|
150 | Const VK_OEM_AX = &HE1
|
---|
151 | Const VK_OEM_102 = &HE2
|
---|
152 | Const VK_ICO_HELP = &HE3
|
---|
153 | Const VK_ICO_00 = &HE4
|
---|
154 |
|
---|
155 | Const VK_PROCESSKEY = &HE5
|
---|
156 |
|
---|
157 | Const VK_ICO_CLEAR = &HE6
|
---|
158 |
|
---|
159 |
|
---|
160 | '#if _WIN32_WINNT >= &h0500
|
---|
161 | Const VK_PACKET = &HE7
|
---|
162 | '#endif
|
---|
163 |
|
---|
164 | Const VK_OEM_RESET = &HE9
|
---|
165 | Const VK_OEM_JUMP = &HEA
|
---|
166 | Const VK_OEM_PA1 = &HEB
|
---|
167 | Const VK_OEM_PA2 = &HEC
|
---|
168 | Const VK_OEM_PA3 = &HED
|
---|
169 | Const VK_OEM_WSCTRL = &HEE
|
---|
170 | Const VK_OEM_CUSEL = &HEF
|
---|
171 | Const VK_OEM_ATTN = &HF0
|
---|
172 | Const VK_OEM_FINISH = &HF1
|
---|
173 | Const VK_OEM_COPY = &HF2
|
---|
174 | Const VK_OEM_AUTO = &HF3
|
---|
175 | Const VK_OEM_ENLW = &HF4
|
---|
176 | Const VK_OEM_BACKTAB = &HF5
|
---|
177 |
|
---|
178 | Const VK_ATTN = &HF6
|
---|
179 | Const VK_CRSEL = &HF7
|
---|
180 | Const VK_EXSEL = &HF8
|
---|
181 | Const VK_EREOF = &HF9
|
---|
182 | Const VK_PLAY = &HFA
|
---|
183 | Const VK_ZOOM = &HFB
|
---|
184 | Const VK_NONAME = &HFC
|
---|
185 | Const VK_PA1 = &HFD
|
---|
186 | Const VK_OEM_CLEAR = &HFE
|
---|
187 |
|
---|
188 | '-------------------
|
---|
189 | ' Window Messages
|
---|
190 | '-------------------
|
---|
191 |
|
---|
192 | Const WM_NULL = &H0000
|
---|
193 | Const WM_CREATE = &H0001
|
---|
194 | ' lParam of WM_CREATE message point to...
|
---|
195 | Type CREATESTRUCTA
|
---|
196 | lpCreateParams As VoidPtr
|
---|
197 | hInstance As HINSTANCE
|
---|
198 | hMenu As HMENU
|
---|
199 | hwndParent As HWND
|
---|
200 | cy As Long
|
---|
201 | cx As Long
|
---|
202 | y As Long
|
---|
203 | x As Long
|
---|
204 | style As Long
|
---|
205 | lpszName As PCSTR
|
---|
206 | lpszClass As PCSTR
|
---|
207 | dwExStyle As DWord
|
---|
208 | End Type
|
---|
209 | Type CREATESTRUCTW
|
---|
210 | lpCreateParams As VoidPtr
|
---|
211 | hInstance As HINSTANCE
|
---|
212 | hMenu As HMENU
|
---|
213 | hwndParent As HWND
|
---|
214 | cy As Long
|
---|
215 | cx As Long
|
---|
216 | y As Long
|
---|
217 | x As Long
|
---|
218 | style As Long
|
---|
219 | lpszName As PCWSTR
|
---|
220 | lpszClass As PCWSTR
|
---|
221 | dwExStyle As DWord
|
---|
222 | End Type
|
---|
223 | #ifdef UNICODE
|
---|
224 | TypeDef CREATESTRUCT = CREATESTRUCTW
|
---|
225 | #else
|
---|
226 | TypeDef CREATESTRUCT = CREATESTRUCTA
|
---|
227 | #endif
|
---|
228 | Const WM_DESTROY = &H0002
|
---|
229 | Const WM_MOVE = &H0003
|
---|
230 | Const WM_SIZE = &H0005
|
---|
231 | ' WM_SIZE message wParam values
|
---|
232 | Const SIZE_RESTORED = 0
|
---|
233 | Const SIZE_MINIMIZED = 1
|
---|
234 | Const SIZE_MAXIMIZED = 2
|
---|
235 | Const SIZE_MAXSHOW = 3
|
---|
236 | Const SIZE_MAXHIDE = 4
|
---|
237 |
|
---|
238 | Const WM_ACTIVATE = &H0006
|
---|
239 | ' WM_ACTIVATE state values
|
---|
240 | Const WA_INACTIVE = 0
|
---|
241 | Const WA_ACTIVE = 1
|
---|
242 | Const WA_CLICKACTIVE = 2
|
---|
243 |
|
---|
244 | Const WM_SETFOCUS = &H0007
|
---|
245 | Const WM_KILLFOCUS = &H0008
|
---|
246 | Const WM_ENABLE = &H000A
|
---|
247 | Const WM_SETREDRAW = &H000B
|
---|
248 | Const WM_SETTEXT = &H000C
|
---|
249 | Const WM_GETTEXT = &H000D
|
---|
250 | Const WM_GETTEXTLENGTH = &H000E
|
---|
251 | Const WM_PAINT = &H000F
|
---|
252 | Const WM_CLOSE = &H0010
|
---|
253 | Const WM_QUERYENDSESSION = &H0011
|
---|
254 | Const WM_QUIT = &H0012
|
---|
255 | Const WM_QUERYOPEN = &H0013
|
---|
256 | Const WM_ERASEBKGND = &H0014
|
---|
257 | Const WM_SYSCOLORCHANGE = &H0015
|
---|
258 | Const WM_ENDSESSION = &H0016
|
---|
259 | Const WM_SHOWWINDOW = &H0018
|
---|
260 | ' Identifiers for the WM_SHOWWINDOW message
|
---|
261 | Const SW_PARENTCLOSING = 1
|
---|
262 | Const SW_OTHERZOOM = 2
|
---|
263 | Const SW_PARENTOPENING = 3
|
---|
264 | Const SW_OTHERUNZOOM = 4
|
---|
265 | Const WM_WININICHANGE = &H001A
|
---|
266 | Const WM_SETTINGCHANGE = WM_WININICHANGE
|
---|
267 |
|
---|
268 | Const WM_DEVMODECHANGE = &H001B
|
---|
269 | Const WM_ACTIVATEAPP = &H001C
|
---|
270 | Const WM_FONTCHANGE = &H001D
|
---|
271 | Const WM_TIMECHANGE = &H001E
|
---|
272 | Const WM_CANCELMODE = &H001F
|
---|
273 | Const WM_SETCURSOR = &H0020
|
---|
274 | Const WM_MOUSEACTIVATE = &H0021
|
---|
275 | Const WM_CHILDACTIVATE = &H0022
|
---|
276 | Const WM_QUEUESYNC = &H0023
|
---|
277 |
|
---|
278 | Const WM_GETMINMAXINFO = &H0024
|
---|
279 | ' Struct pointed to by WM_GETMINMAXINFO lParam
|
---|
280 | Type MINMAXINFO
|
---|
281 | ptReserved As POINTAPI
|
---|
282 | ptMaxSize As POINTAPI
|
---|
283 | ptMaxPosition As POINTAPI
|
---|
284 | ptMinTrackSize As POINTAPI
|
---|
285 | ptMaxTrackSize As POINTAPI
|
---|
286 | End Type
|
---|
287 |
|
---|
288 | Const WM_PAINTICON = &H0026
|
---|
289 | Const WM_ICONERASEBKGND = &H0027
|
---|
290 | Const WM_NEXTDLGCTL = &H0028
|
---|
291 | Const WM_SPOOLERSTATUS = &H002A
|
---|
292 |
|
---|
293 |
|
---|
294 | Const WM_DRAWITEM = &H002B
|
---|
295 |
|
---|
296 | 'DRAWITEMSTRUCT for ownerdraw
|
---|
297 | Type DRAWITEMSTRUCT
|
---|
298 | CtlType As DWord
|
---|
299 | CtlID As DWord
|
---|
300 | itemID As DWord
|
---|
301 | itemAction As DWord
|
---|
302 | itemState As DWord
|
---|
303 | hwndItem As HWND
|
---|
304 | hDC As HDC
|
---|
305 | rcItem As RECT
|
---|
306 | itemData As ULONG_PTR
|
---|
307 | End Type
|
---|
308 |
|
---|
309 |
|
---|
310 | Const WM_MEASUREITEM = &H002C
|
---|
311 |
|
---|
312 | ' Owner draw control types
|
---|
313 | Const ODT_MENU = 1
|
---|
314 | Const ODT_LISTBOX = 2
|
---|
315 | Const ODT_COMBOBOX = 3
|
---|
316 | Const ODT_BUTTON = 4
|
---|
317 | Const ODT_STATIC = 5
|
---|
318 |
|
---|
319 | 'Owner draw actions
|
---|
320 | Const ODA_DRAWENTIRE = &H0001
|
---|
321 | Const ODA_SELECT = &H0002
|
---|
322 | Const ODA_FOCUS = &H0004
|
---|
323 |
|
---|
324 | 'Owner draw state
|
---|
325 | Const ODS_SELECTED = &H0001
|
---|
326 | Const ODS_GRAYED = &H0002
|
---|
327 | Const ODS_DISABLED = &H0004
|
---|
328 | Const ODS_CHECKED = &H0008
|
---|
329 | Const ODS_FOCUS = &H0010
|
---|
330 | Const ODS_DEFAULT = &H0020
|
---|
331 | Const ODS_COMBOBOXEDIT = &H1000
|
---|
332 | Const ODS_HOTLIGHT = &H0040
|
---|
333 | Const ODS_INACTIVE = &H0080
|
---|
334 | Const ODS_NOACCEL = &H0100
|
---|
335 | Const ODS_NOFOCUSRECT = &H0200
|
---|
336 |
|
---|
337 | 'MEASUREITEMSTRUCT for ownerdraw
|
---|
338 | Type MEASUREITEMSTRUCT
|
---|
339 | CtlType As DWord
|
---|
340 | CtlID As DWord
|
---|
341 | itemID As DWord
|
---|
342 | itemWidth As DWord
|
---|
343 | itemHeight As DWord
|
---|
344 | itemData As ULONG_PTR
|
---|
345 | End Type
|
---|
346 |
|
---|
347 |
|
---|
348 | Const WM_DELETEITEM = &H002D
|
---|
349 |
|
---|
350 | ' DELETEITEMSTRUCT for ownerdraw
|
---|
351 | Type DELETEITEMSTRUCT
|
---|
352 | CtlType As DWord
|
---|
353 | CtlID As DWord
|
---|
354 | itemID As DWord
|
---|
355 | hwndItem As HWND
|
---|
356 | itemData As DWord
|
---|
357 | End Type
|
---|
358 |
|
---|
359 |
|
---|
360 | Const WM_VKEYTOITEM = &H002E
|
---|
361 | Const WM_CHARTOITEM = &H002F
|
---|
362 | Const WM_SETFONT = &H0030
|
---|
363 | Const WM_GETFONT = &H0031
|
---|
364 | Const WM_SETHOTKEY = &H0032
|
---|
365 | Const WM_GETHOTKEY = &H0033
|
---|
366 | Const WM_QUERYDRAGICON = &H0037
|
---|
367 | Const WM_COMPAREITEM = &H0039
|
---|
368 | ' COMPAREITEMSTUCT for ownerdraw sorting
|
---|
369 | Type COMPAREITEMSTRUCT
|
---|
370 | CtlType As DWord
|
---|
371 | CtlID As DWord
|
---|
372 | hwndItem As HWND
|
---|
373 | itemID1 As DWord
|
---|
374 | itemData1 As DWord
|
---|
375 | itemID2 As DWord
|
---|
376 | itemData2 As DWord
|
---|
377 | dwLocaleId As DWord
|
---|
378 | End Type
|
---|
379 | '#if WINVER > &h0500
|
---|
380 | Const WM_GETOBJECT = &H003D
|
---|
381 | '#endif
|
---|
382 | Const WM_COMPACTING = &H0041
|
---|
383 | Const WM_COMMNOTIFY = &H0044
|
---|
384 | Const WM_WINDOWPOSCHANGING = &H0046
|
---|
385 | Const WM_WINDOWPOSCHANGED = &H0047
|
---|
386 | ' WM_WINDOWPOSCHANGING/CHANGED struct pointed to by lParam
|
---|
387 | Type WINDOWPOS
|
---|
388 | hwnd As HWND
|
---|
389 | hwndInsertAfter As HWND
|
---|
390 | x As Long
|
---|
391 | y As Long
|
---|
392 | cx As Long
|
---|
393 | cy As Long
|
---|
394 | flags As DWord
|
---|
395 | End Type
|
---|
396 |
|
---|
397 | Const WM_POWER = &H0048
|
---|
398 | ' wParam for WM_POWER window message and DRV_POWER driver notification
|
---|
399 | Const PWR_OK = 1
|
---|
400 | Const PWR_FAIL = -1
|
---|
401 | Const PWR_SUSPENDREQUEST =1
|
---|
402 | Const PWR_SUSPENDRESUME = 2
|
---|
403 | Const PWR_CRITICALRESUME =3
|
---|
404 |
|
---|
405 | Const WM_COPYDATA = &H004A
|
---|
406 | ' lParam of WM_COPYDATA message points to...
|
---|
407 | Type COPYDATASTRUCT
|
---|
408 | dwData As DWord
|
---|
409 | cbData As DWord
|
---|
410 | lpData As VoidPtr
|
---|
411 | End Type
|
---|
412 |
|
---|
413 | Const WM_CANCELJOURNAL = &H004B
|
---|
414 | Const WM_NOTIFY = &H004E
|
---|
415 | Const WM_INPUTLANGCHANGEREQUEST = &H0050
|
---|
416 | Const WM_INPUTLANGCHANGE = &H0051
|
---|
417 | Const WM_TCARD = &H0052
|
---|
418 | Const WM_HELP = &H0053
|
---|
419 | ' lParam of WM_HELP messgae point to...
|
---|
420 | Type HELPINFO
|
---|
421 | cbSize As DWord
|
---|
422 | iContextType As Long
|
---|
423 | iCtrlId As Long
|
---|
424 | hItemHandle As HANDLE
|
---|
425 | dwContextId As DWord
|
---|
426 | MousePos As POINTAPI
|
---|
427 | End Type
|
---|
428 | Const WM_USERCHANGED = &H0054
|
---|
429 | Const WM_NOTIFYFORMAT = &H0055
|
---|
430 | Const NFR_ANSI = 1
|
---|
431 | Const NFR_UNICODE = 2
|
---|
432 | Const NF_QUERY = 3
|
---|
433 | Const NF_REQUERY = 4
|
---|
434 |
|
---|
435 | Const WM_CONTEXTMENU = &H007B
|
---|
436 | Const WM_STYLECHANGING = &H007C
|
---|
437 | Const WM_STYLECHANGED = &H007D
|
---|
438 | Const WM_DISPLAYCHANGE = &H007E
|
---|
439 | Const WM_GETICON = &H007F
|
---|
440 | Const WM_SETICON = &H0080
|
---|
441 | ' WM_SETICON / WM_GETICON Type Codes
|
---|
442 | Const ICON_SMALL = 0
|
---|
443 | Const ICON_BIG = 1
|
---|
444 |
|
---|
445 | Const WM_NCCREATE = &H0081
|
---|
446 | Const WM_NCDESTROY = &H0082
|
---|
447 | Const WM_NCCALCSIZE = &H0083
|
---|
448 | Const WM_NCHITTEST = &H0084
|
---|
449 | ' WM_NCHITTEST and MOUSEHOOKSTRUCT Mouse Position Codes
|
---|
450 | Const HTERROR = -2
|
---|
451 | Const HTTRANSPARENT = -1
|
---|
452 | Const HTNOWHERE = 0
|
---|
453 | Const HTCLIENT = 1
|
---|
454 | Const HTCAPTION = 2
|
---|
455 | Const HTSYSMENU = 3
|
---|
456 | Const HTGROWBOX = 4
|
---|
457 | Const HTSIZE = HTGROWBOX
|
---|
458 | Const HTMENU = 5
|
---|
459 | Const HTHSCROLL = 6
|
---|
460 | Const HTVSCROLL = 7
|
---|
461 | Const HTMINBUTTON = 8
|
---|
462 | Const HTMAXBUTTON = 9
|
---|
463 | Const HTLEFT = 10
|
---|
464 | Const HTRIGHT = 11
|
---|
465 | Const HTTOP = 12
|
---|
466 | Const HTTOPLEFT = 13
|
---|
467 | Const HTTOPRIGHT = 14
|
---|
468 | Const HTBOTTOM = 15
|
---|
469 | Const HTBOTTOMLEFT = 16
|
---|
470 | Const HTBOTTOMRIGHT = 17
|
---|
471 | Const HTBORDER = 18
|
---|
472 | Const HTREDUCE = HTMINBUTTON
|
---|
473 | Const HTZOOM = HTMAXBUTTON
|
---|
474 | Const HTSIZEFIRST = HTLEFT
|
---|
475 | Const HTSIZELAST = HTBOTTOMRIGHT
|
---|
476 | Const HTOBJECT = 19
|
---|
477 | Const HTCLOSE = 20
|
---|
478 | Const HTHELP = 21
|
---|
479 | Const WM_NCPAINT = &H0085
|
---|
480 | Const WM_NCACTIVATE = &H0086
|
---|
481 | Const WM_GETDLGCODE = &H0087
|
---|
482 | Const WM_SYNCPAINT = &H0088
|
---|
483 | Const WM_NCMOUSEMOVE = &H00A0
|
---|
484 | Const WM_NCLBUTTONDOWN = &H00A1
|
---|
485 | Const WM_NCLBUTTONUP = &H00A2
|
---|
486 | Const WM_NCLBUTTONDBLCLK = &H00A3
|
---|
487 | Const WM_NCRBUTTONDOWN = &H00A4
|
---|
488 | Const WM_NCRBUTTONUP = &H00A5
|
---|
489 | Const WM_NCRBUTTONDBLCLK = &H00A6
|
---|
490 | Const WM_NCMBUTTONDOWN = &H00A7
|
---|
491 | Const WM_NCMBUTTONUP = &H00A8
|
---|
492 | Const WM_NCMBUTTONDBLCLK = &H00A9
|
---|
493 | '#if _WIN32_WINNT >= &h0500
|
---|
494 | Const WM_NCXBUTTONDOWN = &H00AB
|
---|
495 | Const WM_NCXBUTTONUP = &H00AC
|
---|
496 | Const WM_NCXBUTTONDBLCLK = &h00AD
|
---|
497 | '#endif
|
---|
498 | '#if _WIN32_WINNT >= &H0501
|
---|
499 | Const WM_INPUT_DEVICE_CHANGE = &H00FE
|
---|
500 | Const WM_INPUT = &H00FF
|
---|
501 | '#endif
|
---|
502 | Const WM_KEYFIRST = &H0100
|
---|
503 | Const WM_KEYDOWN = &H0100
|
---|
504 | Const WM_KEYUP = &H0101
|
---|
505 | Const WM_CHAR = &H0102
|
---|
506 | Const WM_DEADCHAR = &H0103
|
---|
507 | Const WM_SYSKEYDOWN = &H0104
|
---|
508 | Const WM_SYSKEYUP = &H0105
|
---|
509 | Const WM_SYSCHAR = &H0106
|
---|
510 | Const WM_SYSDEADCHAR = &H0107
|
---|
511 | '#if _WIN32_WINNT >= &h0501
|
---|
512 | Const WM_UNICHAR = &H0109
|
---|
513 | Const UNICODE_NOCHAR = &HFFFF
|
---|
514 | Const WM_KEYLAST = &H0109
|
---|
515 | '#else
|
---|
516 | 'Const WM_KEYLAST = &H0108
|
---|
517 | '#endif
|
---|
518 | Const WM_IME_STARTCOMPOSITION = &H010D
|
---|
519 | Const WM_IME_ENDCOMPOSITION = &H010E
|
---|
520 | Const WM_IME_COMPOSITION = &H010F
|
---|
521 | Const WM_IME_KEYLAST = &H010F
|
---|
522 |
|
---|
523 | Const WM_INITDIALOG = &H0110
|
---|
524 | Const WM_COMMAND = &H0111
|
---|
525 | Const WM_SYSCOMMAND = &H0112
|
---|
526 | ' System Menu Command Values
|
---|
527 | Const SC_SIZE = &HF000
|
---|
528 | Const SC_MOVE = &HF010
|
---|
529 | Const SC_MINIMIZE = &HF020
|
---|
530 | Const SC_MAXIMIZE = &HF030
|
---|
531 | Const SC_NEXTWINDOW = &HF040
|
---|
532 | Const SC_PREVWINDOW = &HF050
|
---|
533 | Const SC_CLOSE = &HF060
|
---|
534 | Const SC_VSCROLL = &HF070
|
---|
535 | Const SC_HSCROLL = &HF080
|
---|
536 | Const SC_MOUSEMENU = &HF090
|
---|
537 | Const SC_KEYMENU = &HF100
|
---|
538 | Const SC_ARRANGE = &HF110
|
---|
539 | Const SC_RESTORE = &HF120
|
---|
540 | Const SC_TASKLIST = &HF130
|
---|
541 | Const SC_SCREENSAVE = &HF140
|
---|
542 | Const SC_HOTKEY = &HF150
|
---|
543 | Const SC_DEFAULT = &HF160
|
---|
544 | Const SC_MONITORPOWER = &HF170
|
---|
545 | Const SC_CONTEXTHELP = &HF180
|
---|
546 | Const SC_SEPARATOR = &HF00F
|
---|
547 | Const WM_TIMER = &H0113
|
---|
548 | Const WM_HSCROLL = &H0114
|
---|
549 | Const WM_VSCROLL = &H0115
|
---|
550 | ' Scroll Bar Commands
|
---|
551 | Const SB_LINEUP = 0
|
---|
552 | Const SB_LINELEFT = 0
|
---|
553 | Const SB_LINEDOWN = 1
|
---|
554 | Const SB_LINERIGHT = 1
|
---|
555 | Const SB_PAGEUP = 2
|
---|
556 | Const SB_PAGELEFT = 2
|
---|
557 | Const SB_PAGEDOWN = 3
|
---|
558 | Const SB_PAGERIGHT = 3
|
---|
559 | Const SB_THUMBPOSITION = 4
|
---|
560 | Const SB_THUMBTRACK = 5
|
---|
561 | Const SB_TOP = 6
|
---|
562 | Const SB_LEFT = 6
|
---|
563 | Const SB_BOTTOM = 7
|
---|
564 | Const SB_RIGHT = 7
|
---|
565 | Const SB_ENDSCROLL = 8
|
---|
566 | Const WM_INITMENU = &H0116
|
---|
567 | Const WM_INITMENUPOPUP = &H0117
|
---|
568 | Const WM_MENUSELECT = &H011F
|
---|
569 | Const WM_MENUCHAR = &H0120
|
---|
570 | ' return codes for WM_MENUCHAR
|
---|
571 | Const MNC_IGNORE = 0
|
---|
572 | Const MNC_CLOSE = 1
|
---|
573 | Const MNC_EXECUTE = 2
|
---|
574 | Const MNC_SELECT = 3
|
---|
575 | Const WM_ENTERIDLE = &H0121
|
---|
576 | '#if WINVER >= &H0500
|
---|
577 | Const WM_MENURBUTTONUP = &H0122
|
---|
578 | Const WM_MENUDRAG = &H0123
|
---|
579 | Const WM_MENUGETOBJECT = &H0124
|
---|
580 | Const WM_UNINITMENUPOPUP = &H0125
|
---|
581 | Const WM_MENUCOMMAND = &H0126
|
---|
582 |
|
---|
583 | Const WM_CHANGEUISTATE = &H0127
|
---|
584 | Const WM_UPDATEUISTATE = &H0128
|
---|
585 | Const WM_QUERYUISTATE = &H0129
|
---|
586 | '#endif
|
---|
587 | Const WM_CTLCOLORMSGBOX = &H0132
|
---|
588 | Const WM_CTLCOLOREDIT = &H0133
|
---|
589 | Const WM_CTLCOLORLISTBOX = &H0134
|
---|
590 | Const WM_CTLCOLORBTN = &H0135
|
---|
591 | Const WM_CTLCOLORDLG = &H0136
|
---|
592 | Const WM_CTLCOLORSCROLLBAR = &H0137
|
---|
593 | Const WM_CTLCOLORSTATIC = &H0138
|
---|
594 | Const MN_GETHMENU = &H01E1
|
---|
595 |
|
---|
596 | Const WM_MOUSEFIRST = &H0200
|
---|
597 | Const WM_MOUSEMOVE = &H0200
|
---|
598 | Const WM_LBUTTONDOWN = &H0201
|
---|
599 | Const WM_LBUTTONUP = &H0202
|
---|
600 | Const WM_LBUTTONDBLCLK = &H0203
|
---|
601 | Const WM_RBUTTONDOWN = &H0204
|
---|
602 | Const WM_RBUTTONUP = &H0205
|
---|
603 | Const WM_RBUTTONDBLCLK = &H0206
|
---|
604 | Const WM_MBUTTONDOWN = &H0207
|
---|
605 | Const WM_MBUTTONUP = &H0208
|
---|
606 | Const WM_MBUTTONDBLCLK = &H0209
|
---|
607 | '#if _WIN32_WINNT >= &H0400 || _WIN32_WINDOWS > &H0400
|
---|
608 | Const WM_MOUSEWHEEL = &H020A
|
---|
609 | '#endif
|
---|
610 | '#if _WIN32_WINNT >= &H0500
|
---|
611 | Const WM_XBUTTONDOWN = &H020B
|
---|
612 | Const WM_XBUTTONUP = &H020C
|
---|
613 | Const WM_XBUTTONDBLCLK = &H020D
|
---|
614 | '#endif
|
---|
615 | '#if _WIN32_WINNT >= &H0600
|
---|
616 | Const WM_MOUSEHWHEEL = &H020E
|
---|
617 | '#endif
|
---|
618 | Const WM_MOUSELAST = &H020E
|
---|
619 |
|
---|
620 | Const WHEEL_DELTA = 120
|
---|
621 | Const WHEEL_PAGESCROLL = &HFFFFFFFF
|
---|
622 | Const GET_WHEEL_DELTA_WPARAM(wp) = (HIWORD(wp) As Integer)
|
---|
623 | '#if _WIN32_WINNT >= &H0500
|
---|
624 | Const GET_KEYSTATE_WPARAM(wp) = (LOWORD(wp))
|
---|
625 | Const GET_NCHITTEST_WPARAM(wp) = (LOWORD(wp) As Integer)
|
---|
626 | Const GET_XBUTTON_WPARAM(wp) = (HIWORD(wp))
|
---|
627 |
|
---|
628 | Const XBUTTON1 = &H0001
|
---|
629 | Const XBUTTON2 = &H0002
|
---|
630 | '#endif
|
---|
631 |
|
---|
632 | Const WM_PARENTNOTIFY = &H0210
|
---|
633 | Const WM_ENTERMENULOOP = &H0211
|
---|
634 | Const WM_EXITMENULOOP = &H0212
|
---|
635 |
|
---|
636 | Const WM_NEXTMENU = &H0213
|
---|
637 | Const WM_SIZING = &H0214
|
---|
638 | ' wParam for WM_SIZING message
|
---|
639 | Const WMSZ_LEFT = 1
|
---|
640 | Const WMSZ_RIGHT = 2
|
---|
641 | Const WMSZ_TOP = 3
|
---|
642 | Const WMSZ_TOPLEFT = 4
|
---|
643 | Const WMSZ_TOPRIGHT = 5
|
---|
644 | Const WMSZ_BOTTOM = 6
|
---|
645 | Const WMSZ_BOTTOMLEFT = 7
|
---|
646 | Const WMSZ_BOTTOMRIGHT = 8
|
---|
647 |
|
---|
648 | Const WM_CAPTURECHANGED = &H0215
|
---|
649 | Const WM_MOVING = &H0216
|
---|
650 |
|
---|
651 | Const WM_POWERBROADCAST = &H0218
|
---|
652 | ' wParam for WM_POWERBROADCAST message
|
---|
653 | Const PBT_APMQUERYSUSPEND = &H0000
|
---|
654 | Const PBT_APMQUERYSTANDBY = &H0001
|
---|
655 | Const PBT_APMQUERYSUSPENDFAILED = &H0002
|
---|
656 | Const PBT_APMQUERYSTANDBYFAILED = &H0003
|
---|
657 | Const PBT_APMSUSPEND = &H0004
|
---|
658 | Const PBT_APMSTANDBY = &H0005
|
---|
659 | Const PBT_APMRESUMECRITICAL = &H0006
|
---|
660 | Const PBT_APMRESUMESUSPEND = &H0007
|
---|
661 | Const PBT_APMRESUMESTANDBY = &H0008
|
---|
662 | Const PBTF_APMRESUMEFROMFAILURE = &H00000001
|
---|
663 | Const PBT_APMBATTERYLOW = &H0009
|
---|
664 | Const PBT_APMPOWERSTATUSCHANGE = &H000A
|
---|
665 | Const PBT_APMOEMEVENT = &H000B
|
---|
666 | Const PBT_APMRESUMEAUTOMATIC = &H0012
|
---|
667 | '#if _WIN32_WINNT >= &H0502
|
---|
668 | Const PBT_POWERSETTINGCHANGE = &H0013
|
---|
669 | Type POWERBROADCAST_SETTING
|
---|
670 | PowerSetting As GUID
|
---|
671 | DataLength As DWord
|
---|
672 | Data[ELM(1)] As Byte
|
---|
673 | End Type
|
---|
674 | '#endif
|
---|
675 |
|
---|
676 | Const WM_DEVICECHANGE = &H0219
|
---|
677 |
|
---|
678 | Const WM_MDICREATE = &H0220
|
---|
679 | ' lParam of WM_MDICREATE message point to...
|
---|
680 | Type MDICREATESTRUCTA
|
---|
681 | szClass As PCSTR
|
---|
682 | szTitle As PCSTR
|
---|
683 | hOwner As HANDLE
|
---|
684 | x As Long
|
---|
685 | y As Long
|
---|
686 | cx As Long
|
---|
687 | cy As Long
|
---|
688 | style As DWord
|
---|
689 | lParam As LPARAM
|
---|
690 | End Type
|
---|
691 | Type MDICREATESTRUCTW
|
---|
692 | szClass As PCWSTR
|
---|
693 | szTitle As PCWSTR
|
---|
694 | hOwner As HANDLE
|
---|
695 | x As Long
|
---|
696 | y As Long
|
---|
697 | cx As Long
|
---|
698 | cy As Long
|
---|
699 | style As DWord
|
---|
700 | lParam As LPARAM
|
---|
701 | End Type
|
---|
702 | #ifdef UNICODE
|
---|
703 | TypeDef MDICREATESTRUCT = MDICREATESTRUCTW
|
---|
704 | #else
|
---|
705 | TypeDef MDICREATESTRUCT = MDICREATESTRUCTA
|
---|
706 | #endif
|
---|
707 | Const WM_MDIDESTROY = &H0221
|
---|
708 | Const WM_MDIACTIVATE = &H0222
|
---|
709 | Const WM_MDIRESTORE = &H0223
|
---|
710 | Const WM_MDINEXT = &H0224
|
---|
711 | Const WM_MDIMAXIMIZE = &H0225
|
---|
712 | Const WM_MDITILE = &H0226
|
---|
713 | ' wParam Flags for WM_MDITILE and WM_MDICASCADE messages.
|
---|
714 | Const MDITILE_VERTICAL = &H0000
|
---|
715 | Const MDITILE_HORIZONTAL = &H0001
|
---|
716 | Const MDITILE_SKIPDISABLED = &H0002
|
---|
717 | Const WM_MDICASCADE = &H0227
|
---|
718 | Const WM_MDIICONARRANGE = &H0228
|
---|
719 | Const WM_MDIGETACTIVE = &H0229
|
---|
720 |
|
---|
721 | Const WM_MDISETMENU = &H0230
|
---|
722 | Const WM_ENTERSIZEMOVE = &H0231
|
---|
723 | Const WM_EXITSIZEMOVE = &H0232
|
---|
724 | Const WM_DROPFILES = &H0233
|
---|
725 | Const WM_MDIREFRESHMENU = &H0234
|
---|
726 |
|
---|
727 | Const WM_IME_SETCONTEXT = &H0281
|
---|
728 | Const WM_IME_NOTIFY = &H0282
|
---|
729 | Const WM_IME_CONTROL = &H0283
|
---|
730 | Const WM_IME_COMPOSITIONFULL = &H0284
|
---|
731 | Const WM_IME_SELECT = &H0285
|
---|
732 | Const WM_IME_CHAR = &H0286
|
---|
733 | '#if WINVER >= 0x0500
|
---|
734 | Const WM_IME_REQUEST = &H0288
|
---|
735 | '#endif
|
---|
736 | Const WM_IME_KEYDOWN = &H0290
|
---|
737 | Const WM_IME_KEYUP = &H0291
|
---|
738 | '#if _WIN32_WINNT >= &H0400 Or WINVER >= &H0500
|
---|
739 | Const WM_MOUSEHOVER = &H02A1
|
---|
740 | Const WM_MOUSELEAVE = &H02A3
|
---|
741 | '#endif
|
---|
742 | '#if WINVER >= &H0500
|
---|
743 | Const WM_NCMOUSEHOVER = &H02A1
|
---|
744 | Const WM_NCMOUSELEAVE = &H02A3
|
---|
745 | '#endif
|
---|
746 | '#if _WIN32_WINNT >= &H0501
|
---|
747 | Const WM_WTSSESSION_CHANGE = &H02B1
|
---|
748 |
|
---|
749 | Const WM_TABLET_FIRST = &H02C0
|
---|
750 | Const WM_TABLET_LAST = &H02DF
|
---|
751 | '#endif
|
---|
752 | Const WM_CUT = &H0300
|
---|
753 | Const WM_COPY = &H0301
|
---|
754 | Const WM_PASTE = &H0302
|
---|
755 | Const WM_CLEAR = &H0303
|
---|
756 | Const WM_UNDO = &H0304
|
---|
757 | Const WM_RENDERFORMAT = &H0305
|
---|
758 | Const WM_RENDERALLFORMATS = &H0306
|
---|
759 | Const WM_DESTROYCLIPBOARD = &H0307
|
---|
760 | Const WM_DRAWCLIPBOARD = &H0308
|
---|
761 | Const WM_PAINTCLIPBOARD = &H0309
|
---|
762 | Const WM_VSCROLLCLIPBOARD = &H030A
|
---|
763 | Const WM_SIZECLIPBOARD = &H030B
|
---|
764 | Const WM_ASKCBFORMATNAME = &H030C
|
---|
765 | Const WM_CHANGECBCHAIN = &H030D
|
---|
766 | Const WM_HSCROLLCLIPBOARD = &H030E
|
---|
767 | Const WM_QUERYNEWPALETTE = &H030F
|
---|
768 | Const WM_PALETTEISCHANGING = &H0310
|
---|
769 | Const WM_PALETTECHANGED = &H0311
|
---|
770 | Const WM_HOTKEY = &H0312
|
---|
771 |
|
---|
772 | Const WM_PRINT = &H0317
|
---|
773 | Const WM_PRINTCLIENT = &H0318
|
---|
774 | ' WM_PRINT flags
|
---|
775 | Const PRF_CHECKVISIBLE = &H00000001
|
---|
776 | Const PRF_NONCLIENT = &H00000002
|
---|
777 | Const PRF_CLIENT = &H00000004
|
---|
778 | Const PRF_ERASEBKGND = &H00000008
|
---|
779 | Const PRF_CHILDREN = &H00000010
|
---|
780 | Const PRF_OWNED = &H00000020
|
---|
781 |
|
---|
782 | '#if _WIN32_WINNT >= &H0500
|
---|
783 | Const WM_APPCOMMAND = &H0319
|
---|
784 | '#endif
|
---|
785 | '#if _WIN32_WINNT >= &H0501
|
---|
786 | Const WM_THEMECHANGED = &H031A
|
---|
787 | '#endif
|
---|
788 |
|
---|
789 | '#if _WIN32_WINNT >= &H0501
|
---|
790 | Const WM_CLIPBOARDUPDATE = &H031D
|
---|
791 | '#endif
|
---|
792 |
|
---|
793 | '#if _WIN32_WINNT >= &H0600
|
---|
794 | Const WM_DWMCOMPOSITIONCHANGED = &H031E
|
---|
795 | Const WM_DWMNCRENDERINGCHANGED = &H031F
|
---|
796 | Const WM_DWMCOLORIZATIONCOLORCHANGED =&H0320
|
---|
797 | Const WM_DWMWINDOWMAXIMIZEDCHANGE = &H0321
|
---|
798 | '#endif
|
---|
799 |
|
---|
800 | '#if WINVER >= &H0600
|
---|
801 | Const WM_GETTITLEBARINFOEX = &H033F
|
---|
802 | '#endif
|
---|
803 |
|
---|
804 | Const WM_HANDHELDFIRST = &H0358
|
---|
805 | Const WM_HANDHELDLAST = &H035F
|
---|
806 |
|
---|
807 | Const WM_AFXFIRST = &H0360
|
---|
808 | Const WM_AFXLAST = &H037F
|
---|
809 |
|
---|
810 | Const WM_PENWINFIRST = &H0380
|
---|
811 | Const WM_PENWINLAST = &H038F
|
---|
812 |
|
---|
813 | Const WM_APP = &H8000
|
---|
814 | Const WM_USER = &H0400
|
---|
815 |
|
---|
816 | ' WM_MOUSEACTIVATE Return Codes
|
---|
817 | Const MA_ACTIVATE = 1
|
---|
818 | Const MA_ACTIVATEANDEAT = 2
|
---|
819 | Const MA_NOACTIVATE = 3
|
---|
820 | Const MA_NOACTIVATEANDEAT = 4
|
---|
821 |
|
---|
822 | ' Key State Masks for Mouse Messages
|
---|
823 | Const MK_LBUTTON = &H0001
|
---|
824 | Const MK_RBUTTON = &H0002
|
---|
825 | Const MK_SHIFT = &H0004
|
---|
826 | Const MK_CONTROL = &H0008
|
---|
827 | Const MK_MBUTTON = &H0010
|
---|
828 | '#if _WIN32_WINNT >= 0x0500
|
---|
829 | Const MK_XBUTTON1 = &h0020
|
---|
830 | Const MK_XBUTTON2 = &h0040
|
---|
831 | '#endif
|
---|
832 |
|
---|
833 |
|
---|
834 | '----------------------------------
|
---|
835 | ' Edit Control Notification Codes
|
---|
836 | '----------------------------------
|
---|
837 |
|
---|
838 | Const EN_SETFOCUS = &H0100
|
---|
839 | Const EN_KILLFOCUS = &H0200
|
---|
840 | Const EN_CHANGE = &H0300
|
---|
841 | Const EN_UPDATE = &H0400
|
---|
842 | Const EN_ERRSPACE = &H0500
|
---|
843 | Const EN_MAXTEXT = &H0501
|
---|
844 | Const EN_HSCROLL = &H0601
|
---|
845 | Const EN_VSCROLL = &H0602
|
---|
846 |
|
---|
847 |
|
---|
848 | '------------------------
|
---|
849 | ' Edit Control Messages
|
---|
850 | '------------------------
|
---|
851 | Const EM_GETSEL = &H00B0
|
---|
852 | Const EM_SETSEL = &H00B1
|
---|
853 | Const EM_GETRECT = &H00B2
|
---|
854 | Const EM_SETRECT = &H00B3
|
---|
855 | Const EM_SETRECTNP = &H00B4
|
---|
856 | Const EM_SCROLL = &H00B5
|
---|
857 | Const EM_LINESCROLL = &H00B6
|
---|
858 | Const EM_SCROLLCARET = &H00B7
|
---|
859 | Const EM_GETMODIFY = &H00B8
|
---|
860 | Const EM_SETMODIFY = &H00B9
|
---|
861 | Const EM_GETLINECOUNT = &H00BA
|
---|
862 | Const EM_LINEINDEX = &H00BB
|
---|
863 | Const EM_SETHANDLE = &H00BC
|
---|
864 | Const EM_GETHANDLE = &H00BD
|
---|
865 | Const EM_GETTHUMB = &H00BE
|
---|
866 | Const EM_LINELENGTH = &H00C1
|
---|
867 | Const EM_REPLACESEL = &H00C2
|
---|
868 | Const EM_GETLINE = &H00C4
|
---|
869 | Const EM_LIMITTEXT = &H00C5
|
---|
870 | Const EM_CANUNDO = &H00C6
|
---|
871 | Const EM_UNDO = &H00C7
|
---|
872 | Const EM_FMTLINES = &H00C8
|
---|
873 | Const EM_LINEFROMCHAR = &H00C9
|
---|
874 | Const EM_SETTABSTOPS = &H00CB
|
---|
875 | Const EM_SETPASSWORDCHAR = &H00CC
|
---|
876 | Const EM_EMPTYUNDOBUFFER = &H00CD
|
---|
877 | Const EM_GETFIRSTVISIBLELINE =&H00CE
|
---|
878 | Const EM_SETREADONLY = &H00CF
|
---|
879 | Const EM_SETWORDBREAKPROC = &H00D0
|
---|
880 | Const EM_GETWORDBREAKPROC = &H00D1
|
---|
881 | Const EM_GETPASSWORDCHAR = &H00D2
|
---|
882 |
|
---|
883 | Const EM_SETMARGINS = &H00D3
|
---|
884 | Const EC_LEFTMARGIN = &H0001
|
---|
885 | Const EC_RIGHTMARGIN = &H0002
|
---|
886 | Const EC_USEFONTINFO = &Hffff
|
---|
887 |
|
---|
888 | Const EM_GETMARGINS = &H00D4
|
---|
889 | Const EM_SETLIMITTEXT = EM_LIMITTEXT
|
---|
890 | Const EM_GETLIMITTEXT = &H00D5
|
---|
891 | Const EM_POSFROMCHAR = &H00D6
|
---|
892 | Const EM_CHARFROMPOS = &H00D7
|
---|
893 |
|
---|
894 | Const EM_SETIMESTATUS = &H00D8
|
---|
895 | Const EM_GETIMESTATUS = &H00D9
|
---|
896 | Const EMSIS_COMPOSITIONSTRING = &H0001
|
---|
897 | Const EIMES_GETCOMPSTRATONCE = &H0001
|
---|
898 | Const EIMES_CANCELCOMPSTRINFOCUS = &H0002
|
---|
899 | Const EIMES_COMPLETECOMPSTRKILLFOCUS =&H0004
|
---|
900 |
|
---|
901 |
|
---|
902 | '---------------------------------
|
---|
903 | ' User Button Notification Codes
|
---|
904 | '---------------------------------
|
---|
905 |
|
---|
906 | Const BN_CLICKED = 0
|
---|
907 | Const BN_PAINT = 1
|
---|
908 | Const BN_HILITE = 2
|
---|
909 | Const BN_UNHILITE = 3
|
---|
910 | Const BN_DISABLE = 4
|
---|
911 | Const BN_DOUBLECLICKED = 5
|
---|
912 | Const BN_PUSHED = BN_HILITE
|
---|
913 | Const BN_UNPUSHED = BN_UNHILITE
|
---|
914 | Const BN_DBLCLK = BN_DOUBLECLICKED
|
---|
915 | Const BN_SETFOCUS = 6
|
---|
916 | Const BN_KILLFOCUS = 7
|
---|
917 |
|
---|
918 |
|
---|
919 | '--------------------------
|
---|
920 | ' Button Control Messages
|
---|
921 | '--------------------------
|
---|
922 |
|
---|
923 | Const BM_GETCHECK = &H00F0
|
---|
924 | Const BM_SETCHECK = &H00F1
|
---|
925 | Const BM_GETSTATE = &H00F2
|
---|
926 | Const BM_SETSTATE = &H00F3
|
---|
927 | Const BM_SETSTYLE = &H00F4
|
---|
928 | Const BM_CLICK = &H00F5
|
---|
929 | Const BM_GETIMAGE = &H00F6
|
---|
930 | Const BM_SETIMAGE = &H00F7
|
---|
931 |
|
---|
932 | Const BST_UNCHECKED = &H0000
|
---|
933 | Const BST_CHECKED = &H0001
|
---|
934 | Const BST_INDETERMINATE =&H0002
|
---|
935 | Const BST_PUSHED = &H0004
|
---|
936 | Const BST_FOCUS = &H0008
|
---|
937 |
|
---|
938 |
|
---|
939 | '-------------------------
|
---|
940 | ' Static Control Mesages
|
---|
941 | '-------------------------
|
---|
942 | Const STM_SETICON = &H0170
|
---|
943 | Const STM_GETICON = &H0171
|
---|
944 | Const STM_SETIMAGE = &H0172
|
---|
945 | Const STM_GETIMAGE = &H0173
|
---|
946 | Const STN_CLICKED = 0
|
---|
947 | Const STN_DBLCLK = 1
|
---|
948 | Const STN_ENABLE = 2
|
---|
949 | Const STN_DISABLE = 3
|
---|
950 | Const STM_MSGMAX = &H0174
|
---|
951 |
|
---|
952 |
|
---|
953 | '--------------------------
|
---|
954 | ' ListBox Control Mesages
|
---|
955 | '--------------------------
|
---|
956 | Const LB_ADDSTRING = &H0180
|
---|
957 | Const LB_INSERTSTRING = &H0181
|
---|
958 | Const LB_DELETESTRING = &H0182
|
---|
959 | Const LB_SELITEMRANGEEX = &H0183
|
---|
960 | Const LB_RESETCONTENT = &H0184
|
---|
961 | Const LB_SETSEL = &H0185
|
---|
962 | Const LB_SETCURSEL = &H0186
|
---|
963 | Const LB_GETSEL = &H0187
|
---|
964 | Const LB_GETCURSEL = &H0188
|
---|
965 | Const LB_GETTEXT = &H0189
|
---|
966 | Const LB_GETTEXTLEN = &H018A
|
---|
967 | Const LB_GETCOUNT = &H018B
|
---|
968 | Const LB_SELECTSTRING = &H018C
|
---|
969 | Const LB_DIR = &H018D
|
---|
970 | Const LB_GETTOPINDEX = &H018E
|
---|
971 | Const LB_FINDSTRING = &H018F
|
---|
972 | Const LB_GETSELCOUNT = &H0190
|
---|
973 | Const LB_GETSELITEMS = &H0191
|
---|
974 | Const LB_SETTABSTOPS = &H0192
|
---|
975 | Const LB_GETHORIZONTALEXTENT = &H0193
|
---|
976 | Const LB_SETHORIZONTALEXTENT = &H0194
|
---|
977 | Const LB_SETCOLUMNWIDTH = &H0195
|
---|
978 | Const LB_ADDFILE = &H0196
|
---|
979 | Const LB_SETTOPINDEX = &H0197
|
---|
980 | Const LB_GETITEMRECT = &H0198
|
---|
981 | Const LB_GETITEMDATA = &H0199
|
---|
982 | Const LB_SETITEMDATA = &H019A
|
---|
983 | Const LB_SELITEMRANGE = &H019B
|
---|
984 | Const LB_SETANCHORINDEX = &H019C
|
---|
985 | Const LB_GETANCHORINDEX = &H019D
|
---|
986 | Const LB_SETCARETINDEX = &H019E
|
---|
987 | Const LB_GETCARETINDEX = &H019F
|
---|
988 | Const LB_SETITEMHEIGHT = &H01A0
|
---|
989 | Const LB_GETITEMHEIGHT = &H01A1
|
---|
990 | Const LB_FINDSTRINGEXACT = &H01A2
|
---|
991 | Const LB_SETLOCALE = &H01A5
|
---|
992 | Const LB_GETLOCALE = &H01A6
|
---|
993 | Const LB_SETCOUNT = &H01A7
|
---|
994 | Const LB_INITSTORAGE = &H01A8
|
---|
995 | Const LB_ITEMFROMPOINT = &H01A9
|
---|
996 |
|
---|
997 | Const LBN_ERRSPACE = -2
|
---|
998 | Const LBN_SELCHANGE = 1
|
---|
999 | Const LBN_DBLCLK = 2
|
---|
1000 | Const LBN_SELCANCEL = 3
|
---|
1001 | Const LBN_SETFOCUS = 4
|
---|
1002 | Const LBN_KILLFOCUS = 5
|
---|
1003 |
|
---|
1004 | Const LB_ERR = -1
|
---|
1005 | Const LB_ERRSPACE = -2
|
---|
1006 |
|
---|
1007 |
|
---|
1008 | '---------------------------
|
---|
1009 | ' ComboBox Control Mesages
|
---|
1010 | '---------------------------
|
---|
1011 | Const CB_GETEDITSEL = &H0140
|
---|
1012 | Const CB_LIMITTEXT = &H0141
|
---|
1013 | Const CB_SETEDITSEL = &H0142
|
---|
1014 | Const CB_ADDSTRING = &H0143
|
---|
1015 | Const CB_DELETESTRING = &H0144
|
---|
1016 | Const CB_DIR = &H0145
|
---|
1017 | Const CB_GETCOUNT = &H0146
|
---|
1018 | Const CB_GETCURSEL = &H0147
|
---|
1019 | Const CB_GETLBTEXT = &H0148
|
---|
1020 | Const CB_GETLBTEXTLEN = &H0149
|
---|
1021 | Const CB_INSERTSTRING = &H014A
|
---|
1022 | Const CB_RESETCONTENT = &H014B
|
---|
1023 | Const CB_FINDSTRING = &H014C
|
---|
1024 | Const CB_SELECTSTRING = &H014D
|
---|
1025 | Const CB_SETCURSEL = &H014E
|
---|
1026 | Const CB_SHOWDROPDOWN = &H014F
|
---|
1027 | Const CB_GETITEMDATA = &H0150
|
---|
1028 | Const CB_SETITEMDATA = &H0151
|
---|
1029 | Const CB_GETDROPPEDCONTROLRECT = &H0152
|
---|
1030 | Const CB_SETITEMHEIGHT = &H0153
|
---|
1031 | Const CB_GETITEMHEIGHT = &H0154
|
---|
1032 | Const CB_SETEXTENDEDUI = &H0155
|
---|
1033 | Const CB_GETEXTENDEDUI = &H0156
|
---|
1034 | Const CB_GETDROPPEDSTATE = &H0157
|
---|
1035 | Const CB_FINDSTRINGEXACT = &H0158
|
---|
1036 | Const CB_SETLOCALE = &H0159
|
---|
1037 | Const CB_GETLOCALE = &H015A
|
---|
1038 | Const CB_GETTOPINDEX = &H015B
|
---|
1039 | Const CB_SETTOPINDEX = &H015C
|
---|
1040 | Const CB_GETHORIZONTALEXTENT = &H015D
|
---|
1041 | Const CB_SETHORIZONTALEXTENT = &H015E
|
---|
1042 | Const CB_GETDROPPEDWIDTH = &H015F
|
---|
1043 | Const CB_SETDROPPEDWIDTH = &H0160
|
---|
1044 | Const CB_INITSTORAGE = &H0161
|
---|
1045 | Const CB_MSGMAX = &H0162
|
---|
1046 |
|
---|
1047 | Const CBN_ERRSPACE = -1
|
---|
1048 | Const CBN_SELCHANGE = 1
|
---|
1049 | Const CBN_DBLCLK = 2
|
---|
1050 | Const CBN_SETFOCUS = 3
|
---|
1051 | Const CBN_KILLFOCUS = 4
|
---|
1052 | Const CBN_EDITCHANGE = 5
|
---|
1053 | Const CBN_EDITUPDATE = 6
|
---|
1054 | Const CBN_DROPDOWN = 7
|
---|
1055 | Const CBN_CLOSEUP = 8
|
---|
1056 | Const CBN_SELENDOK = 9
|
---|
1057 | Const CBN_SELENDCANCEL = 10
|
---|