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