source: branch/egtra-gdiplus/api_msg.sbp@ 464

Last change on this file since 464 was 141, checked in by イグトランス (egtra), 18 years ago

#50 API宣言の変更完了

File size: 30.6 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 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
150End Type
151Type 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
164End Type
165#ifdef UNICODE
166TypeDef CREATESTRUCT = CREATESTRUCTW
167#else
168TypeDef CREATESTRUCT = CREATESTRUCTA
169#endif
170Const WM_DESTROY = &H0002
171Const WM_MOVE = &H0003
172Const WM_SIZE = &H0005
173' WM_SIZE message wParam values
174Const SIZE_RESTORED = 0
175Const SIZE_MINIMIZED = 1
176Const SIZE_MAXIMIZED = 2
177Const SIZE_MAXSHOW = 3
178Const SIZE_MAXHIDE = 4
179
180Const WM_ACTIVATE = &H0006
181' WM_ACTIVATE state values
182Const WA_INACTIVE = 0
183Const WA_ACTIVE = 1
184Const WA_CLICKACTIVE = 2
185
186Const WM_SETFOCUS = &H0007
187Const WM_KILLFOCUS = &H0008
188Const WM_ENABLE = &H000A
189Const WM_SETREDRAW = &H000B
190Const WM_SETTEXT = &H000C
191Const WM_GETTEXT = &H000D
192Const WM_GETTEXTLENGTH = &H000E
193Const WM_PAINT = &H000F
194Const WM_CLOSE = &H0010
195Const WM_QUERYENDSESSION = &H0011
196Const WM_QUIT = &H0012
197Const WM_QUERYOPEN = &H0013
198Const WM_ERASEBKGND = &H0014
199Const WM_SYSCOLORCHANGE = &H0015
200Const WM_ENDSESSION = &H0016
201Const WM_SHOWWINDOW = &H0018
202' Identifiers for the WM_SHOWWINDOW message
203Const SW_PARENTCLOSING = 1
204Const SW_OTHERZOOM = 2
205Const SW_PARENTOPENING = 3
206Const SW_OTHERUNZOOM = 4
207Const WM_WININICHANGE = &H001A
208Const WM_SETTINGCHANGE = WM_WININICHANGE
209
210Const WM_DEVMODECHANGE = &H001B
211Const WM_ACTIVATEAPP = &H001C
212Const WM_FONTCHANGE = &H001D
213Const WM_TIMECHANGE = &H001E
214Const WM_CANCELMODE = &H001F
215Const WM_SETCURSOR = &H0020
216Const WM_MOUSEACTIVATE = &H0021
217Const WM_CHILDACTIVATE = &H0022
218Const WM_QUEUESYNC = &H0023
219
220Const WM_GETMINMAXINFO = &H0024
221' Struct pointed to by WM_GETMINMAXINFO lParam
222Type MINMAXINFO
223 ptReserved As POINTAPI
224 ptMaxSize As POINTAPI
225 ptMaxPosition As POINTAPI
226 ptMinTrackSize As POINTAPI
227 ptMaxTrackSize As POINTAPI
228End Type
229
230Const WM_PAINTICON = &H0026
231Const WM_ICONERASEBKGND = &H0027
232Const WM_NEXTDLGCTL = &H0028
233Const WM_SPOOLERSTATUS = &H002A
234
235
236Const WM_DRAWITEM = &H002B
237
238'DRAWITEMSTRUCT for ownerdraw
239Type 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
249End Type
250
251
252Const WM_MEASUREITEM = &H002C
253
254' Owner draw control types
255Const ODT_MENU = 1
256Const ODT_LISTBOX = 2
257Const ODT_COMBOBOX = 3
258Const ODT_BUTTON = 4
259Const ODT_STATIC = 5
260
261'Owner draw actions
262Const ODA_DRAWENTIRE = &H0001
263Const ODA_SELECT = &H0002
264Const ODA_FOCUS = &H0004
265
266'Owner draw state
267Const ODS_SELECTED = &H0001
268Const ODS_GRAYED = &H0002
269Const ODS_DISABLED = &H0004
270Const ODS_CHECKED = &H0008
271Const ODS_FOCUS = &H0010
272Const ODS_DEFAULT = &H0020
273Const ODS_COMBOBOXEDIT = &H1000
274Const ODS_HOTLIGHT = &H0040
275Const ODS_INACTIVE = &H0080
276Const ODS_NOACCEL = &H0100
277Const ODS_NOFOCUSRECT = &H0200
278
279'MEASUREITEMSTRUCT for ownerdraw
280Type 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
287End Type
288
289
290Const WM_DELETEITEM = &H002D
291
292' DELETEITEMSTRUCT for ownerdraw
293Type DELETEITEMSTRUCT
294 CtlType As DWord
295 CtlID As DWord
296 itemID As DWord
297 hwndItem As HWND
298 itemData As DWord
299End Type
300
301
302Const WM_VKEYTOITEM = &H002E
303Const WM_CHARTOITEM = &H002F
304Const WM_SETFONT = &H0030
305Const WM_GETFONT = &H0031
306Const WM_SETHOTKEY = &H0032
307Const WM_GETHOTKEY = &H0033
308Const WM_QUERYDRAGICON = &H0037
309Const WM_COMPAREITEM = &H0039
310' COMPAREITEMSTUCT for ownerdraw sorting
311Type 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
320End Type
321'#if WINVER > &h0500
322Const WM_GETOBJECT = &H003D
323'#endif
324Const WM_COMPACTING = &H0041
325Const WM_COMMNOTIFY = &H0044
326Const WM_WINDOWPOSCHANGING = &H0046
327Const WM_WINDOWPOSCHANGED = &H0047
328' WM_WINDOWPOSCHANGING/CHANGED struct pointed to by lParam
329Type 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
337End Type
338
339Const WM_POWER = &H0048
340' wParam for WM_POWER window message and DRV_POWER driver notification
341Const PWR_OK = 1
342Const PWR_FAIL = -1
343Const PWR_SUSPENDREQUEST =1
344Const PWR_SUSPENDRESUME = 2
345Const PWR_CRITICALRESUME =3
346
347Const WM_COPYDATA = &H004A
348' lParam of WM_COPYDATA message points to...
349Type COPYDATASTRUCT
350 dwData As DWord
351 cbData As DWord
352 lpData As VoidPtr
353End Type
354
355Const WM_CANCELJOURNAL = &H004B
356Const WM_NOTIFY = &H004E
357Const WM_INPUTLANGCHANGEREQUEST = &H0050
358Const WM_INPUTLANGCHANGE = &H0051
359Const WM_TCARD = &H0052
360Const WM_HELP = &H0053
361' lParam of WM_HELP messgae point to...
362Type 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
369End Type
370Const WM_USERCHANGED = &H0054
371Const WM_NOTIFYFORMAT = &H0055
372Const NFR_ANSI = 1
373Const NFR_UNICODE = 2
374Const NF_QUERY = 3
375Const NF_REQUERY = 4
376
377Const WM_CONTEXTMENU = &H007B
378Const WM_STYLECHANGING = &H007C
379Const WM_STYLECHANGED = &H007D
380Const WM_DISPLAYCHANGE = &H007E
381Const WM_GETICON = &H007F
382Const WM_SETICON = &H0080
383' WM_SETICON / WM_GETICON Type Codes
384Const ICON_SMALL = 0
385Const ICON_BIG = 1
386
387Const WM_NCCREATE = &H0081
388Const WM_NCDESTROY = &H0082
389Const WM_NCCALCSIZE = &H0083
390Const WM_NCHITTEST = &H0084
391' WM_NCHITTEST and MOUSEHOOKSTRUCT Mouse Position Codes
392Const HTERROR = -2
393Const HTTRANSPARENT = -1
394Const HTNOWHERE = 0
395Const HTCLIENT = 1
396Const HTCAPTION = 2
397Const HTSYSMENU = 3
398Const HTGROWBOX = 4
399Const HTSIZE = HTGROWBOX
400Const HTMENU = 5
401Const HTHSCROLL = 6
402Const HTVSCROLL = 7
403Const HTMINBUTTON = 8
404Const HTMAXBUTTON = 9
405Const HTLEFT = 10
406Const HTRIGHT = 11
407Const HTTOP = 12
408Const HTTOPLEFT = 13
409Const HTTOPRIGHT = 14
410Const HTBOTTOM = 15
411Const HTBOTTOMLEFT = 16
412Const HTBOTTOMRIGHT = 17
413Const HTBORDER = 18
414Const HTREDUCE = HTMINBUTTON
415Const HTZOOM = HTMAXBUTTON
416Const HTSIZEFIRST = HTLEFT
417Const HTSIZELAST = HTBOTTOMRIGHT
418Const HTOBJECT = 19
419Const HTCLOSE = 20
420Const HTHELP = 21
421Const WM_NCPAINT = &H0085
422Const WM_NCACTIVATE = &H0086
423Const WM_GETDLGCODE = &H0087
424Const WM_SYNCPAINT = &H0088
425Const WM_NCMOUSEMOVE = &H00A0
426Const WM_NCLBUTTONDOWN = &H00A1
427Const WM_NCLBUTTONUP = &H00A2
428Const WM_NCLBUTTONDBLCLK = &H00A3
429Const WM_NCRBUTTONDOWN = &H00A4
430Const WM_NCRBUTTONUP = &H00A5
431Const WM_NCRBUTTONDBLCLK = &H00A6
432Const WM_NCMBUTTONDOWN = &H00A7
433Const WM_NCMBUTTONUP = &H00A8
434Const WM_NCMBUTTONDBLCLK = &H00A9
435'#if _WIN32_WINNT >= &h0500
436Const WM_NCXBUTTONDOWN = &H00AB
437Const WM_NCXBUTTONUP = &H00AC
438Const WM_NCXBUTTONDBLCLK = &h00AD
439'#endif
440'#if _WIN32_WINNT >= &H0501
441Const WM_INPUT_DEVICE_CHANGE = &H00FE
442Const WM_INPUT = &H00FF
443'#endif
444Const WM_KEYFIRST = &H0100
445Const WM_KEYDOWN = &H0100
446Const WM_KEYUP = &H0101
447Const WM_CHAR = &H0102
448Const WM_DEADCHAR = &H0103
449Const WM_SYSKEYDOWN = &H0104
450Const WM_SYSKEYUP = &H0105
451Const WM_SYSCHAR = &H0106
452Const WM_SYSDEADCHAR = &H0107
453'#if _WIN32_WINNT >= &h0501
454Const WM_UNICHAR = &H0109
455Const UNICODE_NOCHAR = &HFFFF
456Const WM_KEYLAST = &H0109
457'#else
458'Const WM_KEYLAST = &H0108
459'#endif
460Const WM_IME_STARTCOMPOSITION = &H010D
461Const WM_IME_ENDCOMPOSITION = &H010E
462Const WM_IME_COMPOSITION = &H010F
463Const WM_IME_KEYLAST = &H010F
464
465Const WM_INITDIALOG = &H0110
466Const WM_COMMAND = &H0111
467Const WM_SYSCOMMAND = &H0112
468' System Menu Command Values
469Const SC_SIZE = &HF000
470Const SC_MOVE = &HF010
471Const SC_MINIMIZE = &HF020
472Const SC_MAXIMIZE = &HF030
473Const SC_NEXTWINDOW = &HF040
474Const SC_PREVWINDOW = &HF050
475Const SC_CLOSE = &HF060
476Const SC_VSCROLL = &HF070
477Const SC_HSCROLL = &HF080
478Const SC_MOUSEMENU = &HF090
479Const SC_KEYMENU = &HF100
480Const SC_ARRANGE = &HF110
481Const SC_RESTORE = &HF120
482Const SC_TASKLIST = &HF130
483Const SC_SCREENSAVE = &HF140
484Const SC_HOTKEY = &HF150
485Const SC_DEFAULT = &HF160
486Const SC_MONITORPOWER = &HF170
487Const SC_CONTEXTHELP = &HF180
488Const SC_SEPARATOR = &HF00F
489Const WM_TIMER = &H0113
490Const WM_HSCROLL = &H0114
491Const WM_VSCROLL = &H0115
492' Scroll Bar Commands
493Const SB_LINEUP = 0
494Const SB_LINELEFT = 0
495Const SB_LINEDOWN = 1
496Const SB_LINERIGHT = 1
497Const SB_PAGEUP = 2
498Const SB_PAGELEFT = 2
499Const SB_PAGEDOWN = 3
500Const SB_PAGERIGHT = 3
501Const SB_THUMBPOSITION = 4
502Const SB_THUMBTRACK = 5
503Const SB_TOP = 6
504Const SB_LEFT = 6
505Const SB_BOTTOM = 7
506Const SB_RIGHT = 7
507Const SB_ENDSCROLL = 8
508Const WM_INITMENU = &H0116
509Const WM_INITMENUPOPUP = &H0117
510Const WM_MENUSELECT = &H011F
511Const WM_MENUCHAR = &H0120
512' return codes for WM_MENUCHAR
513Const MNC_IGNORE = 0
514Const MNC_CLOSE = 1
515Const MNC_EXECUTE = 2
516Const MNC_SELECT = 3
517Const WM_ENTERIDLE = &H0121
518'#if WINVER >= &H0500
519Const WM_MENURBUTTONUP = &H0122
520Const WM_MENUDRAG = &H0123
521Const WM_MENUGETOBJECT = &H0124
522Const WM_UNINITMENUPOPUP = &H0125
523Const WM_MENUCOMMAND = &H0126
524
525Const WM_CHANGEUISTATE = &H0127
526Const WM_UPDATEUISTATE = &H0128
527Const WM_QUERYUISTATE = &H0129
528'#endif
529Const WM_CTLCOLORMSGBOX = &H0132
530Const WM_CTLCOLOREDIT = &H0133
531Const WM_CTLCOLORLISTBOX = &H0134
532Const WM_CTLCOLORBTN = &H0135
533Const WM_CTLCOLORDLG = &H0136
534Const WM_CTLCOLORSCROLLBAR = &H0137
535Const WM_CTLCOLORSTATIC = &H0138
536Const MN_GETHMENU = &H01E1
537
538Const WM_MOUSEFIRST = &H0200
539Const WM_MOUSEMOVE = &H0200
540Const WM_LBUTTONDOWN = &H0201
541Const WM_LBUTTONUP = &H0202
542Const WM_LBUTTONDBLCLK = &H0203
543Const WM_RBUTTONDOWN = &H0204
544Const WM_RBUTTONUP = &H0205
545Const WM_RBUTTONDBLCLK = &H0206
546Const WM_MBUTTONDOWN = &H0207
547Const WM_MBUTTONUP = &H0208
548Const WM_MBUTTONDBLCLK = &H0209
549'#if _WIN32_WINNT >= &H0400 || _WIN32_WINDOWS > &H0400
550Const WM_MOUSEWHEEL = &H020A
551'#endif
552'#if _WIN32_WINNT >= &H0500
553Const WM_XBUTTONDOWN = &H020B
554Const WM_XBUTTONUP = &H020C
555Const WM_XBUTTONDBLCLK = &H020D
556'#endif
557'#if _WIN32_WINNT >= &H0600
558Const WM_MOUSEHWHEEL = &H020E
559'#endif
560Const WM_MOUSELAST = &H020E
561
562Const WHEEL_DELTA = 120
563Const WHEEL_PAGESCROLL = &HFFFFFFFF
564Const GET_WHEEL_DELTA_WPARAM(wp) = (HIWORD(wp) As Integer)
565'#if _WIN32_WINNT >= &H0500
566Const GET_KEYSTATE_WPARAM(wp) = (LOWORD(wp))
567Const GET_NCHITTEST_WPARAM(wp) = (LOWORD(wp) As Integer)
568Const GET_XBUTTON_WPARAM(wp) = (HIWORD(wp))
569
570Const XBUTTON1 = &H0001
571Const XBUTTON2 = &H0002
572'#endif
573
574Const WM_PARENTNOTIFY = &H0210
575Const WM_ENTERMENULOOP = &H0211
576Const WM_EXITMENULOOP = &H0212
577
578Const WM_NEXTMENU = &H0213
579Const WM_SIZING = &H0214
580' wParam for WM_SIZING message
581Const WMSZ_LEFT = 1
582Const WMSZ_RIGHT = 2
583Const WMSZ_TOP = 3
584Const WMSZ_TOPLEFT = 4
585Const WMSZ_TOPRIGHT = 5
586Const WMSZ_BOTTOM = 6
587Const WMSZ_BOTTOMLEFT = 7
588Const WMSZ_BOTTOMRIGHT = 8
589
590Const WM_CAPTURECHANGED = &H0215
591Const WM_MOVING = &H0216
592
593Const WM_POWERBROADCAST = &H0218
594' wParam for WM_POWERBROADCAST message
595Const PBT_APMQUERYSUSPEND = &H0000
596Const PBT_APMQUERYSTANDBY = &H0001
597Const PBT_APMQUERYSUSPENDFAILED = &H0002
598Const PBT_APMQUERYSTANDBYFAILED = &H0003
599Const PBT_APMSUSPEND = &H0004
600Const PBT_APMSTANDBY = &H0005
601Const PBT_APMRESUMECRITICAL = &H0006
602Const PBT_APMRESUMESUSPEND = &H0007
603Const PBT_APMRESUMESTANDBY = &H0008
604Const PBTF_APMRESUMEFROMFAILURE = &H00000001
605Const PBT_APMBATTERYLOW = &H0009
606Const PBT_APMPOWERSTATUSCHANGE = &H000A
607Const PBT_APMOEMEVENT = &H000B
608Const PBT_APMRESUMEAUTOMATIC = &H0012
609'#if _WIN32_WINNT >= &H0502
610Const PBT_POWERSETTINGCHANGE = &H0013
611Type POWERBROADCAST_SETTING
612 PowerSetting As GUID
613 DataLength As DWord
614 Data[ELM(1)] As Byte
615End Type
616'#endif
617
618Const WM_DEVICECHANGE = &H0219
619
620Const WM_MDICREATE = &H0220
621' lParam of WM_MDICREATE message point to...
622Type 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
632End Type
633Type 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
643End Type
644#ifdef UNICODE
645TypeDef MDICREATESTRUCT = MDICREATESTRUCTW
646#else
647TypeDef MDICREATESTRUCT = MDICREATESTRUCTA
648#endif
649Const WM_MDIDESTROY = &H0221
650Const WM_MDIACTIVATE = &H0222
651Const WM_MDIRESTORE = &H0223
652Const WM_MDINEXT = &H0224
653Const WM_MDIMAXIMIZE = &H0225
654Const WM_MDITILE = &H0226
655' wParam Flags for WM_MDITILE and WM_MDICASCADE messages.
656Const MDITILE_VERTICAL = &H0000
657Const MDITILE_HORIZONTAL = &H0001
658Const MDITILE_SKIPDISABLED = &H0002
659Const WM_MDICASCADE = &H0227
660Const WM_MDIICONARRANGE = &H0228
661Const WM_MDIGETACTIVE = &H0229
662
663Const WM_MDISETMENU = &H0230
664Const WM_ENTERSIZEMOVE = &H0231
665Const WM_EXITSIZEMOVE = &H0232
666Const WM_DROPFILES = &H0233
667Const WM_MDIREFRESHMENU = &H0234
668
669Const WM_IME_SETCONTEXT = &H0281
670Const WM_IME_NOTIFY = &H0282
671Const WM_IME_CONTROL = &H0283
672Const WM_IME_COMPOSITIONFULL = &H0284
673Const WM_IME_SELECT = &H0285
674Const WM_IME_CHAR = &H0286
675'#if WINVER >= 0x0500
676Const WM_IME_REQUEST = &H0288
677'#endif
678Const WM_IME_KEYDOWN = &H0290
679Const WM_IME_KEYUP = &H0291
680'#if _WIN32_WINNT >= &H0400 Or WINVER >= &H0500
681Const WM_MOUSEHOVER = &H02A1
682Const WM_MOUSELEAVE = &H02A3
683'#endif
684'#if WINVER >= &H0500
685Const WM_NCMOUSEHOVER = &H02A1
686Const WM_NCMOUSELEAVE = &H02A3
687'#endif
688'#if _WIN32_WINNT >= &H0501
689Const WM_WTSSESSION_CHANGE = &H02B1
690
691Const WM_TABLET_FIRST = &H02C0
692Const WM_TABLET_LAST = &H02DF
693'#endif
694Const WM_CUT = &H0300
695Const WM_COPY = &H0301
696Const WM_PASTE = &H0302
697Const WM_CLEAR = &H0303
698Const WM_UNDO = &H0304
699Const WM_RENDERFORMAT = &H0305
700Const WM_RENDERALLFORMATS = &H0306
701Const WM_DESTROYCLIPBOARD = &H0307
702Const WM_DRAWCLIPBOARD = &H0308
703Const WM_PAINTCLIPBOARD = &H0309
704Const WM_VSCROLLCLIPBOARD = &H030A
705Const WM_SIZECLIPBOARD = &H030B
706Const WM_ASKCBFORMATNAME = &H030C
707Const WM_CHANGECBCHAIN = &H030D
708Const WM_HSCROLLCLIPBOARD = &H030E
709Const WM_QUERYNEWPALETTE = &H030F
710Const WM_PALETTEISCHANGING = &H0310
711Const WM_PALETTECHANGED = &H0311
712Const WM_HOTKEY = &H0312
713
714Const WM_PRINT = &H0317
715Const WM_PRINTCLIENT = &H0318
716' WM_PRINT flags
717Const PRF_CHECKVISIBLE = &H00000001
718Const PRF_NONCLIENT = &H00000002
719Const PRF_CLIENT = &H00000004
720Const PRF_ERASEBKGND = &H00000008
721Const PRF_CHILDREN = &H00000010
722Const PRF_OWNED = &H00000020
723
724'#if _WIN32_WINNT >= &H0500
725Const WM_APPCOMMAND = &H0319
726'#endif
727'#if _WIN32_WINNT >= &H0501
728Const WM_THEMECHANGED = &H031A
729'#endif
730
731'#if _WIN32_WINNT >= &H0501
732Const WM_CLIPBOARDUPDATE = &H031D
733'#endif
734
735'#if _WIN32_WINNT >= &H0600
736Const WM_DWMCOMPOSITIONCHANGED = &H031E
737Const WM_DWMNCRENDERINGCHANGED = &H031F
738Const WM_DWMCOLORIZATIONCOLORCHANGED =&H0320
739Const WM_DWMWINDOWMAXIMIZEDCHANGE = &H0321
740'#endif
741
742'#if WINVER >= &H0600
743Const WM_GETTITLEBARINFOEX = &H033F
744'#endif
745
746Const WM_HANDHELDFIRST = &H0358
747Const WM_HANDHELDLAST = &H035F
748
749Const WM_AFXFIRST = &H0360
750Const WM_AFXLAST = &H037F
751
752Const WM_PENWINFIRST = &H0380
753Const WM_PENWINLAST = &H038F
754
755Const WM_APP = &H8000
756Const WM_USER = &H0400
757
758' WM_MOUSEACTIVATE Return Codes
759Const MA_ACTIVATE = 1
760Const MA_ACTIVATEANDEAT = 2
761Const MA_NOACTIVATE = 3
762Const MA_NOACTIVATEANDEAT = 4
763
764' Key State Masks for Mouse Messages
765Const MK_LBUTTON = &H0001
766Const MK_RBUTTON = &H0002
767Const MK_SHIFT = &H0004
768Const MK_CONTROL = &H0008
769Const MK_MBUTTON = &H0010
770
771
772'----------------------------------
773' Edit Control Notification Codes
774'----------------------------------
775
776Const EN_SETFOCUS = &H0100
777Const EN_KILLFOCUS = &H0200
778Const EN_CHANGE = &H0300
779Const EN_UPDATE = &H0400
780Const EN_ERRSPACE = &H0500
781Const EN_MAXTEXT = &H0501
782Const EN_HSCROLL = &H0601
783Const EN_VSCROLL = &H0602
784
785
786'------------------------
787' Edit Control Messages
788'------------------------
789Const EM_GETSEL = &H00B0
790Const EM_SETSEL = &H00B1
791Const EM_GETRECT = &H00B2
792Const EM_SETRECT = &H00B3
793Const EM_SETRECTNP = &H00B4
794Const EM_SCROLL = &H00B5
795Const EM_LINESCROLL = &H00B6
796Const EM_SCROLLCARET = &H00B7
797Const EM_GETMODIFY = &H00B8
798Const EM_SETMODIFY = &H00B9
799Const EM_GETLINECOUNT = &H00BA
800Const EM_LINEINDEX = &H00BB
801Const EM_SETHANDLE = &H00BC
802Const EM_GETHANDLE = &H00BD
803Const EM_GETTHUMB = &H00BE
804Const EM_LINELENGTH = &H00C1
805Const EM_REPLACESEL = &H00C2
806Const EM_GETLINE = &H00C4
807Const EM_LIMITTEXT = &H00C5
808Const EM_CANUNDO = &H00C6
809Const EM_UNDO = &H00C7
810Const EM_FMTLINES = &H00C8
811Const EM_LINEFROMCHAR = &H00C9
812Const EM_SETTABSTOPS = &H00CB
813Const EM_SETPASSWORDCHAR = &H00CC
814Const EM_EMPTYUNDOBUFFER = &H00CD
815Const EM_GETFIRSTVISIBLELINE =&H00CE
816Const EM_SETREADONLY = &H00CF
817Const EM_SETWORDBREAKPROC = &H00D0
818Const EM_GETWORDBREAKPROC = &H00D1
819Const EM_GETPASSWORDCHAR = &H00D2
820
821Const EM_SETMARGINS = &H00D3
822Const EC_LEFTMARGIN = &H0001
823Const EC_RIGHTMARGIN = &H0002
824Const EC_USEFONTINFO = &Hffff
825
826Const EM_GETMARGINS = &H00D4
827Const EM_SETLIMITTEXT = EM_LIMITTEXT
828Const EM_GETLIMITTEXT = &H00D5
829Const EM_POSFROMCHAR = &H00D6
830Const EM_CHARFROMPOS = &H00D7
831
832Const EM_SETIMESTATUS = &H00D8
833Const EM_GETIMESTATUS = &H00D9
834Const EMSIS_COMPOSITIONSTRING = &H0001
835Const EIMES_GETCOMPSTRATONCE = &H0001
836Const EIMES_CANCELCOMPSTRINFOCUS = &H0002
837Const EIMES_COMPLETECOMPSTRKILLFOCUS =&H0004
838
839
840'---------------------------------
841' User Button Notification Codes
842'---------------------------------
843
844Const BN_CLICKED = 0
845Const BN_PAINT = 1
846Const BN_HILITE = 2
847Const BN_UNHILITE = 3
848Const BN_DISABLE = 4
849Const BN_DOUBLECLICKED = 5
850Const BN_PUSHED = BN_HILITE
851Const BN_UNPUSHED = BN_UNHILITE
852Const BN_DBLCLK = BN_DOUBLECLICKED
853Const BN_SETFOCUS = 6
854Const BN_KILLFOCUS = 7
855
856
857'--------------------------
858' Button Control Messages
859'--------------------------
860
861Const BM_GETCHECK = &H00F0
862Const BM_SETCHECK = &H00F1
863Const BM_GETSTATE = &H00F2
864Const BM_SETSTATE = &H00F3
865Const BM_SETSTYLE = &H00F4
866Const BM_CLICK = &H00F5
867Const BM_GETIMAGE = &H00F6
868Const BM_SETIMAGE = &H00F7
869
870Const BST_UNCHECKED = &H0000
871Const BST_CHECKED = &H0001
872Const BST_INDETERMINATE =&H0002
873Const BST_PUSHED = &H0004
874Const BST_FOCUS = &H0008
875
876
877'-------------------------
878' Static Control Mesages
879'-------------------------
880Const STM_SETICON = &H0170
881Const STM_GETICON = &H0171
882Const STM_SETIMAGE = &H0172
883Const STM_GETIMAGE = &H0173
884Const STN_CLICKED = 0
885Const STN_DBLCLK = 1
886Const STN_ENABLE = 2
887Const STN_DISABLE = 3
888Const STM_MSGMAX = &H0174
889
890
891'--------------------------
892' ListBox Control Mesages
893'--------------------------
894Const LB_ADDSTRING = &H0180
895Const LB_INSERTSTRING = &H0181
896Const LB_DELETESTRING = &H0182
897Const LB_SELITEMRANGEEX = &H0183
898Const LB_RESETCONTENT = &H0184
899Const LB_SETSEL = &H0185
900Const LB_SETCURSEL = &H0186
901Const LB_GETSEL = &H0187
902Const LB_GETCURSEL = &H0188
903Const LB_GETTEXT = &H0189
904Const LB_GETTEXTLEN = &H018A
905Const LB_GETCOUNT = &H018B
906Const LB_SELECTSTRING = &H018C
907Const LB_DIR = &H018D
908Const LB_GETTOPINDEX = &H018E
909Const LB_FINDSTRING = &H018F
910Const LB_GETSELCOUNT = &H0190
911Const LB_GETSELITEMS = &H0191
912Const LB_SETTABSTOPS = &H0192
913Const LB_GETHORIZONTALEXTENT = &H0193
914Const LB_SETHORIZONTALEXTENT = &H0194
915Const LB_SETCOLUMNWIDTH = &H0195
916Const LB_ADDFILE = &H0196
917Const LB_SETTOPINDEX = &H0197
918Const LB_GETITEMRECT = &H0198
919Const LB_GETITEMDATA = &H0199
920Const LB_SETITEMDATA = &H019A
921Const LB_SELITEMRANGE = &H019B
922Const LB_SETANCHORINDEX = &H019C
923Const LB_GETANCHORINDEX = &H019D
924Const LB_SETCARETINDEX = &H019E
925Const LB_GETCARETINDEX = &H019F
926Const LB_SETITEMHEIGHT = &H01A0
927Const LB_GETITEMHEIGHT = &H01A1
928Const LB_FINDSTRINGEXACT = &H01A2
929Const LB_SETLOCALE = &H01A5
930Const LB_GETLOCALE = &H01A6
931Const LB_SETCOUNT = &H01A7
932Const LB_INITSTORAGE = &H01A8
933Const LB_ITEMFROMPOINT = &H01A9
934
935Const LBN_ERRSPACE = -2
936Const LBN_SELCHANGE = 1
937Const LBN_DBLCLK = 2
938Const LBN_SELCANCEL = 3
939Const LBN_SETFOCUS = 4
940Const LBN_KILLFOCUS = 5
941
942Const LB_ERR = -1
943Const LB_ERRSPACE = -2
944
945
946'---------------------------
947' ComboBox Control Mesages
948'---------------------------
949Const CB_GETEDITSEL = &H0140
950Const CB_LIMITTEXT = &H0141
951Const CB_SETEDITSEL = &H0142
952Const CB_ADDSTRING = &H0143
953Const CB_DELETESTRING = &H0144
954Const CB_DIR = &H0145
955Const CB_GETCOUNT = &H0146
956Const CB_GETCURSEL = &H0147
957Const CB_GETLBTEXT = &H0148
958Const CB_GETLBTEXTLEN = &H0149
959Const CB_INSERTSTRING = &H014A
960Const CB_RESETCONTENT = &H014B
961Const CB_FINDSTRING = &H014C
962Const CB_SELECTSTRING = &H014D
963Const CB_SETCURSEL = &H014E
964Const CB_SHOWDROPDOWN = &H014F
965Const CB_GETITEMDATA = &H0150
966Const CB_SETITEMDATA = &H0151
967Const CB_GETDROPPEDCONTROLRECT = &H0152
968Const CB_SETITEMHEIGHT = &H0153
969Const CB_GETITEMHEIGHT = &H0154
970Const CB_SETEXTENDEDUI = &H0155
971Const CB_GETEXTENDEDUI = &H0156
972Const CB_GETDROPPEDSTATE = &H0157
973Const CB_FINDSTRINGEXACT = &H0158
974Const CB_SETLOCALE = &H0159
975Const CB_GETLOCALE = &H015A
976Const CB_GETTOPINDEX = &H015B
977Const CB_SETTOPINDEX = &H015C
978Const CB_GETHORIZONTALEXTENT = &H015D
979Const CB_SETHORIZONTALEXTENT = &H015E
980Const CB_GETDROPPEDWIDTH = &H015F
981Const CB_SETDROPPEDWIDTH = &H0160
982Const CB_INITSTORAGE = &H0161
983Const CB_MSGMAX = &H0162
984
985Const CBN_ERRSPACE = -1
986Const CBN_SELCHANGE = 1
987Const CBN_DBLCLK = 2
988Const CBN_SETFOCUS = 3
989Const CBN_KILLFOCUS = 4
990Const CBN_EDITCHANGE = 5
991Const CBN_EDITUPDATE = 6
992Const CBN_DROPDOWN = 7
993Const CBN_CLOSEUP = 8
994Const CBN_SELENDOK = 9
995Const CBN_SELENDCANCEL = 10
996
997
998#endif '_INC_MSG
Note: See TracBrowser for help on using the repository browser.