source: Include/api_window.sbp@ 150

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

#50 API宣言の変更完了

File size: 56.2 KB
Line 
1' api_window.sbp - Window Control API
2
3
4#ifndef _INC_WINDOW
5#define _INC_WINDOW
6
7'-------------
8' Window API Function Names
9#ifdef UNICODE
10Const _FuncName_CreateWindowEx = "CreateWindowExW"
11Const _FuncName_CallWindowProc = "CallWindowProcW"
12Const _FuncName_CharLower = "CharLowerW"
13Const _FuncName_CharUpper = "CharUpperW"
14Const _FuncName_DefWindowProc = "DefWindowProcW"
15Const _FuncName_DispatchMessage = "DispatchMessageW"
16Const _FuncName_DrawText = "DrawTextW"
17Const _FuncName_DrawTextEx = "DrawTextExW"
18Const _FuncName_FindWindow = "FindWindowW"
19Const _FuncName_FindWindowEx = "FindWindowExW"
20Const _FuncName_GetClassInfoEx = "GetClassInfoExW"
21Const _FuncName_GetClassLong = "GetClassLongW"
22Const _FuncName_GetClassLongPtr = "GetClassLongPtrW"
23Const _FuncName_GetClassName = "GetClassNameW"
24Const _FuncName_GetClipboardFormatName = "GetClipboardFormatNameW"
25Const _FuncName_GetDlgItemText = "GetDlgItemTextW"
26Const _FuncName_GetMenuItemInfo = "GetMenuItemInfoW"
27Const _FuncName_GetMessage = "GetMessageW"
28Const _FuncName_GetProp = "GetPropW"
29Const _FuncName_GetWindowLong = "GetWindowLongW"
30Const _FuncName_GetWindowLongPtr = "GetWindowLongPtrW"
31Const _FuncName_GetWindowText = "GetWindowTextW"
32Const _FuncName_GetWindowTextLength = "GetWindowTextLengthW"
33Const _FuncName_InsertMenuItem = "InsertMenuItemW"
34Const _FuncName_IsCharAlpha = "IsCharAlphaW"
35Const _FuncName_IsCharAlphaNumeric = "IsCharAlphaNumericW"
36Const _FuncName_IsCharLower = "IsCharLowerW"
37Const _FuncName_IsCharUpper = "IsCharUpperW"
38Const _FuncName_IsDialogMessage = "IsDialogMessageW"
39Const _FuncName_LoadBitmap = "LoadBitmapW"
40Const _FuncName_LoadCursor = "LoadCursorW"
41Const _FuncName_LoadCursorFromFile = "LoadCursorFromFileW"
42Const _FuncName_LoadIcon = "LoadIconW"
43Const _FuncName_LoadImage = "LoadImageW"
44Const _FuncName_PeekMessage = "PeekMessageW"
45Const _FuncName_PostMessage = "PostMessageW"
46Const _FuncName_PostThreadMessage = "PostThreadMessageW"
47Const _FuncName_RegisterClassEx = "RegisterClassExW"
48Const _FuncName_RegisterClipboardFormat = "RegisterClipboardFormatW"
49Const _FuncName_RegisterWindowMessage = "RegisterWindowMessageW"
50Const _FuncName_RemoveProp = "RemovePropW"
51Const _FuncName_SendDlgItemMessage = "SendDlgItemMessageW"
52Const _FuncName_SendMessage = "SendMessageW"
53Const _FuncName_SendNotifyMessage = "SendNotifyMessageW"
54Const _FuncName_SetDlgItemText = "SetDlgItemTextW"
55Const _FuncName_SetClassLong = "SetClassLongW"
56Const _FuncName_SetClassLong = "SetClassLongW"
57Const _FuncName_SetMenuItemInfo = "SetMenuItemInfoW"
58Const _FuncName_SetProp = "SetPropW"
59Const _FuncName_SetWindowLong = "SetWindowLongW"
60Const _FuncName_SetWindowLongPtr = "SetWindowLongPtrW"
61Const _FuncName_SetWindowText = "SetWindowTextW"
62Const _FuncName_SystemParametersInfo = "SystemParametersInfoW"
63Const _FuncName_UnregisterClass = "UnregisterClassW"
64Const _FuncName_wsprintf = "wsprintfW"
65Const _FuncName_wvsprintf = "wvsprintfW"
66#else
67Const _FuncName_CreateWindowEx = "CreateWindowExA"
68Const _FuncName_CallWindowProc = "CallWindowProcA"
69Const _FuncName_CharLower = "CharLowerA"
70Const _FuncName_CharUpper = "CharUpperA"
71Const _FuncName_DefWindowProc = "DefWindowProcA"
72Const _FuncName_DispatchMessage = "DispatchMessageA"
73Const _FuncName_DrawText = "DrawTextA"
74Const _FuncName_DrawTextEx = "DrawTextExA"
75Const _FuncName_FindWindow = "FindWindowA"
76Const _FuncName_FindWindowEx = "FindWindowExA"
77Const _FuncName_GetClassInfoEx = "GetClassInfoExA"
78Const _FuncName_GetClassLong = "GetClassLongA"
79Const _FuncName_GetClassLongPtr = "GetClassLongPtrA"
80Const _FuncName_GetClassName = "GetClassNameA"
81Const _FuncName_GetClipboardFormatName = "GetClipboardFormatNameA"
82Const _FuncName_GetDlgItemText = "GetDlgItemTextA"
83Const _FuncName_GetMenuItemInfo = "GetMenuItemInfoA"
84Const _FuncName_GetMessage = "GetMessageA"
85Const _FuncName_GetProp = "GetPropA"
86Const _FuncName_GetWindowLong = "GetWindowLongA"
87Const _FuncName_GetWindowLongPtr = "GetWindowLongPtrA"
88Const _FuncName_GetWindowText = "GetWindowTextA"
89Const _FuncName_GetWindowTextLength = "GetWindowTextLengthA"
90Const _FuncName_InsertMenuItem = "InsertMenuItemA"
91Const _FuncName_IsCharAlpha = "IsCharAlphaA"
92Const _FuncName_IsCharAlphaNumeric = "IsCharAlphaNumericA"
93Const _FuncName_IsCharLower = "IsCharLowerA"
94Const _FuncName_IsCharUpper = "IsCharUpperA"
95Const _FuncName_IsDialogMessage = "IsDialogMessageA"
96Const _FuncName_LoadBitmap = "LoadBitmapA"
97Const _FuncName_LoadCursor = "LoadCursorA"
98Const _FuncName_LoadCursorFromFile = "LoadCursorFromFileA"
99Const _FuncName_LoadIcon = "LoadIconA"
100Const _FuncName_LoadImage = "LoadImageA"
101Const _FuncName_PeekMessage = "PeekMessageA"
102Const _FuncName_PostMessage = "PostMessageA"
103Const _FuncName_PostThreadMessage = "PostThreadMessageA"
104Const _FuncName_RegisterClassEx = "RegisterClassExA"
105Const _FuncName_RegisterClipboardFormat = "RegisterClipboardFormatA"
106Const _FuncName_RegisterWindowMessage = "RegisterWindowMessageA"
107Const _FuncName_RemoveProp = "RemovePropA"
108Const _FuncName_SendDlgItemMessage = "SendDlgItemMessageA"
109Const _FuncName_SendMessage = "SendMessageA"
110Const _FuncName_SendNotifyMessage = "SendNotifyMessageA"
111Const _FuncName_SetDlgItemText = "SetDlgItemTextA"
112Const _FuncName_SetClassLong = "SetClassLongA"
113Const _FuncName_SetClassLongPtr = "SetClassLongPtrA"
114Const _FuncName_SetMenuItemInfo = "SetMenuItemInfoA"
115Const _FuncName_SetProp = "SetPropA"
116Const _FuncName_SetWindowLong = "SetWindowLongA"
117Const _FuncName_SetWindowLongPtr = "SetWindowLongPtrA"
118Const _FuncName_SetWindowText = "SetWindowTextA"
119Const _FuncName_SystemParametersInfo = "SystemParametersInfoA"
120Const _FuncName_UnregisterClass = "UnregisterClassA"
121Const _FuncName_wsprintf = "wsprintfA"
122Const _FuncName_wvsprintf = "wvsprintfA"
123#endif
124
125Const CREATEPROCESS_MANIFEST_RESOURCE_ID = 1
126
127
128Type MSG
129 hwnd As HWND
130 message As DWord
131 wParam As WPARAM
132 lParam As LPARAM
133 time As DWord
134 pt As POINTAPI
135End Type
136
137
138Const MAKEINTRESOURCEW(i) = i As PCWSTR
139Const MAKEINTRESOURCEA(i) = i As PCSTR
140Const MAKEINTRESOURCE(i) = i As PCTSTR
141
142TypeDef WNDENUMPROC = *Function(ByVal hwnd As HWND, ByVal lParam As LPARAM) As BOOL
143
144Const CS_VREDRAW = &H0001
145Const CS_HREDRAW = &H0002
146Const CS_DBLCLKS = &H0008
147Const CS_OWNDC = &H0020
148Const CS_CLASSDC = &H0040
149Const CS_PARENTDC = &H0080
150Const CS_NOCLOSE = &H0200
151Const CS_SAVEBITS = &H0800
152Const CS_BYTEALIGNCLIENT = &H1000
153Const CS_BYTEALIGNWINDOW = &H2000
154Const CS_GLOBALCLASS = &H4000
155Type WNDCLASSEXA
156 cbSize As DWord
157 style As DWord
158 lpfnWndProc As WNDPROC
159 cbClsExtra As Long
160 cbWndExtra As Long
161 hInstance As HINSTANCE
162 hIcon As HICON
163 hCursor As HCURSOR
164 hbrBackground As HBRUSH
165 lpszMenuName As LPCSTR
166 lpszClassName As LPCSTR
167 hIconSm As HICON
168End Type
169Type WNDCLASSEXW
170 cbSize As DWord
171 style As DWord
172 lpfnWndProc As WNDPROC
173 cbClsExtra As Long
174 cbWndExtra As Long
175 hInstance As HINSTANCE
176 hIcon As HICON
177 hCursor As HCURSOR
178 hbrBackground As HBRUSH
179 lpszMenuName As LPCWSTR
180 lpszClassName As LPCWSTR
181 hIconSm As HICON
182End Type
183#ifdef UNICODE
184TypeDef WNDCLASSEX = WNDCLASSEXW
185#else
186TypeDef WNDCLASSEX = WNDCLASSEXA
187#endif
188
189'------------------------
190' Dialog Box Command IDs
191Const IDOK = 1
192Const IDCANCEL = 2
193Const IDABORT = 3
194Const IDRETRY = 4
195Const IDIGNORE = 5
196Const IDYES = 6
197Const IDNO = 7
198Const IDCLOSE = 8
199Const IDHELP = 9
200
201
202'------------------------
203' Menu flags and structs
204Const MF_INSERT = &H00000000
205Const MF_CHANGE = &H00000080
206Const MF_APPEND = &H00000100
207Const MF_DELETE = &H00000200
208Const MF_REMOVE = &H00001000
209Const MF_BYCOMMAND = &H00000000
210Const MF_BYPOSITION = &H00000400
211Const MF_SEPARATOR = &H00000800
212Const MF_ENABLED = &H00000000
213Const MF_GRAYED = &H00000001
214Const MF_DISABLED = &H00000002
215Const MF_UNCHECKED = &H00000000
216Const MF_CHECKED = &H00000008
217Const MF_USECHECKBITMAPS = &H00000200
218Const MF_STRING = &H00000000
219Const MF_BITMAP = &H00000004
220Const MF_OWNERDRAW = &H00000100
221Const MF_POPUP = &H00000010
222Const MF_MENUBARBREAK = &H00000020
223Const MF_MENUBREAK = &H00000040
224Const MF_UNHILITE = &H00000000
225Const MF_HILITE = &H00000080
226Const MF_DEFAULT = &H00001000
227Const MF_SYSMENU = &H00002000
228Const MF_HELP = &H00004000
229Const MF_RIGHTJUSTIFY = &H00004000
230Const MF_MOUSESELECT = &H00008000
231
232Const MFS_GRAYED = &H00000003
233Const MFS_DISABLED = MFS_GRAYED
234Const MFS_CHECKED = MF_CHECKED
235Const MFS_HILITE = MF_HILITE
236Const MFS_ENABLED = MF_ENABLED
237Const MFS_UNCHECKED = MF_UNCHECKED
238Const MFS_UNHILITE = MF_UNHILITE
239Const MFS_DEFAULT = MF_DEFAULT
240Const MFS_MASK = &H0000108B
241Const MFS_HOTTRACKDRAWN = &H10000000
242Const MFS_CACHEDBMP = &H20000000
243Const MFS_BOTTOMGAPDROP = &H40000000
244Const MFS_TOPGAPDROP = &H80000000
245Const MFS_GAPDROP = &HC0000000
246
247Const MIIM_STATE = &H00000001
248Const MIIM_ID = &H00000002
249Const MIIM_SUBMENU = &H00000004
250Const MIIM_CHECKMARKS = &H00000008
251Const MIIM_TYPE = &H00000010
252Const MIIM_DATA = &H00000020
253Const MIIM_STRING = &H00000040
254Const MIIM_BITMAP = &H00000080
255Const MIIM_FTYPE = &H00000100
256Const MFT_STRING = MF_STRING
257Const MFT_BITMAP = MF_BITMAP
258Const MFT_MENUBARBREAK = MF_MENUBARBREAK
259Const MFT_MENUBREAK = MF_MENUBREAK
260Const MFT_OWNERDRAW = MF_OWNERDRAW
261Const MFT_RADIOCHECK = &H00000200
262Const MFT_SEPARATOR = MF_SEPARATOR
263Const MFT_RIGHTORDER = &H00002000
264Const MFT_RIGHTJUSTIFY = MF_RIGHTJUSTIFY
265
266Type MENUITEMINFOW
267 cbSize As DWord
268 fMask As DWord
269 fType As DWord
270 fState As DWord
271 wID As DWord
272 hSubMenu As HMENU
273 hbmpChecked As HBITMAP
274 hbmpUnchecked As HBITMAP
275 dwItemData As ULONG_PTR
276 dwTypeData As LPWSTR
277 cch As DWord
278End Type
279Type MENUITEMINFOA
280 cbSize As DWord
281 fMask As DWord
282 fType As DWord
283 fState As DWord
284 wID As DWord
285 hSubMenu As HMENU
286 hbmpChecked As HBITMAP
287 hbmpUnchecked As HBITMAP
288 dwItemData As ULONG_PTR
289 dwTypeData As LPSTR
290 cch As DWord
291End Type
292#ifdef UNICODE
293TypeDef MENUITEMINFO = MENUITEMINFOW
294#else
295TypeDef MENUITEMINFO = MENUITEMINFOA
296#endif
297
298'------------
299' Scroll Bar
300Const SB_HORZ = 0
301Const SB_VERT = 1
302Const SB_CTL = 2
303Const SB_BOTH = 3
304
305' SCROLLINFO struct
306Const SIF_RANGE = &H0001
307Const SIF_PAGE = &H0002
308Const SIF_POS = &H0004
309Const SIF_DISABLENOSCROLL = &H0008
310Const SIF_TRACKPOS = &H0010
311Const SIF_ALL = SIF_RANGE or SIF_PAGE or SIF_POS or SIF_TRACKPOS
312Type SCROLLINFO
313 cbSize As DWord
314 fMask As DWord
315 nMin As Long
316 nMax As Long
317 nPage As DWord
318 nPos As Long
319 nTrackPos As Long
320End Type
321
322
323' combo box
324Const CB_ERR = -1
325Const CB_ERRSPACE = -2
326
327
328' Clipboard Formats
329Const CF_TEXT = 1
330Const CF_BITMAP = 2
331Const CF_METAFILEPICT = 3
332Const CF_SYLK = 4
333Const CF_DIF = 5
334Const CF_TIFF = 6
335Const CF_OEMTEXT = 7
336Const CF_DIB = 8
337Const CF_PALETTE = 9
338Const CF_PENDATA = 10
339Const CF_RIFF = 11
340Const CF_WAVE = 12
341Const CF_UNICODETEXT = 13
342Const CF_ENHMETAFILE = 14
343Const CF_HDROP = 15
344Const CF_LOCALE = 16
345Const CF_MAX = 17
346Const CF_OWNERDISPLAY = &H0080
347Const CF_DSPTEXT = &H0081
348Const CF_DSPBITMAP = &H0082
349Const CF_DSPMETAFILEPICT = &H0083
350Const CF_DSPENHMETAFILE = &H008E
351Const CF_PRIVATEFIRST = &H0200
352Const CF_PRIVATELAST = &H02FF
353Const CF_GDIOBJFIRST = &H0300
354Const CF_GDIOBJLAST = &H03FF
355
356'-------------
357' Window API
358
359Declare Function AdjustWindowRect Lib "user32" (ByRef Rect As RECT, dwStyle As DWord, bMenu As BOOL) As BOOL
360Declare Function AdjustWindowRectEx Lib "user32" (ByRef Rect As RECT, dwStyle As DWord, bMenu As BOOL, dwExStyle As DWord) As BOOL
361Declare Function AnyPopup Lib "user32" () As BOOL
362Declare Function ArrangeIconicWindows Lib "user32" (hWnd As HWND) As DWord
363
364Type PAINTSTRUCT
365 hdc As HDC
366 fErase As BOOL
367 rcPaint As RECT
368 fRestore As BOOL
369 fIncUpdate As BOOL
370 rgbReserved[ELM(32)] As Byte
371End Type
372Declare Function BeginPaint Lib "user32" (hWnd As HWND, ByRef Paint As PAINTSTRUCT) As HDC
373
374Declare Function BringWindowToTop Lib "user32" (hWnd As HWND) As Long
375Declare Function CallWindowProc Lib "user32" Alias _FuncName_CallWindowProc (lpPrevWndFunc As WNDPROC, hWnd As HWND, Msg As DWord, wParam As WPARAM, lParam As LPARAM) As LRESULT
376Declare Function CharLower Lib "user32" Alias _FuncName_CharLower (psz As PTSTR) As DWord
377Declare Function CharUpper Lib "user32" Alias _FuncName_CharUpper (psz As PTSTR) As DWord
378Declare Function CheckMenuItem Lib "user32" (hMenu As HMENU, uIDCheckItem As DWord, uCheck As DWord) As DWord
379Declare Function CheckMenuRadioItem Lib "user32" (hMenu As HMENU, idFirst As DWord, idLast As DWord, idCheck As DWord, uFlags As DWord) As BOOL
380Declare Function ChildWindowFromPoint Lib "user32" (hWndParent As HWND, x As Long, y As Long) As HWND
381
382Const CWP_ALL = &H0000
383Const CWP_SKIPINVISIBLE = &H0001
384Const CWP_SKIPDISABLED = &H0002
385Const CWP_SKIPTRANSPARENT = &H0004
386Declare Function ChildWindowFromPointEx Lib "user32" (hWndParent As HWND, x As Long, y As Long, uFlags As DWord) As HWND
387
388Declare Function ClientToScreen Lib "user32" (hWnd As HWND, ByRef lpPoint As POINTAPI) As BOOL
389Declare Function ClipCursor Lib "user32" (ByRef lpRect As RECT) As BOOL
390Declare Function CloseClipboard Lib "user32" () As BOOL
391Declare Function CloseWindow Lib "user32" (hWnd As HWND) As BOOL
392Declare Function CopyImage Lib "user32" (hImage As HANDLE, uType As DWord, cxDesired As Long, cyDesired As Long, fuFlags As DWord) As HANDLE
393Declare Function CountClipboardFormats Lib "user32" () As Long
394Declare Function CreateCaret Lib "user32" (hWnd As HWND, hBitmap As HBITMAP, nWidth As Long, nHeight As Long) As BOOL
395Declare Function CreateCursor Lib "user32" (hInst As HINSTANCE, xHotSpot As Long, yHotSpot As Long, nWidth As Long, nHeight As Long, pvANDPlane As VoidPtr, pvXORPlane As VoidPtr) As HCURSOR
396Declare Function CreateIcon Lib "user32" (hInst As HINSTANCE, nWidth As Long, nHeight As Long, cPlanes As Byte, cBitsPixel As Byte, lpbANDbits As VoidPtr, lpbXORbits As VoidPtr) As HICON
397
398Type ICONINFO
399 fIcon As BOOL
400 xHotspot As DWord
401 yHotspot As DWord
402 hbmMask As HBITMAP
403 hbmColor As HBITMAP
404End Type
405Declare Function CreateIconIndirect Lib "user32" (ByRef pIconInfo As ICONINFO) As HICON
406
407Declare Function CreateMenu Lib "user32" () As HMENU
408Declare Function CreatePopupMenu Lib "user32" () As HMENU
409
410Const CW_USEDEFAULT = &H80000000
411Declare Function CreateWindowEx Lib "user32" Alias _FuncName_CreateWindowEx (dwExStyle As DWord, pClassName As PCTSTR, lpWindowName As PCTSTR, dwStyle As DWord, x As Long, y As Long, nWidth As Long, nHeight As Long, hwndParent As HWND, hmenu As HMENU, hInstance As HINSTANCE, pParm As VoidPtr) As HWND
412
413Declare Function DefWindowProc Lib "user32" Alias _FuncName_DefWindowProc (hWnd As HWND, wMsg As DWord, wParam As WPARAM, lParam As LPARAM) As LRESULT
414Declare Function DeleteMenu Lib "user32" (hMenu As HMENU, uPosition As DWord, uFlags As DWord) As BOOL
415Declare Function DestroyCaret Lib "user32" () As BOOL
416Declare Function DestroyCursor Lib "user32" (hCursor As HCURSOR) As BOOL
417Declare Function DestroyIcon Lib "user32" (hIcon As HICON) As BOOL
418Declare Function DestroyMenu Lib "user32" (hMenu As HMENU) As BOOL
419Declare Function DestroyWindow Lib "user32" (hWnd As HWND) As BOOL
420Declare Function DispatchMessage Lib "user32" Alias _FuncName_DispatchMessage (ByRef Msg As MSG) As LRESULT
421
422Const BDR_RAISEDOUTER = &H0001
423Const BDR_SUNKENOUTER = &H0002
424Const BDR_RAISEDINNER = &H0004
425Const BDR_SUNKENINNER = &H0008
426Const BDR_OUTER = &H0003
427Const BDR_INNER = &H000c
428Const EDGE_RAISED = BDR_RAISEDOUTER or BDR_RAISEDINNER
429Const EDGE_SUNKEN = BDR_SUNKENOUTER or BDR_SUNKENINNER
430Const EDGE_ETCHED = BDR_SUNKENOUTER or BDR_RAISEDINNER
431Const EDGE_BUMP = BDR_RAISEDOUTER or BDR_SUNKENINNER
432Const BF_LEFT = &H0001
433Const BF_TOP = &H0002
434Const BF_RIGHT = &H0004
435Const BF_BOTTOM = &H0008
436Const BF_TOPLEFT = BF_TOP or BF_LEFT
437Const BF_TOPRIGHT = BF_TOP or BF_RIGHT
438Const BF_BOTTOMLEFT = BF_BOTTOM or BF_LEFT
439Const BF_BOTTOMRIGHT = BF_BOTTOM or BF_RIGHT
440Const BF_RECT = BF_LEFT or BF_TOP or BF_RIGHT or BF_BOTTOM
441Const BF_DIAGONAL = &H0010
442Const BF_DIAGONAL_ENDTOPRIGHT = BF_DIAGONAL or BF_TOP or BF_RIGHT
443Const BF_DIAGONAL_ENDTOPLEFT = BF_DIAGONAL or BF_TOP or BF_LEFT
444Const BF_DIAGONAL_ENDBOTTOMLEFT = BF_DIAGONAL or BF_BOTTOM or BF_LEFT
445Const BF_DIAGONAL_ENDBOTTOMRIGHT = BF_DIAGONAL or BF_BOTTOM or BF_RIGHT
446Const BF_MIDDLE = &H0800
447Const BF_SOFT = &H1000
448Const BF_ADJUST = &H2000
449Const BF_FLAT = &H4000
450Const BF_MONO = &H8000
451Declare Function DrawEdge Lib "user32" (hdc As HDC, ByRef lpRect As RECT, edge As DWord, grfFlags As DWord) As BOOL
452
453Const DFC_CAPTION = 1
454Const DFC_MENU = 2
455Const DFC_SCROLL = 3
456Const DFC_BUTTON = 4
457Const DFC_POPUPMENU = 5
458Const DFCS_CAPTIONCLOSE = &H0000
459Const DFCS_CAPTIONMIN = &H0001
460Const DFCS_CAPTIONMAX = &H0002
461Const DFCS_CAPTIONRESTORE = &H0003
462Const DFCS_CAPTIONHELP = &H0004
463Const DFCS_MENUARROW = &H0000
464Const DFCS_MENUCHECK = &H0001
465Const DFCS_MENUBULLET = &H0002
466Const DFCS_MENUARROWRIGHT = &H0004
467Const DFCS_SCROLLUP = &H0000
468Const DFCS_SCROLLDOWN = &H0001
469Const DFCS_SCROLLLEFT = &H0002
470Const DFCS_SCROLLRIGHT = &H0003
471Const DFCS_SCROLLCOMBOBOX = &H0005
472Const DFCS_SCROLLSIZEGRIP = &H0008
473Const DFCS_SCROLLSIZEGRIPRIGHT = &H0010
474Const DFCS_BUTTONCHECK = &H0000
475Const DFCS_BUTTONRADIOIMAGE = &H0001
476Const DFCS_BUTTONRADIOMASK = &H0002
477Const DFCS_BUTTONRADIO = &H0004
478Const DFCS_BUTTON3STATE = &H0008
479Const DFCS_BUTTONPUSH = &H0010
480Const DFCS_INACTIVE = &H0100
481Const DFCS_PUSHED = &H0200
482Const DFCS_CHECKED = &H0400
483Const DFCS_TRANSPARENT = &H0800
484Const DFCS_HOT = &H1000
485Const DFCS_ADJUSTRECT = &H2000
486Const DFCS_FLAT = &H4000
487Const DFCS_MONO = &H8000
488Declare Function DrawFrameControl Lib "user32" (hdc As HDC, ByRef lpRect As RECT, uType As DWord, uState As DWord) As BOOL
489
490Declare Function DrawIcon Lib "user32" (hdc As HDC, x As Long, y As Long, hIcon As HICON) As BOOL
491
492Const DI_MASK = &H0001
493Const DI_IMAGE = &H0002
494Const DI_NORMAL = &H0003
495Const DI_COMPAT = &H0004
496Const DI_DEFAULTSIZE = &H0008
497Declare Function DrawIconEx Lib "user32" (hdc As HDC, xLeft As Long, yTop As Long, hIcon As HICON, cxWidth As Long, cyWidth As Long, istepIfAniCur As DWord, hbrFlickerFreeDraw As HBRUSH, diFlags As DWord) As BOOL
498
499Declare Function DrawMenuBar Lib "user32" (hwnd As HWND) As BOOL
500
501Const DT_TOP = &H00000000
502Const DT_LEFT = &H00000000
503Const DT_CENTER = &H00000001
504Const DT_RIGHT = &H00000002
505Const DT_VCENTER = &H00000004
506Const DT_BOTTOM = &H00000008
507Const DT_WORDBREAK = &H00000010
508Const DT_SINGLELINE = &H00000020
509Const DT_EXPANDTABS = &H00000040
510Const DT_TABSTOP = &H00000080
511Const DT_NOCLIP = &H00000100
512Const DT_EXTERNALLEADING =&H00000200
513Const DT_CALCRECT = &H00000400
514Const DT_NOPREFIX = &H00000800
515Const DT_INTERNAL = &H00001000
516Const DT_EDITCONTROL = &H00002000
517Const DT_PATH_ELLIPSIS = &H00004000
518Const DT_END_ELLIPSIS = &H00008000
519Const DT_MODIFYSTRING = &H00010000
520Const DT_RTLREADING = &H00020000
521Const DT_WORD_ELLIPSIS = &H00040000
522Declare Function DrawText Lib "user32" Alias _FuncName_DrawText (hdc As HDC, lpStr As PCTSTR, nCount As Long, ByRef Rect As RECT, dwFormat As DWord) As BOOL
523
524Type DRAWTEXTPARAMS
525 cbSize As DWord
526 iTabLength As Long
527 iLeftMargin As Long
528 iRightMargin As Long
529 uiLengthDrawn As DWord
530End Type
531Declare Function DrawTextEx Lib "user32" Alias _FuncName_DrawTextEx (hdc As HDC, pchText As PCTSTR, cchText As Long, ByRef Rect As RECT, dwDTFormat As DWord, ByRef DTParams As DRAWTEXTPARAMS) As BOOL
532
533Declare Function EmptyClipboard Lib "user32" () As BOOL
534Declare Function EnableMenuItem Lib "user32" (hMenu As HMENU, uIDEnableItem As DWord, uEnable As DWord) As BOOL
535
536Const ESB_ENABLE_BOTH = &H0000
537Const ESB_DISABLE_BOTH = &H0003
538Const ESB_DISABLE_LEFT = &H0001
539Const ESB_DISABLE_RIGHT = &H0002
540Const ESB_DISABLE_UP = &H0001
541Const ESB_DISABLE_DOWN = &H0002
542Const ESB_DISABLE_LTUP = ESB_DISABLE_LEFT
543Const ESB_DISABLE_RTDN = ESB_DISABLE_RIGHT
544Declare Function EnableScrollBar Lib "user32" (hWnd As HWND, dwSBflags As DWord, dwArrows As DWord) As BOOL
545
546Declare Function EnableWindow Lib "user32" (hWnd As HWND, bEnable As BOOL) As BOOL
547Declare Function EndPaint Lib "user32" (hWnd As HWND, ByRef lpPaint As PAINTSTRUCT) As BOOL
548Declare Function EnumClipboardFormats Lib "user32" (uFormat As DWord) As DWord
549Declare Function EnumChildWindows Lib "user32" (hwndParent As HWND, pEnumFunc As WNDENUMPROC, lParam As LPARAM) As BOOL
550Declare Function EnumThreadWindows Lib "user32" (dwThreadId As DWord, pEnumFunc As WNDENUMPROC, lParam As LPARAM) As BOOL
551Declare Function EnumWindows Lib "user32" (pEnumFunc As WNDENUMPROC, lParam As LPARAM) As BOOL
552Declare Function FillRect Lib "user32" (hdc As HDC, ByRef lpRect As RECT, hBrush As HBRUSH) As BOOL
553Declare Function FindWindow Lib "user32" Alias _FuncName_FindWindow (pClassName As PCTSTR, lpWindowName As PCTSTR) As HWND
554Declare Function FindWindowEx Lib "user32" Alias _FuncName_FindWindowEx (hwndParent As HWND, hwndChildAfter As HWND, pszClass As PCTSTR, pszWindow As PCTSTR) As HWND
555Declare Function FlashWindow Lib "user32" (hWnd As HWND, bInvert As BOOL) As BOOL
556Declare Function FrameRect Lib "user32" (hdc As HDC, ByRef lpRect As RECT, hBrush As HBRUSH) As Long
557Declare Function GetActiveWindow Lib "user32" () As HWND
558Declare Function GetAsyncKeyState Lib "user32" (vKey As Long) As Integer
559Declare Function GetCapture Lib "user32" () As HWND
560Declare Function GetCaretPos Lib "user32" (ByRef lpPoint As POINTAPI) As BOOL
561Declare Function GetClassInfoEx Lib "user32" Alias _FuncName_GetClassInfoEx (hInst As HINSTANCE, pszClass As PCTSTR, ByRef lpwcx As WNDCLASSEX) As BOOL
562
563Const GCL_MENUNAME = -8
564Const GCL_HBRBACKGROUND = -10
565Const GCL_HCURSOR = -12
566Const GCL_HICON = -14
567Const GCL_HMODULE = -16
568Const GCL_CBWNDEXTRA = -18
569Const GCL_CBCLSEXTRA = -20
570Const GCL_WNDPROC = -24
571Const GCL_STYLE = -26
572Const GCW_ATOM = -32
573Const GCL_HICONSM = -34
574#ifdef _WIN64
575Declare Function GetClassLong Lib "user32" Alias _FuncName_GetClassLongPtr (hWnd As HWND, nIndex As Long) As LONG_PTR
576Declare Function GetClassLongPtr Lib "user32" Alias _FuncName_GetClassLongPtr (hWnd As HWND, nIndex As Long) As LONG_PTR
577#else
578Declare Function GetClassLong Lib "user32" Alias _FuncName_GetClassLong (hWnd As HWND, nIndex As Long) As LONG_PTR
579Declare Function GetClassLongPtr Lib "user32" Alias _FuncName_GetClassLong (hWnd As HWND, nIndex As Long) As LONG_PTR
580#endif
581
582Declare Function GetClassName Lib "user32" Alias _FuncName_GetClassName (hWnd As HWND, lpClassName As PTSTR, nMaxCount As Long) As Long
583Declare Function GetClientRect Lib "user32" (hWnd As HWND, ByRef lpRect As RECT) As BOOL
584Declare Function GetClipboardData Lib "user32" (uFormat As DWord) As HANDLE
585Declare Function GetClipboardFormatName Lib "user32" Alias _FuncName_GetClipboardFormatName (uFormat As DWord, pszFormatName As PTSTR, cchMaxCount As Long) As BOOL
586Declare Function GetClipCursor Lib "user32" (ByRef lpRect As RECT) As BOOL
587Declare Function GetCursor Lib "user32" () As HCURSOR
588Declare Function GetCursorPos Lib "user32" (ByRef lpPoint As POINTAPI) As BOOL
589Declare Function GetDC Lib "user32" (hWnd As HWND) As HDC
590
591Const DCX_WINDOW = &H00000001
592Const DCX_CACHE = &H00000002
593Const DCX_NORESETATTRS = &H00000004
594Const DCX_CLIPCHILDREN = &H00000008
595Const DCX_CLIPSIBLINGS = &H00000010
596Const DCX_PARENTCLIP = &H00000020
597Const DCX_EXCLUDERGN = &H00000040
598Const DCX_INTERSECTRGN = &H00000080
599Const DCX_EXCLUDEUPDATE = &H00000100
600Const DCX_INTERSECTUPDATE = &H00000200
601Const DCX_LOCKWINDOWUPDATE = &H00000400
602Const DCX_VALIDATE = &H00200000
603Declare Function GetDCEx Lib "user32" (hWnd As HWND, hrgnClip As HRGN, dwFlags As DWord) As HDC
604
605Declare Function GetDesktopWindow Lib "user32" () As HWND
606Declare Function GetDlgCtrlID Lib "user32" (hWnd As HWND) As Long
607Declare Function GetDlgItem Lib "user32" (hDlg As HWND, nIDDlgItem As Long) As HWND
608Declare Function GetDlgItemText Lib "user32" Alias _FuncName_GetDlgItemText (hDlg As HWND, nIDDlgItem As Long, pString As PTSTR, nMaxCount As Long) As Long
609Declare Function GetDoubleClickTime Lib "user32" () As DWord
610Declare Function GetFocus Lib "user32" () As HWND
611Declare Function GetForegroundWindow Lib "user32" () As HWND
612Declare Function GetIconInfo Lib "user32" (hIcon As HICON, ByRef pIconInfo As ICONINFO) As Long
613Declare Function GetKeyboardState Lib "user32" (lpKeyState As *Byte) As BOOL
614Declare Function GetKeyState Lib "user32" (nVirtKey As Long) As Integer
615Declare Function GetMenu Lib "user32" (hWnd As HWND) As HMENU
616
617Declare Function GetMenuContextHelpId Lib "user32" (hmenu As HMENU) As DWord
618Const GMDI_USEDISABLED = &H0001
619Const GMDI_GOINTOPOPUPS = &H0002
620Declare Function GetMenuDefaultItem Lib "user32" (hMenu As HMENU, fByPos As DWord, gmdiFlags As DWord) As DWord
621
622Declare Function GetMenuItemID Lib "user32" (hMenu As HMENU, nPos As Long) As DWord
623Declare Function GetMenuItemCount Lib "user32" (hMenu As HMENU) As Long
624Declare Function GetMenuItemInfo Lib "user32" Alias _FuncName_GetMenuItemInfo (hMenu As HMENU, uItem As DWord, fByPosition As DWord, ByRef mii As MENUITEMINFO) As BOOL
625Declare Function GetMessage Lib "user32" Alias _FuncName_GetMessage (ByRef Msg As MSG, hWnd As HWND, wMsgFilterMin As DWord, wMsgFilterMax As DWord) As Long
626Declare Function GetParent Lib "user32" (hWnd As HWND) As HWND
627Declare Function GetProp Lib "user32" Alias _FuncName_GetProp (hWnd As HWND, pString As PCTSTR) As HANDLE
628Declare Function GetScrollInfo Lib "user32" (hWnd As HWND, fnBar As Long, ByRef lpsi As SCROLLINFO) As BOOL
629Declare Function GetSubMenu Lib "user32" (hMenu As HMENU, nPos As Long) As HMENU
630
631Const COLOR_SCROLLBAR = 0
632Const COLOR_BACKGROUND = 1
633Const COLOR_ACTIVECAPTION = 2
634Const COLOR_INACTIVECAPTION = 3
635Const COLOR_MENU = 4
636Const COLOR_WINDOW = 5
637Const COLOR_WINDOWFRAME = 6
638Const COLOR_MENUTEXT = 7
639Const COLOR_WINDOWTEXT = 8
640Const COLOR_CAPTIONTEXT = 9
641Const COLOR_ACTIVEBORDER = 10
642Const COLOR_INACTIVEBORDER = 11
643Const COLOR_APPWORKSPACE = 12
644Const COLOR_HIGHLIGHT = 13
645Const COLOR_HIGHLIGHTTEXT = 14
646Const COLOR_BTNFACE = 15
647Const COLOR_BTNSHADOW = 16
648Const COLOR_GRAYTEXT = 17
649Const COLOR_BTNTEXT = 18
650Const COLOR_INACTIVECAPTIONTEXT = 19
651Const COLOR_BTNHIGHLIGHT = 20
652Const COLOR_3DDKSHADOW = 21
653Const COLOR_3DLIGHT = 22
654Const COLOR_INFOTEXT = 23
655Const COLOR_INFOBK = 24
656Const COLOR_HOTLIGHT = 26
657Const COLOR_GRADIENTACTIVECAPTION = 27
658Const COLOR_GRADIENTINACTIVECAPTION = 28
659Const COLOR_DESKTOP = COLOR_BACKGROUND
660Const COLOR_3DFACE = COLOR_BTNFACE
661Const COLOR_3DSHADOW = COLOR_BTNSHADOW
662Const COLOR_3DHIGHLIGHT = COLOR_BTNHIGHLIGHT
663Const COLOR_3DHILIGHT = COLOR_BTNHIGHLIGHT
664Const COLOR_BTNHILIGHT = COLOR_BTNHIGHLIGHT
665Declare Function GetSysColor Lib "user32" (nIndex As Long) As DWord
666Declare Function GetSysColorBrush Lib "user32" (nIndex As Long) As HBRUSH
667
668Declare Function GetSystemMenu Lib "user32" (hWnd As HWND, bRevert As BOOL) As HMENU
669
670Const SM_CXSCREEN = 0
671Const SM_CYSCREEN = 1
672Const SM_CXVSCROLL = 2
673Const SM_CYHSCROLL = 3
674Const SM_CYCAPTION = 4
675Const SM_CXBORDER = 5
676Const SM_CYBORDER = 6
677Const SM_CXDLGFRAME = 7
678Const SM_CYDLGFRAME = 8
679Const SM_CYVTHUMB = 9
680Const SM_CXHTHUMB = 10
681Const SM_CXICON = 11
682Const SM_CYICON = 12
683Const SM_CXCURSOR = 13
684Const SM_CYCURSOR = 14
685Const SM_CYMENU = 15
686Const SM_CXFULLSCREEN = 16
687Const SM_CYFULLSCREEN = 17
688Const SM_CYKANJIWINDOW = 18
689Const SM_MOUSEPRESENT = 19
690Const SM_CYVSCROLL = 20
691Const SM_CXHSCROLL = 21
692Const SM_DEBUG = 22
693Const SM_SWAPBUTTON = 23
694Const SM_RESERVED1 = 24
695Const SM_RESERVED2 = 25
696Const SM_RESERVED3 = 26
697Const SM_RESERVED4 = 27
698Const SM_CXMIN = 28
699Const SM_CYMIN = 29
700Const SM_CXSIZE = 30
701Const SM_CYSIZE = 31
702Const SM_CXFRAME = 32
703Const SM_CYFRAME = 33
704Const SM_CXMINTRACK = 34
705Const SM_CYMINTRACK = 35
706Const SM_CXDOUBLECLK = 36
707Const SM_CYDOUBLECLK = 37
708Const SM_CXICONSPACING = 38
709Const SM_CYICONSPACING = 39
710Const SM_MENUDROPALIGNMENT = 40
711Const SM_PENWINDOWS = 41
712Const SM_DBCSENABLED = 42
713Const SM_CMOUSEBUTTONS = 43
714Const SM_CXFIXEDFRAME = SM_CXDLGFRAME
715Const SM_CYFIXEDFRAME = SM_CYDLGFRAME
716Const SM_CXSIZEFRAME = SM_CXFRAME
717Const SM_CYSIZEFRAME = SM_CYFRAME
718Const SM_SECURE = 44
719Const SM_CXEDGE = 45
720Const SM_CYEDGE = 46
721Const SM_CXMINSPACING = 47
722Const SM_CYMINSPACING = 48
723Const SM_CXSMICON = 49
724Const SM_CYSMICON = 50
725Const SM_CYSMCAPTION = 51
726Const SM_CXSMSIZE = 52
727Const SM_CYSMSIZE = 53
728Const SM_CXMENUSIZE = 54
729Const SM_CYMENUSIZE = 55
730Const SM_ARRANGE = 56
731Const SM_CXMINIMIZED = 57
732Const SM_CYMINIMIZED = 58
733Const SM_CXMAXTRACK = 59
734Const SM_CYMAXTRACK = 60
735Const SM_CXMAXIMIZED = 61
736Const SM_CYMAXIMIZED = 62
737Const SM_NETWORK = 63
738Const SM_CLEANBOOT = 67
739Const SM_CXDRAG = 68
740Const SM_CYDRAG = 69
741Const SM_SHOWSOUNDS = 70
742Const SM_CXMENUCHECK = 71
743Const SM_CYMENUCHECK = 72
744Const SM_SLOWMACHINE = 73
745Const SM_MIDEASTENABLED = 74
746Const SM_MOUSEWHEELPRESENT = 75
747Declare Function GetSystemMetrics Lib "user32" (nIndex As Long) As Long
748
749Declare Function GetUpdateRect Lib "user32" (hWnd As HWND, ByRef lpRect As RECT, bErase As BOOL) As BOOL
750Declare Function GetUpdateRgn Lib "user32" (hWnd As HWND, hRgn As HRGN, bErase As BOOL) As BOOL
751
752Const GW_HWNDFIRST = 0
753Const GW_HWNDLAST = 1
754Const GW_HWNDNEXT = 2
755Const GW_HWNDPREV = 3
756Const GW_OWNER = 4
757Const GW_CHILD = 5
758Declare Function GetWindow Lib "user32" (hWnd As HWND, uCmd As DWord) As HWND
759
760Declare Function GetWindowContextHelpId Lib "user32" (hwnd As HWND) As DWord
761
762Declare Function GetWindowDC Lib "user32" (hWnd As HWND) As HDC
763
764#ifndef _WIN64
765Const GWL_WNDPROC = -4
766Const GWL_HINSTANCE = -6
767Const GWL_HWNDPARENT = -8
768Const GWL_USERDATA = -21
769Const GWL_ID = -12
770#endif
771
772Const GWL_STYLE = -16
773Const GWL_EXSTYLE = -20
774
775Const GWLP_WNDPROC = -4
776Const GWLP_HINSTANCE = -6
777Const GWLP_HWNDPARENT = -8
778Const GWLP_USERDATA = -21
779Const GWLP_ID = -12
780
781
782#ifdef _WIN64
783Declare Function GetWindowLong Lib "user32" Alias _FuncName_GetWindowLongPtr (hWnd As HWND, nIndex As Long) As LONG_PTR
784Declare Function GetWindowLongPtr Lib "user32" Alias _FuncName_GetWindowLongPtr (hWnd As HWND, nIndex As Long) As LONG_PTR
785#else
786Declare Function GetWindowLong Lib "user32" Alias _FuncName_GetWindowLong (hWnd As HWND, nIndex As Long) As LONG_PTR
787Declare Function GetWindowLongPtr Lib "user32" Alias _FuncName_GetWindowLong (hWnd As HWND, nIndex As Long) As LONG_PTR
788#endif
789
790Const WPF_SETMINPOSITION = &H0001
791Const WPF_RESTORETOMAXIMIZED = &H0002
792Type WINDOWPLACEMENT
793 length As DWord
794 flags As DWord
795 showCmd As DWord
796 ptMinPosition As POINTAPI
797 ptMaxPosition As POINTAPI
798 rcNormalPosition As RECT
799End Type
800Declare Function GetWindowPlacement Lib "user32" (hWnd As HWND, ByRef lpwndpl As WINDOWPLACEMENT) As BOOL
801
802Declare Function GetWindowRect Lib "user32" (hWnd As HWND, ByRef lpRect As RECT) As BOOL
803Declare Function GetWindowRgn Lib "user32" (hWnd As HWND, hRgn As HRGN) As Long
804Declare Function GetWindowText Lib "user32" Alias _FuncName_GetWindowText (hWnd As HWND, lpString As PTSTR, nMaxCount As Long) As Long
805Declare Function GetWindowTextLength Lib "user32" Alias _FuncName_GetWindowTextLength (hWnd As HWND) As Long
806Declare Function GetWindowThreadProcessId Lib "user32" (hWnd As HWND, pdwProcessId As *DWord) As DWord
807Declare Function HideCaret Lib "user32" (hWnd As HWND) As BOOL
808Declare Function InsertMenuItem Lib "user32" Alias _FuncName_InsertMenuItem (hMenu As HMENU, uItem As DWord, fByPosition As BOOL, ByRef mii As MENUITEMINFO) As BOOL
809Declare Function InvalidateRect Lib "user32" (hWnd As HWND, ByRef Rect As RECT, bErase As BOOL) As BOOL
810Declare Function InvalidateRgn Lib "user32" (hWnd As HWND, hRgn As HRGN, bErase As BOOL) As BOOL
811Declare Function InvertRect Lib "user32" (hdc As HDC, ByRef lpRect As RECT) As BOOL
812Declare Function IsCharAlpha Lib "user32" Alias _FuncName_IsCharAlpha (ch As TCHAR) As BOOL
813Declare Function IsCharAlphaNumeric Lib "user32" Alias _FuncName_IsCharAlphaNumeric (ch As TCHAR) As BOOL
814Declare Function IsCharLower Lib "user32" Alias _FuncName_IsCharLower (ch As TCHAR) As BOOL
815Declare Function IsCharUpper Lib "user32" Alias _FuncName_IsCharUpper (ch As TCHAR) As BOOL
816Declare Function IsChild Lib "user32" (hWndParent As HWND, hWnd As HWND) As BOOL
817Declare Function IsDialogMessage Lib "user32" Alias _FuncName_IsDialogMessage (hDlg As HWND, ByRef msg As MSG) As BOOL
818Declare Function IsIconic Lib "user32" (hWnd As HWND) As BOOL
819Declare Function IsWindow Lib "user32" (hWnd As HWND) As BOOL
820Declare Function IsWindowEnabled Lib "user32" (hWnd As HWND) As BOOL
821Declare Function IsWindowUnicode Lib "user32" (hWnd As HWND) As BOOL
822Declare Function IsWindowVisible Lib "user32" (hWnd As HWND) As BOOL
823Declare Function IsZoomed Lib "user32" (hWnd As HWND) As BOOL
824
825Const KEYEVENTF_EXTENDEDKEY = &H0001
826Const KEYEVENTF_KEYUP = &H0002
827Declare Sub keybd_event Lib "user32" (bVk As Byte, bScan As Byte, dwFlags As DWord, dwExtraInfo As DWord)
828
829Declare Function KillTimer Lib "user32" (hWnd As HWND, nIDEvent As ULONG_PTR) As BOOL
830Declare Function LoadBitmap Lib "user32" Alias _FuncName_LoadBitmap (hInst As HINSTANCE, pBitmapName As PCTSTR) As HBITMAP
831
832Const IDC_ARROW = 32512
833Const IDC_IBEAM = 32513
834Const IDC_WAIT = 32514
835Const IDC_CROSS = 32515
836Const IDC_UPARROW = 32516
837Const IDC_SIZE = 32640
838Const IDC_ICON = 32641
839Const IDC_SIZENWSE = 32642
840Const IDC_SIZENESW = 32643
841Const IDC_SIZEWE = 32644
842Const IDC_SIZENS = 32645
843Const IDC_SIZEALL = 32646
844Const IDC_NO = 32648
845Const IDC_HAND = 32649
846Const IDC_APPSTARTING = 32650
847Const IDC_HELP = 32651
848Declare Function LoadCursor Lib "user32" Alias _FuncName_LoadCursor (hInst As HINSTANCE, pCursorName As PCTSTR) As HCURSOR
849
850Declare Function LoadCursorFromFile Lib "user32" Alias _FuncName_LoadCursorFromFile (pFileName As PCTSTR) As HCURSOR
851
852Const IDI_APPLICATION = 32512
853Const IDI_HAND = 32513
854Const IDI_QUESTION = 32514
855Const IDI_EXCLAMATION = 32515
856Const IDI_ASTERISK = 32516
857Const IDI_WINLOGO = 32517
858Declare Function LoadIcon Lib "user32" Alias _FuncName_LoadIcon (hInst As HINSTANCE, pIconName As PCTSTR) As HICON
859
860Const IMAGE_BITMAP = 0
861Const IMAGE_ICON = 1
862Const IMAGE_CURSOR = 2
863Const IMAGE_ENHMETAFILE = 3
864Const LR_DEFAULTCOLOR = &H0000
865Const LR_MONOCHROME = &H0001
866Const LR_COLOR = &H0002
867Const LR_COPYRETURNORG = &H0004
868Const LR_COPYDELETEORG = &H0008
869Const LR_LOADFROMFILE = &H0010
870Const LR_LOADTRANSPARENT = &H0020
871Const LR_DEFAULTSIZE = &H0040
872Const LR_VGACOLOR = &H0080
873Const LR_LOADMAP3DCOLORS = &H1000
874Const LR_CREATEDIBSECTION = &H2000
875Const LR_COPYFROMRESOURCE = &H4000
876Const LR_SHARED = &H8000
877Declare Function LoadImage Lib "user32" Alias _FuncName_LoadImage (hinst As HINSTANCE, pszName As PCTSTR, dwImageType As DWord, cxDesired As Long, cyDesired As Long, dwFlags As DWord) As HANDLE
878
879Declare Function LockWindowUpdate Lib "user32" (hWnd As HWND) As BOOL
880Declare Function MapWindowPoints Lib "user32" (
881 hWndFrom As HWND,
882 hWndTo As HWND,
883 pPoints As *POINTAPI,
884 cPoints As DWord) As Long
885Declare Function MessageBeep Lib "user32" (uType As DWord) As BOOL
886
887Const MB_OK = &H00000000
888Const MB_OKCANCEL = &H00000001
889Const MB_ABORTRETRYIGNORE = &H00000002
890Const MB_YESNOCANCEL = &H00000003
891Const MB_YESNO = &H00000004
892Const MB_RETRYCANCEL = &H00000005
893Const MB_ICONHAND = &H00000010
894Const MB_ICONQUESTION = &H00000020
895Const MB_ICONEXCLAMATION = &H00000030
896Const MB_ICONASTERISK = &H00000040
897Const MB_USERICON = &H00000080
898Const MB_ICONWARNING = MB_ICONEXCLAMATION
899Const MB_ICONERROR = MB_ICONHAND
900Const MB_ICONINFORMATION = MB_ICONASTERISK
901Const MB_ICONSTOP = MB_ICONHAND
902Const MB_DEFBUTTON1 = &H00000000
903Const MB_DEFBUTTON2 = &H00000100
904Const MB_DEFBUTTON3 = &H00000200
905Const MB_DEFBUTTON4 = &H00000300
906Const MB_APPLMODAL = &H00000000
907Const MB_SYSTEMMODAL = &H00001000
908Const MB_TASKMODAL = &H00002000
909Const MB_HELP = &H00004000
910Const MB_NOFOCUS = &H00008000
911Const MB_SETFOREGROUND = &H00010000
912Const MB_DEFAULT_DESKTOP_ONLY = &H00020000
913Const MB_TOPMOST = &H00040000
914Const MB_RIGHT = &H00080000
915Const MB_RTLREADING = &H00100000
916#ifdef UNICODE
917Declare Function MessageBox Lib "user32" Alias "MessageBoxW" (hwnd As HWND, pText As PCWSTR, pCaption As PCWSTR, uType As DWord) As Long
918#else
919Declare Function MessageBox Lib "user32" Alias "MessageBoxA" (hwnd As HWND, pText As PCSTR, pCaption As PCSTR, uType As DWord) As Long
920#endif
921Declare Function MessageBoxW Lib "user32" (hWnd As HWND, pText As PCWSTR, pCaption As PCWSTR, uType As DWord) As Long
922Declare Function MessageBoxA Lib "user32" (hWnd As HWND, pText As PCSTR, pCaption As PCSTR, uType As DWord) As Long
923Const MOUSEEVENTF_MOVE = &H0001
924Const MOUSEEVENTF_LEFTDOWN = &H0002
925Const MOUSEEVENTF_LEFTUP = &H0004
926Const MOUSEEVENTF_RIGHTDOWN = &H0008
927Const MOUSEEVENTF_RIGHTUP = &H0010
928Const MOUSEEVENTF_MIDDLEDOWN = &H0020
929Const MOUSEEVENTF_MIDDLEUP = &H0040
930Const MOUSEEVENTF_WHEEL = &H0800
931Const MOUSEEVENTF_ABSOLUTE = &H8000
932Declare Sub mouse_event Lib "user32" (dwFlags As DWord, dx As DWord, dy As DWord, dwData As DWord, dwExtraInfo As DWord)
933
934Declare Function MoveWindow Lib "user32" (hWnd As HWND, x As Long, y As Long, nWidth As Long, nHight As Long, bRepaint As BOOL) As BOOL
935Declare Function OpenClipboard Lib "user32" (hWndNewOwner As HWND) As BOOL
936Declare Function OpenIcon Lib "user32" (hWnd As HWND) As BOOL
937
938Const PM_NOREMOVE = &H0000
939Const PM_REMOVE = &H0001
940Declare Function PeekMessage Lib "user32" Alias _FuncName_PeekMessage (ByRef Msg As MSG, hWnd As HWND, wMsgFilterMin As DWord, wMsgFilterMax As DWord, wRemoveMsg As DWord) As BOOL
941
942Const HWND_BROADCAST = &HFFFF
943Declare Function PostMessage Lib "user32" Alias _FuncName_PostMessage (hWnd As HWND, wMsg As DWord, wParam As WPARAM, lParam As LPARAM) As BOOL
944
945Declare Sub PostQuitMessage Lib "user32" (nExitCode As Long)
946Declare Function PostThreadMessage Lib "user32" Alias _FuncName_PostThreadMessage (idThread As DWord, Msg As DWord, wParam As WPARAM, lParam As LPARAM) As BOOL
947
948Const RDW_INVALIDATE = &H0001
949Const RDW_INTERNALPAINT = &H0002
950Const RDW_ERASE = &H0004
951Const RDW_VALIDATE = &H0008
952Const RDW_NOINTERNALPAINT = &H0010
953Const RDW_NOERASE = &H0020
954Const RDW_NOCHILDREN = &H0040
955Const RDW_ALLCHILDREN = &H0080
956Const RDW_UPDATENOW = &H0100
957Const RDW_ERASENOW = &H0200
958Const RDW_FRAME = &H0400
959Const RDW_NOFRAME = &H0800
960Declare Function RedrawWindow Lib "user32" (hWnd As HWND, ByRef lprcUpdate As RECT, hrgnUpdate As HRGN, flags As DWord) As BOOL
961
962Declare Function RegisterClassEx Lib "user32" Alias _FuncName_RegisterClassEx (ByRef wcx As WNDCLASSEX) As ATOM
963Declare Function RegisterClipboardFormat Lib "user32" Alias _FuncName_RegisterClipboardFormat (pszFormat As PCTSTR) As DWord
964Declare Function RegisterWindowMessage Lib "user32" Alias _FuncName_RegisterWindowMessage (pString As PCTSTR) As DWord
965Declare Function ReleaseCapture Lib "user32" () As BOOL
966Declare Function ReleaseDC Lib "user32" (hWnd As HWND, hdc As HDC) As BOOL
967Declare Function RemoveMenu Lib "user32" (hMenu As HMENU, uPosition As DWord, uFlags As DWord) As BOOL
968Declare Function RemoveProp Lib "user32" Alias _FuncName_RemoveProp (hWnd As HWND, pString As PCTSTR) As HANDLE
969Declare Function TranslateMessage Lib "user32" (ByRef lpMsg As MSG) As Long
970Declare Function ScreenToClient Lib "user32" (hWnd As HWND, ByRef lpPoint As POINTAPI) As BOOL
971Declare Function ScrollDC Lib "user32" (hdc As HDC, dx As Long, dy As Long, ByRef rcScroll As RECT, ByRef rcClip As RECT, hrgnUpdate As HRGN, ByRef rcUpdate As RECT) As BOOL
972
973Const SW_SCROLLCHILDREN = &H0001
974Const SW_INVALIDATE = &H0002
975Const SW_ERASE = &H0004
976Declare Function ScrollWindowEx Lib "user32" (hWnd As HWND, dx As Long, dy As Long, ByRef rcScroll As RECT, ByRef rcClip As RECT, hrgnUpdate As HRGN, ByRef rcUpdate As RECT, flags As DWord) As BOOL
977
978Declare Function SendDlgItemMessage Lib "user32" Alias _FuncName_SendDlgItemMessage (hDlg As HWND, nIDDlgItem As Long, Msg As DWord, wParam As WPARAM, lParam As LPARAM) As LRESULT
979Declare Function SendMessage Lib "user32" Alias _FuncName_SendMessage (hWnd As HWND, wMsg As DWord, wParam As WPARAM, lParam As LPARAM) As LRESULT
980Declare Function SendNotifyMessage Lib "user32" Alias _FuncName_SendNotifyMessage (hWnd As HWND, wMsg As DWord, wParam As WPARAM, lParam As LPARAM) As LRESULT
981Declare Function SetActiveWindow Lib "user32" (hWnd As HWND) As HWND
982Declare Function SetDlgItemText Lib "user32" Alias _FuncName_SetDlgItemText (hDlg As HWND, nIDDlgItem As Long, lpString As PCTSTR) As BOOL
983Declare Function SetCapture Lib "user32" (hWnd As HWND) As HWND
984Declare Function SetCaretPos Lib "user32" (x As Long, y As Long) As BOOL
985
986#ifdef _WIN64
987Declare Function SetClassLong Lib "user32" Alias _FuncName_SetClassLongPtr (hWnd As HWND, nIndex As Long, NewLong As LONG_PTR) As LONG_PTR
988Declare Function SetClassLongPtr Lib "user32" Alias _FuncName_SetClassLongPtr (hWnd As HWND, nIndex As Long, NewLong As LONG_PTR) As LONG_PTR
989#else
990Declare Function SetClassLong Lib "user32" Alias _FuncName_SetClassLong (hWnd As HWND, nIndex As Long, NewLong As LONG_PTR) As LONG_PTR
991Declare Function SetClassLongPtr Lib "user32" Alias _FuncName_SetClassLong (hWnd As HWND, nIndex As Long, NewLong As LONG_PTR) As LONG_PTR
992#endif
993
994Declare Function SetClipboardData Lib "user32" (uFormat As DWord, hMem As HANDLE) As HANDLE
995Declare Function SetCursor Lib "user32" (hCursor As HCURSOR) As HCURSOR
996Declare Function SetCursorPos Lib "user32" (x As Long, y As Long) As BOOL
997Declare Function SetDoubleClickTime Lib "user32" (uInterval As DWord) As BOOL
998Declare Function SetFocus Lib "user32" (hWnd As HWND) As HWND
999Declare Function SetForegroundWindow Lib "user32" (hWnd As HWND) As BOOL
1000Declare Function SetKeyboardState Lib "user32" (lpKeyState As *Byte) As BOOL
1001Declare Function SetMenu Lib "user32" (hWnd As HWND, hMenu As HMENU) As BOOL
1002Declare Function SetMenuContextHelpId Lib "user32" (hmenu As HMENU, dwContextHelpId As DWord) As BOOL
1003Declare Function SetMenuDefaultItem Lib "user32" (hMenu As HMENU, uItem As DWord, fByPos As DWord) As BOOL
1004Declare Function SetMenuItemInfo Lib "user32" Alias _FuncName_SetMenuItemInfo (hMenu As HMENU, uItem As DWord, fByPosition As BOOL, ByRef mii As MENUITEMINFO) As BOOL
1005Declare Function SetParent Lib "user32" (hWndChild As HWND, hWndNewParent As HWND) As HWND
1006Declare Function SetProp Lib "user32" Alias _FuncName_SetProp (hWnd As HWND, pString As PCTSTR, hData As HANDLE) As BOOL
1007Declare Function SetScrollInfo Lib "user32" (hWnd As HWND, fnBar As Long, ByRef lpsi As SCROLLINFO, bRedraw As Long) As BOOL
1008Declare Function SetSysColors Lib "user32" (cElements As Long, lpaElements As *DWord, lpaRgbValues As *DWord) As BOOL
1009
1010TypeDef TIMERPROC = *Sub(hwnd As HWND, msg As DWord, idEvent As ULONG_PTR, dwTime As DWord)
1011Declare Function SetTimer Lib "user32" (hWnd As HWND, nIDEvent As ULONG_PTR, nElapse As DWord, lpTimerFunc As TIMERPROC) As ULONG_PTR
1012
1013Declare Function SetWindowContextHelpId Lib "user32"(hwnd As HWND, dwContextHelpId As DWord) As BOOL
1014
1015#ifdef _WIN64
1016Declare Function SetWindowLong Lib "user32" Alias _FuncName_SetWindowLongPtr (hWnd As HWND, nIndex As Long, NewLong As LONG_PTR) As LONG_PTR
1017Declare Function SetWindowLongPtr Lib "user32" Alias _FuncName_SetWindowLongPtr (hWnd As HWND, nIndex As Long, NewLong As LONG_PTR) As LONG_PTR
1018#else
1019Declare Function SetWindowLong Lib "user32" Alias _FuncName_SetWindowLong (hWnd As HWND, nIndex As Long, NewLong As LONG_PTR) As LONG_PTR
1020Declare Function SetWindowLongPtr Lib "user32" Alias _FuncName_SetWindowLong (hWnd As HWND, nIndex As Long, NewLong As LONG_PTR) As LONG_PTR
1021#endif
1022
1023Declare Function SetWindowPlacement Lib "user32" (hWnd As HWND, ByRef lpwndpl As WINDOWPLACEMENT) As BOOL
1024
1025Const HWND_TOP = 0 As HWND
1026Const HWND_BOTTOM = 1 As HWND
1027Const HWND_TOPMOST = -1 As HWND
1028Const HWND_NOTOPMOST = -2 As HWND
1029Const SWP_NOSIZE = &H0001
1030Const SWP_NOMOVE = &H0002
1031Const SWP_NOZORDER = &H0004
1032Const SWP_NOREDRAW = &H0008
1033Const SWP_NOACTIVATE = &H0010
1034Const SWP_FRAMECHANGED = &H0020
1035Const SWP_SHOWWINDOW = &H0040
1036Const SWP_HIDEWINDOW = &H0080
1037Const SWP_NOCOPYBITS = &H0100
1038Const SWP_NOOWNERZORDER = &H0200
1039Const SWP_NOSENDCHANGING = &H0400
1040Const SWP_DRAWFRAME = SWP_FRAMECHANGED
1041Const SWP_NOREPOSITION = SWP_NOOWNERZORDER
1042Const SWP_DEFERERASE = &H2000
1043Const SWP_ASYNCWINDOWPOS = &H4000
1044Declare Function SetWindowPos Lib "user32" (hWnd As HWND, hWndInsertAfter As HWND, X As Long, Y As Long, cx As Long, cy As Long, uFlags As DWord) As BOOL
1045
1046Declare Function SetWindowRgn Lib "user32" (hWnd As HWND, hRgn As HRGN, bRedraw As BOOL) As BOOL
1047Declare Function SetWindowText Lib "user32" Alias _FuncName_SetWindowText (hWnd As HWND, pString As PCTSTR) As BOOL
1048Declare Function ShowCaret Lib "user32" (hWnd As HWND) As BOOL
1049Declare Function ShowCursor Lib "user32" (bShow As Long) As BOOL
1050Declare Function ShowScrollBar Lib "user32" (hWnd As HWND, wBar As DWord, bShow As BOOL) As BOOL
1051
1052Const SW_HIDE = 0
1053Const SW_SHOWNORMAL = 1
1054Const SW_NORMAL = 1
1055Const SW_SHOWMINIMIZED = 2
1056Const SW_SHOWMAXIMIZED = 3
1057Const SW_MAXIMIZE = 3
1058Const SW_SHOWNOACTIVATE = 4
1059Const SW_SHOW = 5
1060Const SW_MINIMIZE = 6
1061Const SW_SHOWMINNOACTIVE = 7
1062Const SW_SHOWNA = 8
1063Const SW_RESTORE = 9
1064Const SW_SHOWDEFAULT = 10
1065Const SW_FORCEMINIMIZE = 11
1066Const SW_MAX = 11
1067Declare Function ShowWindow Lib "user32" (hWnd As HWND, nCmdShow As Long) As BOOL
1068Declare Function ShowWindowAsync Lib "user32" (hWnd As HWND, nCmdShow As Long) As BOOL
1069
1070Type NONCLIENTMETRICSW
1071 cbSize As DWord
1072 iBorderWidth As Long
1073 iScrollWidth As Long
1074 iScrollHeight As Long
1075 iCaptionWidth As Long
1076 iCaptionHeight As Long
1077 lfCaptionFont As LOGFONTW
1078 iSmCaptionWidth As Long
1079 iSmCaptionHeight As Long
1080 lfSmCaptionFont As LOGFONTW
1081 iMenuWidth As Long
1082 iMenuHeight As Long
1083 lfMenuFont As LOGFONTW
1084 lfStatusFont As LOGFONTW
1085 lfMessageFont As LOGFONTW
1086End Type
1087Type NONCLIENTMETRICSA
1088 cbSize As DWord
1089 iBorderWidth As Long
1090 iScrollWidth As Long
1091 iScrollHeight As Long
1092 iCaptionWidth As Long
1093 iCaptionHeight As Long
1094 lfCaptionFont As LOGFONTA
1095 iSmCaptionWidth As Long
1096 iSmCaptionHeight As Long
1097 lfSmCaptionFont As LOGFONTA
1098 iMenuWidth As Long
1099 iMenuHeight As Long
1100 lfMenuFont As LOGFONTA
1101 lfStatusFont As LOGFONTA
1102 lfMessageFont As LOGFONTA
1103End Type
1104#ifdef
1105TypeDef NONCLIENTMETRICS = NONCLIENTMETRICSW
1106#else
1107TypeDef NONCLIENTMETRICS = NONCLIENTMETRICSA
1108#endif
1109Const SPI_GETBEEP = 1
1110Const SPI_SETBEEP = 2
1111Const SPI_GETMOUSE = 3
1112Const SPI_SETMOUSE = 4
1113Const SPI_GETBORDER = 5
1114Const SPI_SETBORDER = 6
1115Const SPI_GETKEYBOARDSPEED = 10
1116Const SPI_SETKEYBOARDSPEED = 11
1117Const SPI_LANGDRIVER = 12
1118Const SPI_ICONHORIZONTALSPACING = 13
1119Const SPI_GETSCREENSAVETIMEOUT = 14
1120Const SPI_SETSCREENSAVETIMEOUT = 15
1121Const SPI_GETSCREENSAVEACTIVE = 16
1122Const SPI_SETSCREENSAVEACTIVE = 17
1123Const SPI_GETGRIDGRANULARITY = 18
1124Const SPI_SETGRIDGRANULARITY = 19
1125Const SPI_SETDESKWALLPAPER = 20
1126Const SPI_SETDESKPATTERN = 21
1127Const SPI_GETKEYBOARDDELAY = 22
1128Const SPI_SETKEYBOARDDELAY = 23
1129Const SPI_ICONVERTICALSPACING = 24
1130Const SPI_GETICONTITLEWRAP = 25
1131Const SPI_SETICONTITLEWRAP = 26
1132Const SPI_GETMENUDROPALIGNMENT = 27
1133Const SPI_SETMENUDROPALIGNMENT = 28
1134Const SPI_SETDOUBLECLKWIDTH = 29
1135Const SPI_SETDOUBLECLKHEIGHT = 30
1136Const SPI_GETICONTITLELOGFONT = 31
1137Const SPI_SETDOUBLECLICKTIME = 32
1138Const SPI_SETMOUSEBUTTONSWAP = 33
1139Const SPI_SETICONTITLELOGFONT = 34
1140Const SPI_GETFASTTASKSWITCH = 35
1141Const SPI_SETFASTTASKSWITCH = 36
1142Const SPI_SETDRAGFULLWINDOWS = 37
1143Const SPI_GETDRAGFULLWINDOWS = 38
1144Const SPI_GETNONCLIENTMETRICS = 41
1145Const SPI_SETNONCLIENTMETRICS = 42
1146Const SPI_GETMINIMIZEDMETRICS = 43
1147Const SPI_SETMINIMIZEDMETRICS = 44
1148Const SPI_GETICONMETRICS = 45
1149Const SPI_SETICONMETRICS = 46
1150Const SPI_SETWORKAREA = 47
1151Const SPI_GETWORKAREA = 48
1152Const SPI_SETPENWINDOWS = 49
1153Const SPI_GETHIGHCONTRAST = 66
1154Const SPI_SETHIGHCONTRAST = 67
1155Const SPI_GETKEYBOARDPREF = 68
1156Const SPI_SETKEYBOARDPREF = 69
1157Const SPI_GETSCREENREADER = 70
1158Const SPI_SETSCREENREADER = 71
1159Const SPI_GETANIMATION = 72
1160Const SPI_SETANIMATION = 73
1161Const SPI_GETFONTSMOOTHING = 74
1162Const SPI_SETFONTSMOOTHING = 75
1163Const SPI_SETDRAGWIDTH = 76
1164Const SPI_SETDRAGHEIGHT = 77
1165Const SPI_SETHANDHELD = 78
1166Const SPI_GETLOWPOWERTIMEOUT = 79
1167Const SPI_GETPOWEROFFTIMEOUT = 80
1168Const SPI_SETLOWPOWERTIMEOUT = 81
1169Const SPI_SETPOWEROFFTIMEOUT = 82
1170Const SPI_GETLOWPOWERACTIVE = 83
1171Const SPI_GETPOWEROFFACTIVE = 84
1172Const SPI_SETLOWPOWERACTIVE = 85
1173Const SPI_SETPOWEROFFACTIVE = 86
1174Const SPI_SETCURSORS = 87
1175Const SPI_SETICONS = 88
1176Const SPI_GETDEFAULTINPUTLANG = 89
1177Const SPI_SETDEFAULTINPUTLANG = 90
1178Const SPI_SETLANGTOGGLE = 91
1179Const SPI_GETWINDOWSEXTENSION = 92
1180Const SPI_SETMOUSETRAILS = 93
1181Const SPI_GETMOUSETRAILS = 94
1182Const SPI_SETSCREENSAVERRUNNING = 97
1183Const SPI_SCREENSAVERRUNNING = SPI_SETSCREENSAVERRUNNING
1184Const SPI_GETFILTERKEYS = 50
1185Const SPI_SETFILTERKEYS = 51
1186Const SPI_GETTOGGLEKEYS = 52
1187Const SPI_SETTOGGLEKEYS = 53
1188Const SPI_GETMOUSEKEYS = 54
1189Const SPI_SETMOUSEKEYS = 55
1190Const SPI_GETSHOWSOUNDS = 56
1191Const SPI_SETSHOWSOUNDS = 57
1192Const SPI_GETSTICKYKEYS = 58
1193Const SPI_SETSTICKYKEYS = 59
1194Const SPI_GETACCESSTIMEOUT = 60
1195Const SPI_SETACCESSTIMEOUT = 61
1196Const SPI_GETSERIALKEYS = 62
1197Const SPI_SETSERIALKEYS = 63
1198Const SPI_GETSOUNDSENTRY = 64
1199Const SPI_SETSOUNDSENTRY = 65
1200Const SPI_GETMOUSEHOVERWIDTH = 98
1201Const SPI_SETMOUSEHOVERWIDTH = 99
1202Const SPI_GETMOUSEHOVERHEIGHT = 100
1203Const SPI_SETMOUSEHOVERHEIGHT = 101
1204Const SPI_GETMOUSEHOVERTIME = 102
1205Const SPI_SETMOUSEHOVERTIME = 103
1206Const SPI_GETWHEELSCROLLLINES = 104
1207Const SPI_SETWHEELSCROLLLINES = 105
1208Const SPI_GETSHOWIMEUI = 110
1209Const SPI_SETSHOWIMEUI = 111
1210Const SPI_GETMOUSESPEED = 112
1211Const SPI_SETMOUSESPEED = 113
1212Const SPI_GETSCREENSAVERRUNNING = 114
1213Const SPI_GETACTIVEWINDOWTRACKING = &H1000 'Windows 2000 or later
1214Const SPI_SETACTIVEWINDOWTRACKING = &H1001
1215Const SPI_GETMENUANIMATION = &H1002
1216Const SPI_SETMENUANIMATION = &H1003
1217Const SPI_GETCOMBOBOXANIMATION = &H1004
1218Const SPI_SETCOMBOBOXANIMATION = &H1005
1219Const SPI_GETLISTBOXSMOOTHSCROLLING = &H1006
1220Const SPI_SETLISTBOXSMOOTHSCROLLING = &H1007
1221Const SPI_GETGRADIENTCAPTIONS = &H1008
1222Const SPI_SETGRADIENTCAPTIONS = &H1009
1223Const SPI_GETMENUUNDERLINES = &H100A
1224Const SPI_SETMENUUNDERLINES = &H100B
1225Const SPI_GETACTIVEWNDTRKZORDER = &H100C
1226Const SPI_SETACTIVEWNDTRKZORDER = &H100D
1227Const SPI_GETHOTTRACKING = &H100E
1228Const SPI_SETHOTTRACKING = &H100F
1229Const SPI_GETFOREGROUNDLOCKTIMEOUT = &H2000
1230Const SPI_SETFOREGROUNDLOCKTIMEOUT = &H2001
1231Const SPI_GETACTIVEWNDTRKTIMEOUT = &H2002
1232Const SPI_SETACTIVEWNDTRKTIMEOUT = &H2003
1233Const SPI_GETFOREGROUNDFLASHCOUNT = &H2004
1234Const SPI_SETFOREGROUNDFLASHCOUNT = &H2005
1235Const SPIF_UPDATEINIFILE = &H0001
1236Const SPIF_SENDWININICHANGE = &H0002
1237Const SPIF_SENDCHANGE = SPIF_SENDWININICHANGE
1238Declare Function SystemParametersInfo Lib "user32" Alias _FuncName_SystemParametersInfo (uiAction As DWord, uiParam As DWord, pvParam As VoidPtr, fWinIni As DWord) As BOOL
1239
1240Const TME_HOVER = &H00000001
1241Const TME_LEAVE = &H00000002
1242Const TME_NONCLIENT = &H00000010
1243Const TME_QUERY = &H40000000
1244Const TME_CANCEL = &H80000000
1245Const HOVER_DEFAULT = &HFFFFFFFF
1246Type TRACKMOUSEEVENT
1247 cbSize As DWord
1248 dwFlags As DWord
1249 hwndTrack As HWND
1250 dwHoverTime As DWord
1251End Type
1252Declare Function TrackMouseEvent Lib "user32" (ByRef EventTrack As TRACKMOUSEEVENT) As BOOL
1253
1254Const TPM_LEFTBUTTON = &H0000
1255Const TPM_RIGHTBUTTON = &H0002
1256Const TPM_LEFTALIGN = &H0000
1257Const TPM_CENTERALIGN = &H0004
1258Const TPM_RIGHTALIGN = &H0008
1259Const TPM_TOPALIGN = &H0000
1260Const TPM_VCENTERALIGN = &H0010
1261Const TPM_BOTTOMALIGN = &H0020
1262Const TPM_HORIZONTAL = &H0000
1263Const TPM_VERTICAL = &H0040
1264Const TPM_NONOTIFY = &H0080
1265Const TPM_RETURNCMD = &H0100
1266Const TPM_RECURSE = &H0001
1267Declare Function TrackPopupMenu Lib "user32" (hMenu As HMENU, uFlags As DWord, x As Long, y As Long, nReserved As Long, hWnd As HWND, ByRef prcRect As RECT) As BOOL
1268
1269Declare Function UnregisterClass Lib "user32" Alias _FuncName_UnregisterClass (pClassName As PCTSTR, hinst As HINSTANCE) As BOOL
1270Declare Function UpdateWindow Lib "user32" (hWnd As HWND) As BOOL
1271Declare Function ValidateRect Lib "user32" (hWnd As HWND, ByRef lpRect As RECT) As BOOL
1272Declare Function ValidateRgn Lib "user32" (hWnd As HWND, hRgn As HRGN) As BOOL
1273Declare Function WaitForInputIdle Lib "user32" (hProcess As HANDLE, dwMilliseconds As DWord) As DWord
1274
1275Declare Function WaitMessage Lib "user32" () As BOOL
1276Declare Function WindowFromDC Lib "user32" (hDC As HDC) As HWND
1277Declare Function WindowFromPoint Lib "user32" (ptX As Long, ptY As Long) As HWND
1278Declare Function wsprintf cdecl Lib "user32" Alias _FuncName_wsprintf (pText As PTSTR, pFormat As PCTSTR, ...) As Long
1279Declare Function wvsprintf Lib "user32" Alias _FuncName_wvsprintf (pOutput As PTSTR, pFormat As PCTSTR, arglist As DWordPtr) As Long
1280
1281
1282#endif '_INC_WINDOW
Note: See TracBrowser for help on using the repository browser.