source: Include/api_msg.sbp@ 1

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