source: trunk/ab5.0/ablib/src/api_msg.sbp @ 560

Last change on this file since 560 was 497, checked in by イグトランス (egtra), 15 years ago

インクルードガードとその他不要な前処理定義などの削除

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