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