source: trunk/Include/api_msg.sbp@ 485

Last change on this file since 485 was 473, checked in by イグトランス (egtra), 17 years ago

実験として書いていたControlクラスを追加(せめてコミット前に既存のContorolに混ぜようとしたがコンパイルできなかった)。
ほかForms, Drawing及びGDI+の修正。

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