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 | Const _FuncName_ChangeDisplaySettings = "ChangeDisplaySettingsW"
|
---|
82 | Const _FuncName_ChangeDisplaySettingsEx= "ChangeDisplaySettingsExW"
|
---|
83 | Const _FuncName_EnumDisplaySettings= "EnumDisplaySettingsW"
|
---|
84 | Const _FuncName_EnumDisplaySettingsEx= "EnumDisplaySettingsExW"
|
---|
85 | Const _FuncName_EnumDisplayDevices= "EnumDisplayDevicesW"
|
---|
86 | #else
|
---|
87 | Const _FuncName_CallWindowProc = "CallWindowProcA"
|
---|
88 | Const _FuncName_CharLower = "CharLowerA"
|
---|
89 | Const _FuncName_CharNext = "CharNextA"
|
---|
90 | Const _FuncName_CharPrev = "CharPrevA"
|
---|
91 | Const _FuncName_CharUpper = "CharUpperA"
|
---|
92 | Const _FuncName_CreateAcceleratorTable = "CreateAcceleratorTableA"
|
---|
93 | Const _FuncName_CreateWindowEx = "CreateWindowExA"
|
---|
94 | Const _FuncName_DefDlgProc = "DefDlgProcA"
|
---|
95 | Const _FuncName_DefWindowProc = "DefWindowProcA"
|
---|
96 | Const _FuncName_DialogBoxIndirectParam = "DialogBoxIndirectParamA"
|
---|
97 | Const _FuncName_DispatchMessage = "DispatchMessageA"
|
---|
98 | Const _FuncName_DlgDirList = "DlgDirListA"
|
---|
99 | Const _FuncName_DlgDirListComboBox = "DlgDirListComboBoxA"
|
---|
100 | Const _FuncName_DlgDirSelectComboBoxEx = "DlgDirSelectComboBoxExA"
|
---|
101 | Const _FuncName_DlgDirSelectEx = "DlgDirSelectExA"
|
---|
102 | Const _FuncName_DrawText = "DrawTextA"
|
---|
103 | Const _FuncName_DrawTextEx = "DrawTextExA"
|
---|
104 | Const _FuncName_FindWindow = "FindWindowA"
|
---|
105 | Const _FuncName_FindWindowEx = "FindWindowExA"
|
---|
106 | Const _FuncName_GetClassInfoEx = "GetClassInfoExA"
|
---|
107 | Const _FuncName_GetClassLong = "GetClassLongA"
|
---|
108 | Const _FuncName_GetClassLongPtr = "GetClassLongPtrA"
|
---|
109 | Const _FuncName_GetClassName = "GetClassNameA"
|
---|
110 | Const _FuncName_GetClipboardFormatName = "GetClipboardFormatNameA"
|
---|
111 | Const _FuncName_GetDlgItemText = "GetDlgItemTextA"
|
---|
112 | Const _FuncName_GetMenuItemInfo = "GetMenuItemInfoA"
|
---|
113 | Const _FuncName_GetMessage = "GetMessageA"
|
---|
114 | Const _FuncName_GetMonitorInfo = "GetMonitorInfoA"
|
---|
115 | Const _FuncName_GetProp = "GetPropA"
|
---|
116 | Const _FuncName_GetWindowLong = "GetWindowLongA"
|
---|
117 | Const _FuncName_GetWindowLongPtr = "GetWindowLongPtrA"
|
---|
118 | Const _FuncName_GetWindowText = "GetWindowTextA"
|
---|
119 | Const _FuncName_GetWindowTextLength = "GetWindowTextLengthA"
|
---|
120 | Const _FuncName_GetWindowModuleFileName = "GetWindowModuleFileNameA"
|
---|
121 | Const _FuncName_InsertMenuItem = "InsertMenuItemA"
|
---|
122 | Const _FuncName_IsCharAlpha = "IsCharAlphaA"
|
---|
123 | Const _FuncName_IsCharAlphaNumeric = "IsCharAlphaNumericA"
|
---|
124 | Const _FuncName_IsCharLower = "IsCharLowerA"
|
---|
125 | Const _FuncName_IsCharUpper = "IsCharUpperA"
|
---|
126 | Const _FuncName_IsDialogMessage = "IsDialogMessageA"
|
---|
127 | Const _FuncName_LoadBitmap = "LoadBitmapA"
|
---|
128 | Const _FuncName_LoadCursor = "LoadCursorA"
|
---|
129 | Const _FuncName_LoadCursorFromFile = "LoadCursorFromFileA"
|
---|
130 | Const _FuncName_LoadIcon = "LoadIconA"
|
---|
131 | Const _FuncName_LoadImage = "LoadImageA"
|
---|
132 | Const _FuncName_LoadString = "LoadStringA"
|
---|
133 | Const _FuncName_MapVirtualKey = "MapVirtualKeyA"
|
---|
134 | Const _FuncName_PeekMessage = "PeekMessageA"
|
---|
135 | Const _FuncName_PostMessage = "PostMessageA"
|
---|
136 | Const _FuncName_PostThreadMessage = "PostThreadMessageA"
|
---|
137 | Const _FuncName_RegisterClassEx = "RegisterClassExA"
|
---|
138 | Const _FuncName_RegisterClipboardFormat = "RegisterClipboardFormatA"
|
---|
139 | Const _FuncName_RegisterWindowMessage = "RegisterWindowMessageA"
|
---|
140 | Const _FuncName_RemoveProp = "RemovePropA"
|
---|
141 | Const _FuncName_SendDlgItemMessage = "SendDlgItemMessageA"
|
---|
142 | Const _FuncName_SendMessage = "SendMessageA"
|
---|
143 | Const _FuncName_SendNotifyMessage = "SendNotifyMessageA"
|
---|
144 | Const _FuncName_SetDlgItemText = "SetDlgItemTextA"
|
---|
145 | Const _FuncName_SetClassLong = "SetClassLongA"
|
---|
146 | Const _FuncName_SetClassLongPtr = "SetClassLongPtrA"
|
---|
147 | Const _FuncName_SetMenuItemInfo = "SetMenuItemInfoA"
|
---|
148 | Const _FuncName_SetProp = "SetPropA"
|
---|
149 | Const _FuncName_SetWindowLong = "SetWindowLongA"
|
---|
150 | Const _FuncName_SetWindowLongPtr = "SetWindowLongPtrA"
|
---|
151 | Const _FuncName_SetWindowsHookEx = "SetWindowsHookExA"
|
---|
152 | Const _FuncName_SetWindowText = "SetWindowTextA"
|
---|
153 | Const _FuncName_SystemParametersInfo = "SystemParametersInfoA"
|
---|
154 | Const _FuncName_TranslateAccelerator = "TranslateAcceleratorA"
|
---|
155 | Const _FuncName_UnregisterClass = "UnregisterClassA"
|
---|
156 | Const _FuncName_wsprintf = "wsprintfA"
|
---|
157 | Const _FuncName_wvsprintf = "wvsprintfA"
|
---|
158 | Const _FuncName_ChangeDisplaySettings = "ChangeDisplaySettingsA"
|
---|
159 | Const _FuncName_ChangeDisplaySettingsEx= "ChangeDisplaySettingsExA"
|
---|
160 | Const _FuncName_EnumDisplaySettings= "EnumDisplaySettingsA"
|
---|
161 | Const _FuncName_EnumDisplaySettingsEx= "EnumDisplaySettingsExA"
|
---|
162 | Const _FuncName_EnumDisplayDevices= "EnumDisplayDevicesA"
|
---|
163 | #endif
|
---|
164 |
|
---|
165 | Type _System_DeclareHandle_HDWP:unused As DWord:End Type
|
---|
166 | TypeDef HDWP = *_System_DeclareHandle_HDWP
|
---|
167 |
|
---|
168 | TypeDef WNDPROC = *Function(hwnd As HWND, msg As DWord, wParam As WPARAM, lParam As LPARAM) As LRESULT
|
---|
169 | TypeDef DLGPROC = *Function(hwnd As HWND, msg As DWord, wParam As WPARAM, lParam As LPARAM) As LONG_PTR
|
---|
170 |
|
---|
171 | Type MSG
|
---|
172 | hwnd As HWND
|
---|
173 | message As DWord
|
---|
174 | wParam As WPARAM
|
---|
175 | lParam As LPARAM
|
---|
176 | time As DWord
|
---|
177 | pt As POINTAPI
|
---|
178 | End Type
|
---|
179 |
|
---|
180 | Const IS_INTRESOURCE(_r) = ((((_r) As ULONG_PTR) >> 16) = 0)
|
---|
181 | Const MAKEINTRESOURCEW(i) = ((((i) As Word) As ULONG_PTR) As PCWSTR)
|
---|
182 | Const MAKEINTRESOURCEA(i) = ((((i) As Word) As ULONG_PTR) As PCSTR)
|
---|
183 | Const MAKEINTRESOURCE(i) = ((((i) As Word) As ULONG_PTR) As PCTSTR)
|
---|
184 |
|
---|
185 | Const RT_CURSOR = MAKEINTRESOURCE(1)
|
---|
186 | Const RT_BITMAP = MAKEINTRESOURCE(2)
|
---|
187 | Const RT_ICON = MAKEINTRESOURCE(3)
|
---|
188 | Const RT_MENU = MAKEINTRESOURCE(4)
|
---|
189 | Const RT_DIALOG = MAKEINTRESOURCE(5)
|
---|
190 | Const RT_STRING = MAKEINTRESOURCE(6)
|
---|
191 | Const RT_FONTDIR = MAKEINTRESOURCE(7)
|
---|
192 | Const RT_FONT = MAKEINTRESOURCE(8)
|
---|
193 | Const RT_ACCELERATOR = MAKEINTRESOURCE(9)
|
---|
194 | Const RT_RCDATA = MAKEINTRESOURCE(10)
|
---|
195 | Const RT_MESSAGETABLE = MAKEINTRESOURCE(11)
|
---|
196 |
|
---|
197 | Const DIFFERENCE = 11
|
---|
198 | Const RT_GROUP_CURSOR = MAKEINTRESOURCE((RT_CURSOR) As ULONG_PTR + DIFFERENCE)
|
---|
199 | Const RT_GROUP_ICON = MAKEINTRESOURCE((RT_ICON) As ULONG_PTR + DIFFERENCE)
|
---|
200 | Const RT_VERSION = MAKEINTRESOURCE(16)
|
---|
201 | Const RT_DLGINCLUDE = MAKEINTRESOURCE(17)
|
---|
202 | Const RT_PLUGPLAY = MAKEINTRESOURCE(19)
|
---|
203 | Const RT_VXD = MAKEINTRESOURCE(20)
|
---|
204 | Const RT_ANICURSOR = MAKEINTRESOURCE(21)
|
---|
205 | Const RT_ANIICON = MAKEINTRESOURCE(22)
|
---|
206 | Const RT_HTML = MAKEINTRESOURCE(23)
|
---|
207 | Const RT_MANIFEST = MAKEINTRESOURCE(24)
|
---|
208 | Const CREATEPROCESS_MANIFEST_RESOURCE_ID = MAKEINTRESOURCE(1)
|
---|
209 | Const ISOLATIONAWARE_MANIFEST_RESOURCE_ID = MAKEINTRESOURCE(2)
|
---|
210 | Const ISOLATIONAWARE_NOSTATICIMPORT_MANIFEST_RESOURCE_ID = MAKEINTRESOURCE(3)
|
---|
211 | Const MINIMUM_RESERVED_MANIFEST_RESOURCE_ID = MAKEINTRESOURCE(1)
|
---|
212 | Const MAXIMUM_RESERVED_MANIFEST_RESOURCE_ID = MAKEINTRESOURCE(16)
|
---|
213 |
|
---|
214 | TypeDef WNDENUMPROC = *Function(hwnd As HWND, lParam As LPARAM) As BOOL
|
---|
215 | TypeDef HOOKPROC = *Function(code As Long, wParam As WPARAM, lParam As LPARAM) As LRESULT
|
---|
216 | TypeDef MONITORENUMPROC = *Function(hm As HMONITOR, hdc As HDC, ByRef rc As RECT, dwData As LPARAM) As BOOL
|
---|
217 |
|
---|
218 | Const CS_VREDRAW = &H0001
|
---|
219 | Const CS_HREDRAW = &H0002
|
---|
220 | Const CS_DBLCLKS = &H0008
|
---|
221 | Const CS_OWNDC = &H0020
|
---|
222 | Const CS_CLASSDC = &H0040
|
---|
223 | Const CS_PARENTDC = &H0080
|
---|
224 | Const CS_NOCLOSE = &H0200
|
---|
225 | Const CS_SAVEBITS = &H0800
|
---|
226 | Const CS_BYTEALIGNCLIENT = &H1000
|
---|
227 | Const CS_BYTEALIGNWINDOW = &H2000
|
---|
228 | Const CS_GLOBALCLASS = &H4000
|
---|
229 | Type WNDCLASSEXA
|
---|
230 | cbSize As DWord
|
---|
231 | style As DWord
|
---|
232 | lpfnWndProc As WNDPROC
|
---|
233 | cbClsExtra As Long
|
---|
234 | cbWndExtra As Long
|
---|
235 | hInstance As HINSTANCE
|
---|
236 | hIcon As HICON
|
---|
237 | hCursor As HCURSOR
|
---|
238 | hbrBackground As HBRUSH
|
---|
239 | lpszMenuName As LPCSTR
|
---|
240 | lpszClassName As LPCSTR
|
---|
241 | hIconSm As HICON
|
---|
242 | End Type
|
---|
243 | Type WNDCLASSEXW
|
---|
244 | cbSize As DWord
|
---|
245 | style As DWord
|
---|
246 | lpfnWndProc As WNDPROC
|
---|
247 | cbClsExtra As Long
|
---|
248 | cbWndExtra As Long
|
---|
249 | hInstance As HINSTANCE
|
---|
250 | hIcon As HICON
|
---|
251 | hCursor As HCURSOR
|
---|
252 | hbrBackground As HBRUSH
|
---|
253 | lpszMenuName As LPCWSTR
|
---|
254 | lpszClassName As LPCWSTR
|
---|
255 | hIconSm As HICON
|
---|
256 | End Type
|
---|
257 | #ifdef UNICODE
|
---|
258 | TypeDef WNDCLASSEX = WNDCLASSEXW
|
---|
259 | #else
|
---|
260 | TypeDef WNDCLASSEX = WNDCLASSEXA
|
---|
261 | #endif
|
---|
262 |
|
---|
263 | '------------------------
|
---|
264 | ' Dialog Box Command IDs
|
---|
265 | Const IDOK = 1
|
---|
266 | Const IDCANCEL = 2
|
---|
267 | Const IDABORT = 3
|
---|
268 | Const IDRETRY = 4
|
---|
269 | Const IDIGNORE = 5
|
---|
270 | Const IDYES = 6
|
---|
271 | Const IDNO = 7
|
---|
272 | Const IDCLOSE = 8
|
---|
273 | Const IDHELP = 9
|
---|
274 |
|
---|
275 |
|
---|
276 | '------------------------
|
---|
277 | ' Menu flags and structs
|
---|
278 | Const MF_INSERT = &H00000000
|
---|
279 | Const MF_CHANGE = &H00000080
|
---|
280 | Const MF_APPEND = &H00000100
|
---|
281 | Const MF_DELETE = &H00000200
|
---|
282 | Const MF_REMOVE = &H00001000
|
---|
283 | Const MF_BYCOMMAND = &H00000000
|
---|
284 | Const MF_BYPOSITION = &H00000400
|
---|
285 | Const MF_SEPARATOR = &H00000800
|
---|
286 | Const MF_ENABLED = &H00000000
|
---|
287 | Const MF_GRAYED = &H00000001
|
---|
288 | Const MF_DISABLED = &H00000002
|
---|
289 | Const MF_UNCHECKED = &H00000000
|
---|
290 | Const MF_CHECKED = &H00000008
|
---|
291 | Const MF_USECHECKBITMAPS = &H00000200
|
---|
292 | Const MF_STRING = &H00000000
|
---|
293 | Const MF_BITMAP = &H00000004
|
---|
294 | Const MF_OWNERDRAW = &H00000100
|
---|
295 | Const MF_POPUP = &H00000010
|
---|
296 | Const MF_MENUBARBREAK = &H00000020
|
---|
297 | Const MF_MENUBREAK = &H00000040
|
---|
298 | Const MF_UNHILITE = &H00000000
|
---|
299 | Const MF_HILITE = &H00000080
|
---|
300 | Const MF_DEFAULT = &H00001000
|
---|
301 | Const MF_SYSMENU = &H00002000
|
---|
302 | Const MF_HELP = &H00004000
|
---|
303 | Const MF_RIGHTJUSTIFY = &H00004000
|
---|
304 | Const MF_MOUSESELECT = &H00008000
|
---|
305 |
|
---|
306 | Const MFS_GRAYED = &H00000003
|
---|
307 | Const MFS_DISABLED = MFS_GRAYED
|
---|
308 | Const MFS_CHECKED = MF_CHECKED
|
---|
309 | Const MFS_HILITE = MF_HILITE
|
---|
310 | Const MFS_ENABLED = MF_ENABLED
|
---|
311 | Const MFS_UNCHECKED = MF_UNCHECKED
|
---|
312 | Const MFS_UNHILITE = MF_UNHILITE
|
---|
313 | Const MFS_DEFAULT = MF_DEFAULT
|
---|
314 | Const MFS_MASK = &H0000108B
|
---|
315 | Const MFS_HOTTRACKDRAWN = &H10000000
|
---|
316 | Const MFS_CACHEDBMP = &H20000000
|
---|
317 | Const MFS_BOTTOMGAPDROP = &H40000000
|
---|
318 | Const MFS_TOPGAPDROP = &H80000000
|
---|
319 | Const MFS_GAPDROP = &HC0000000
|
---|
320 |
|
---|
321 | Const MIIM_STATE = &H00000001
|
---|
322 | Const MIIM_ID = &H00000002
|
---|
323 | Const MIIM_SUBMENU = &H00000004
|
---|
324 | Const MIIM_CHECKMARKS = &H00000008
|
---|
325 | Const MIIM_TYPE = &H00000010
|
---|
326 | Const MIIM_DATA = &H00000020
|
---|
327 | Const MIIM_STRING = &H00000040
|
---|
328 | Const MIIM_BITMAP = &H00000080
|
---|
329 | Const MIIM_FTYPE = &H00000100
|
---|
330 | Const MFT_STRING = MF_STRING
|
---|
331 | Const MFT_BITMAP = MF_BITMAP
|
---|
332 | Const MFT_MENUBARBREAK = MF_MENUBARBREAK
|
---|
333 | Const MFT_MENUBREAK = MF_MENUBREAK
|
---|
334 | Const MFT_OWNERDRAW = MF_OWNERDRAW
|
---|
335 | Const MFT_RADIOCHECK = &H00000200
|
---|
336 | Const MFT_SEPARATOR = MF_SEPARATOR
|
---|
337 | Const MFT_RIGHTORDER = &H00002000
|
---|
338 | Const MFT_RIGHTJUSTIFY = MF_RIGHTJUSTIFY
|
---|
339 |
|
---|
340 | Type MENUITEMINFOW
|
---|
341 | cbSize As DWord
|
---|
342 | fMask As DWord
|
---|
343 | fType As DWord
|
---|
344 | fState As DWord
|
---|
345 | wID As DWord
|
---|
346 | hSubMenu As HMENU
|
---|
347 | hbmpChecked As HBITMAP
|
---|
348 | hbmpUnchecked As HBITMAP
|
---|
349 | dwItemData As ULONG_PTR
|
---|
350 | dwTypeData As LPWSTR
|
---|
351 | cch As DWord
|
---|
352 | End Type
|
---|
353 | Type MENUITEMINFOA
|
---|
354 | cbSize As DWord
|
---|
355 | fMask As DWord
|
---|
356 | fType As DWord
|
---|
357 | fState As DWord
|
---|
358 | wID As DWord
|
---|
359 | hSubMenu As HMENU
|
---|
360 | hbmpChecked As HBITMAP
|
---|
361 | hbmpUnchecked As HBITMAP
|
---|
362 | dwItemData As ULONG_PTR
|
---|
363 | dwTypeData As LPSTR
|
---|
364 | cch As DWord
|
---|
365 | End Type
|
---|
366 | #ifdef UNICODE
|
---|
367 | TypeDef MENUITEMINFO = MENUITEMINFOW
|
---|
368 | #else
|
---|
369 | TypeDef MENUITEMINFO = MENUITEMINFOA
|
---|
370 | #endif
|
---|
371 |
|
---|
372 | '------------
|
---|
373 | ' Scroll Bar
|
---|
374 | Const SB_HORZ = 0
|
---|
375 | Const SB_VERT = 1
|
---|
376 | Const SB_CTL = 2
|
---|
377 | Const SB_BOTH = 3
|
---|
378 |
|
---|
379 | ' SCROLLINFO struct
|
---|
380 | Const SIF_RANGE = &H0001
|
---|
381 | Const SIF_PAGE = &H0002
|
---|
382 | Const SIF_POS = &H0004
|
---|
383 | Const SIF_DISABLENOSCROLL = &H0008
|
---|
384 | Const SIF_TRACKPOS = &H0010
|
---|
385 | Const SIF_ALL = SIF_RANGE or SIF_PAGE or SIF_POS or SIF_TRACKPOS
|
---|
386 | Type SCROLLINFO
|
---|
387 | cbSize As DWord
|
---|
388 | fMask As DWord
|
---|
389 | nMin As Long
|
---|
390 | nMax As Long
|
---|
391 | nPage As DWord
|
---|
392 | nPos As Long
|
---|
393 | nTrackPos As Long
|
---|
394 | End Type
|
---|
395 |
|
---|
396 |
|
---|
397 | ' combo box
|
---|
398 | Const CB_ERR = -1
|
---|
399 | Const CB_ERRSPACE = -2
|
---|
400 |
|
---|
401 |
|
---|
402 | ' Clipboard Formats
|
---|
403 | Const CF_TEXT = 1
|
---|
404 | Const CF_BITMAP = 2
|
---|
405 | Const CF_METAFILEPICT = 3
|
---|
406 | Const CF_SYLK = 4
|
---|
407 | Const CF_DIF = 5
|
---|
408 | Const CF_TIFF = 6
|
---|
409 | Const CF_OEMTEXT = 7
|
---|
410 | Const CF_DIB = 8
|
---|
411 | Const CF_PALETTE = 9
|
---|
412 | Const CF_PENDATA = 10
|
---|
413 | Const CF_RIFF = 11
|
---|
414 | Const CF_WAVE = 12
|
---|
415 | Const CF_UNICODETEXT = 13
|
---|
416 | Const CF_ENHMETAFILE = 14
|
---|
417 | Const CF_HDROP = 15
|
---|
418 | Const CF_LOCALE = 16
|
---|
419 | Const CF_MAX = 17
|
---|
420 | Const CF_OWNERDISPLAY = &H0080
|
---|
421 | Const CF_DSPTEXT = &H0081
|
---|
422 | Const CF_DSPBITMAP = &H0082
|
---|
423 | Const CF_DSPMETAFILEPICT = &H0083
|
---|
424 | Const CF_DSPENHMETAFILE = &H008E
|
---|
425 | Const CF_PRIVATEFIRST = &H0200
|
---|
426 | Const CF_PRIVATELAST = &H02FF
|
---|
427 | Const CF_GDIOBJFIRST = &H0300
|
---|
428 | Const CF_GDIOBJLAST = &H03FF
|
---|
429 |
|
---|
430 | '-------------
|
---|
431 | ' Window API
|
---|
432 |
|
---|
433 | Declare Function AdjustWindowRect Lib "user32" (ByRef Rect As RECT, dwStyle As DWord, bMenu As BOOL) As BOOL
|
---|
434 | Declare Function AdjustWindowRectEx Lib "user32" (ByRef Rect As RECT, dwStyle As DWord, bMenu As BOOL, dwExStyle As DWord) As BOOL
|
---|
435 | Declare Function AnyPopup Lib "user32" () As BOOL
|
---|
436 | Declare Function ArrangeIconicWindows Lib "user32" (hWnd As HWND) As DWord
|
---|
437 |
|
---|
438 | Type PAINTSTRUCT
|
---|
439 | hdc As HDC
|
---|
440 | fErase As BOOL
|
---|
441 | rcPaint As RECT
|
---|
442 | fRestore As BOOL
|
---|
443 | fIncUpdate As BOOL
|
---|
444 | rgbReserved[ELM(32)] As Byte
|
---|
445 | End Type
|
---|
446 | Declare Function BeginPaint Lib "user32" (hWnd As HWND, ByRef Paint As PAINTSTRUCT) As HDC
|
---|
447 | Declare Function BringWindowToTop Lib "user32" (hWnd As HWND) As Long
|
---|
448 |
|
---|
449 | Declare Function CallNextHookEx Lib "user32" (hHook As HHOOK, nCode As Long, wParam As WPARAM, lParam As LPARAM) As LRESULT
|
---|
450 | Function DefHookProc(ByVal nCode As Long, ByVal wParam As WPARAM, ByVal lParam As LPARAM, ByVal phhk As *HHOOK) As LRESULT
|
---|
451 | Return CallNextHookEx(phhk[0], nCode, wParam, lParam)
|
---|
452 | End Function
|
---|
453 |
|
---|
454 | 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
|
---|
455 | Declare Function ChangeClipboardChain Lib "user32" (hwndRemove As HWND, hwndNewNext As HWND) As BOOL
|
---|
456 | Declare Function CharLower Lib "user32" Alias _FuncName_CharLower (psz As PTSTR) As DWord
|
---|
457 | Declare Function CharNext Lib "user32" Alias _FuncName_CharNext (lpszCurrent As LPCTSTR) As LPTSTR
|
---|
458 | Declare Function CharNextExA Lib "user32" (CodePage As Word, lpCurrentChar As LPCSTR, dwFlags As DWord) As LPSTR
|
---|
459 | Declare Function CharPrev Lib "user32" Alias _FuncName_CharPrev (lpszStart As LPCTSTR, lpszCurrent As LPCTSTR) As LPTSTR
|
---|
460 | Declare Function CharPrevExA Lib "user32" (CodePage As Word, lpStart As LPCSTR, lpCurrentChar As LPCSTR, dwFlags As DWord) As LPSTR
|
---|
461 | Declare Function CharUpper Lib "user32" Alias _FuncName_CharUpper (psz As PTSTR) As DWord
|
---|
462 | Declare Function CheckMenuItem Lib "user32" (hMenu As HMENU, uIDCheckItem As DWord, uCheck As DWord) As DWord
|
---|
463 | Declare Function CheckMenuRadioItem Lib "user32" (hMenu As HMENU, idFirst As DWord, idLast As DWord, idCheck As DWord, uFlags As DWord) As BOOL
|
---|
464 | Declare Function CheckDlgButton Lib "user32" (hDlg As HWND, nIDButton As Long, uCheck As DWord) As BOOL
|
---|
465 | Declare Function CheckRadioButton Lib "user32" (hDlg As HWND, nIDFirstButton As Long, nIDLastButton As Long, nIDCheckButton As Long) As BOOL
|
---|
466 | Declare Function ChildWindowFromPoint Lib "user32" (hWndParent As HWND, x As Long, y As Long) As HWND
|
---|
467 | Const CWP_ALL = &H0000
|
---|
468 | Const CWP_SKIPINVISIBLE = &H0001
|
---|
469 | Const CWP_SKIPDISABLED = &H0002
|
---|
470 | Const CWP_SKIPTRANSPARENT = &H0004
|
---|
471 | Declare Function ChildWindowFromPointEx Lib "user32" (hWndParent As HWND, x As Long, y As Long, uFlags As DWord) As HWND
|
---|
472 |
|
---|
473 | Declare Function ClientToScreen Lib "user32" (hWnd As HWND, ByRef lpPoint As POINTAPI) As BOOL
|
---|
474 | Declare Function ClipCursor Lib "user32" (ByRef lpRect As RECT) As BOOL
|
---|
475 | Declare Function CloseClipboard Lib "user32" () As BOOL
|
---|
476 | Declare Function CloseWindow Lib "user32" (hWnd As HWND) As BOOL
|
---|
477 | Declare Function CopyImage Lib "user32" (hImage As HANDLE, uType As DWord, cxDesired As Long, cyDesired As Long, fuFlags As DWord) As HANDLE
|
---|
478 | Declare Function CountClipboardFormats Lib "user32" () As Long
|
---|
479 | Const FVIRTKEY = &H01
|
---|
480 | Const FNOINVERT = &H02
|
---|
481 | Const FSHIFT = &H04
|
---|
482 | Const FCONTROL = &H08
|
---|
483 | Const FALT = &H10
|
---|
484 | Type ACCEL
|
---|
485 | fVirt As Byte
|
---|
486 | key As Word
|
---|
487 | cmd As Word
|
---|
488 | End Type
|
---|
489 | Declare Function CreateAcceleratorTable Lib "user32" Alias _FuncName_CreateAcceleratorTable (ByRef acl As ACCEL, i As Long) As HACCEL
|
---|
490 | Declare Function CreateCaret Lib "user32" (hWnd As HWND, hBitmap As HBITMAP, nWidth As Long, nHeight As Long) As BOOL
|
---|
491 | 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
|
---|
492 | 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
|
---|
493 | Declare Function LookupIconIdFromDirectory Lib "user32" (ByVal presbits As *BYTE, ByVal fIcon As BOOL) As Long
|
---|
494 | Declare Function LookupIconIdFromDirectoryEx Lib "user32" (ByVal presbits As *BYTE, ByVal fIcon As BOOL, ByVal cxDesired As Long, ByVal cyDesired As Long, ByVal Flags As DWord) As Long
|
---|
495 |
|
---|
496 | Type ICONINFO
|
---|
497 | fIcon As BOOL
|
---|
498 | xHotspot As DWord
|
---|
499 | yHotspot As DWord
|
---|
500 | hbmMask As HBITMAP
|
---|
501 | hbmColor As HBITMAP
|
---|
502 | End Type
|
---|
503 | Declare Function CreateIconIndirect Lib "user32" (ByRef pIconInfo As ICONINFO) As HICON
|
---|
504 |
|
---|
505 | Declare Function CreateMenu Lib "user32" () As HMENU
|
---|
506 | Declare Function CreatePopupMenu Lib "user32" () As HMENU
|
---|
507 |
|
---|
508 | Const CW_USEDEFAULT = &H80000000
|
---|
509 | 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
|
---|
510 |
|
---|
511 | Declare Function CreateMDIWindowA Lib "user32" (ByVal lpClassName As LPCSTR, ByVal lpWindowName As LPCSTR, ByVal dwStyle As DWord, ByVal X As Long, ByVal Y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hWndParent As HWND, ByVal hInstance As HINSTANCE, ByVal lParam As LPARAM) As HWND
|
---|
512 | Declare Function CreateMDIWindowW Lib "user32" (ByVal lpClassName As LPCWSTR, ByVal lpWindowName As LPCWSTR, ByVal dwStyle As DWord, ByVal X As Long, ByVal Y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hWndParent As HWND, ByVal hInstance As HINSTANCE, ByVal lParam As LPARAM) As HWND
|
---|
513 | #ifdef UNICODE
|
---|
514 | Declare Function CreateMDIWindow Lib "user32" Alias "CreateMDIWindowW" (ByVal lpClassName As LPCWSTR, ByVal lpWindowName As LPCWSTR, ByVal dwStyle As DWord, ByVal X As Long, ByVal Y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hWndParent As HWND, ByVal hInstance As HINSTANCE, ByVal lParam As LPARAM) As HWND
|
---|
515 | #else
|
---|
516 | Declare Function CreateMDIWindow Lib "user32" Alias "CreateMDIWindowA" (ByVal lpClassName As LPCSTR, ByVal lpWindowName As LPCSTR, ByVal dwStyle As DWord, ByVal X As Long, ByVal Y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hWndParent As HWND, ByVal hInstance As HINSTANCE, ByVal lParam As LPARAM) As HWND
|
---|
517 | #endif ' !UNICODE
|
---|
518 |
|
---|
519 | Declare Function DefDlgProc Lib "user32" Alias _FuncName_DefWindowProc (hDlg As HWND, Msg As DWord, wParam As WPARAM, lParam As LPARAM) As LRESULT
|
---|
520 | Declare Function DefWindowProc Lib "user32" Alias _FuncName_DefWindowProc (hWnd As HWND, wMsg As DWord, wParam As WPARAM, lParam As LPARAM) As LRESULT
|
---|
521 |
|
---|
522 | Declare Function DefFrameProcA Lib "user32" (ByRef hWnd As HWND, ByRef hWndMDIClient As HWND, ByVal uMsg As DWord, ByVal wParam As WPARAM, ByVal lParam As LPARAM) As LRESULT
|
---|
523 | Declare Function DefFrameProcW Lib "user32" (ByRef hWnd As HWND, ByRef hWndMDIClient As HWND, ByVal uMsg As DWord, ByVal wParam As WPARAM, ByVal lParam As LPARAM) As LRESULT
|
---|
524 | #ifdef UNICODE
|
---|
525 | Declare Function DefFrameProc Lib "user32" Alias "DefFrameProcW" (ByRef hWnd As HWND, ByRef hWndMDIClient As HWND, ByVal uMsg As DWord, ByVal wParam As WPARAM, ByVal lParam As LPARAM) As LRESULT
|
---|
526 | #else
|
---|
527 | Declare Function DefFrameProc Lib "user32" Alias "DefFrameProcA" (ByRef hWnd As HWND, ByRef hWndMDIClient As HWND, ByVal uMsg As DWord, ByVal wParam As WPARAM, ByVal lParam As LPARAM) As LRESULT
|
---|
528 | #endif ' !UNICODE
|
---|
529 |
|
---|
530 | Declare Function DefMDIChildProcA Lib "user32" (ByVal hWnd As HWND, ByVal uMsg As DWord, ByVal wParam As WPARAM, ByVal lParam As LPARAM) As LRESULT
|
---|
531 | Declare Function DefMDIChildProcW Lib "user32" (ByVal hWnd As HWND, ByVal uMsg As DWord, ByVal wParam As WPARAM, ByVal lParam As LPARAM) As LRESULT
|
---|
532 | #ifdef UNICODE
|
---|
533 | Declare Function DefMDIChildProc Lib "user32" Alias "DefMDIChildProcW" (ByVal hWnd As HWND, ByVal uMsg As DWord, ByVal wParam As WPARAM, ByVal lParam As LPARAM) As LRESULT
|
---|
534 | #else
|
---|
535 | Declare Function DefMDIChildProc Lib "user32" Alias "DefMDIChildProcA" (ByVal hWnd As HWND, ByVal uMsg As DWord, ByVal wParam As WPARAM, ByVal lParam As LPARAM) As LRESULT
|
---|
536 | #endif ' !UNICODE
|
---|
537 |
|
---|
538 | Declare Function DeleteMenu Lib "user32" (hMenu As HMENU, uPosition As DWord, uFlags As DWord) As BOOL
|
---|
539 | Declare Function DestroyAcceleratorTable Lib "user32" (hAccel As HACCEL) As BOOL
|
---|
540 |
|
---|
541 | Declare Function TranslateMDISysAccel Lib "user32" (ByVal hWndClient As HWND, ByRef lpMsg As MSG) As BOOL
|
---|
542 | Declare Function ArrangeIconicWindows Lib "user32" (ByVal hWnd As HWND) As DWord
|
---|
543 | Declare Function TileWindows Lib "user32" (ByVal hwndParent As HWND, ByVal wHow As DWord, ByRef lpRect As RECT, ByVal cKids As DWord, ByVal lpKids As *HWND) As Word
|
---|
544 | Declare Function CascadeWindows Lib "user32" (ByVal hwndParent As HWND, ByVal wHow As DWord, ByRef lpRect As RECT, ByVal cKids As DWord, ByVal lpKids As *HWND) As Word
|
---|
545 |
|
---|
546 | Declare Function DestroyCaret Lib "user32" () As BOOL
|
---|
547 | Declare Function DestroyCursor Lib "user32" (hCursor As HCURSOR) As BOOL
|
---|
548 | Declare Function DestroyIcon Lib "user32" (hIcon As HICON) As BOOL
|
---|
549 | Declare Function DestroyMenu Lib "user32" (hMenu As HMENU) As BOOL
|
---|
550 | Declare Function DestroyWindow Lib "user32" (hWnd As HWND) As BOOL
|
---|
551 | Type DLGITEMTEMPLATE
|
---|
552 | style As DWord
|
---|
553 | dwExtendedStyle As DWord
|
---|
554 | x As Integer
|
---|
555 | y As Integer
|
---|
556 | cx As Integer
|
---|
557 | cy As Integer
|
---|
558 | id As Word
|
---|
559 | End Type
|
---|
560 | Type DLGTEMPLATE
|
---|
561 | style As DWord
|
---|
562 | dwExtendedStyle As DWord
|
---|
563 | cdit As Word
|
---|
564 | x As Integer
|
---|
565 | y As Integer
|
---|
566 | cx As Integer
|
---|
567 | cy As Integer
|
---|
568 | End Type
|
---|
569 | 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
|
---|
570 | Declare Function MapDialogRect Lib "user32" (ByVal hDlg As HWND, ByRef lpRect As RECT) As BOOL
|
---|
571 | Declare Function DispatchMessage Lib "user32" Alias _FuncName_DispatchMessage (ByRef Msg As MSG) As LRESULT
|
---|
572 | 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
|
---|
573 | 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
|
---|
574 | Declare Function DlgDirSelectComboBoxEx Lib "user32" Alias _FuncName_DlgDirSelectComboBoxEx (hDlg As HWND, lpString As LPTSTR, nCount As Long, nIDComboBox As Long) As BOOL
|
---|
575 | Declare Function DlgDirSelectEx Lib "user32" Alias _FuncName_DlgDirSelectEx (hDlg As HWND, lpString As LPTSTR, nCount As Long, nIDListBox As Long) As BOOL
|
---|
576 | Const BDR_RAISEDOUTER = &H0001
|
---|
577 | Const BDR_SUNKENOUTER = &H0002
|
---|
578 | Const BDR_RAISEDINNER = &H0004
|
---|
579 | Const BDR_SUNKENINNER = &H0008
|
---|
580 | Const BDR_OUTER = &H0003
|
---|
581 | Const BDR_INNER = &H000c
|
---|
582 | Const EDGE_RAISED = BDR_RAISEDOUTER or BDR_RAISEDINNER
|
---|
583 | Const EDGE_SUNKEN = BDR_SUNKENOUTER or BDR_SUNKENINNER
|
---|
584 | Const EDGE_ETCHED = BDR_SUNKENOUTER or BDR_RAISEDINNER
|
---|
585 | Const EDGE_BUMP = BDR_RAISEDOUTER or BDR_SUNKENINNER
|
---|
586 | Const BF_LEFT = &H0001
|
---|
587 | Const BF_TOP = &H0002
|
---|
588 | Const BF_RIGHT = &H0004
|
---|
589 | Const BF_BOTTOM = &H0008
|
---|
590 | Const BF_TOPLEFT = BF_TOP or BF_LEFT
|
---|
591 | Const BF_TOPRIGHT = BF_TOP or BF_RIGHT
|
---|
592 | Const BF_BOTTOMLEFT = BF_BOTTOM or BF_LEFT
|
---|
593 | Const BF_BOTTOMRIGHT = BF_BOTTOM or BF_RIGHT
|
---|
594 | Const BF_RECT = BF_LEFT or BF_TOP or BF_RIGHT or BF_BOTTOM
|
---|
595 | Const BF_DIAGONAL = &H0010
|
---|
596 | Const BF_DIAGONAL_ENDTOPRIGHT = BF_DIAGONAL or BF_TOP or BF_RIGHT
|
---|
597 | Const BF_DIAGONAL_ENDTOPLEFT = BF_DIAGONAL or BF_TOP or BF_LEFT
|
---|
598 | Const BF_DIAGONAL_ENDBOTTOMLEFT = BF_DIAGONAL or BF_BOTTOM or BF_LEFT
|
---|
599 | Const BF_DIAGONAL_ENDBOTTOMRIGHT = BF_DIAGONAL or BF_BOTTOM or BF_RIGHT
|
---|
600 | Const BF_MIDDLE = &H0800
|
---|
601 | Const BF_SOFT = &H1000
|
---|
602 | Const BF_ADJUST = &H2000
|
---|
603 | Const BF_FLAT = &H4000
|
---|
604 | Const BF_MONO = &H8000
|
---|
605 | Declare Function DrawEdge Lib "user32" (hdc As HDC, ByRef lpRect As RECT, edge As DWord, grfFlags As DWord) As BOOL
|
---|
606 |
|
---|
607 | Const DFC_CAPTION = 1
|
---|
608 | Const DFC_MENU = 2
|
---|
609 | Const DFC_SCROLL = 3
|
---|
610 | Const DFC_BUTTON = 4
|
---|
611 | Const DFC_POPUPMENU = 5
|
---|
612 | Const DFCS_CAPTIONCLOSE = &H0000
|
---|
613 | Const DFCS_CAPTIONMIN = &H0001
|
---|
614 | Const DFCS_CAPTIONMAX = &H0002
|
---|
615 | Const DFCS_CAPTIONRESTORE = &H0003
|
---|
616 | Const DFCS_CAPTIONHELP = &H0004
|
---|
617 | Const DFCS_MENUARROW = &H0000
|
---|
618 | Const DFCS_MENUCHECK = &H0001
|
---|
619 | Const DFCS_MENUBULLET = &H0002
|
---|
620 | Const DFCS_MENUARROWRIGHT = &H0004
|
---|
621 | Const DFCS_SCROLLUP = &H0000
|
---|
622 | Const DFCS_SCROLLDOWN = &H0001
|
---|
623 | Const DFCS_SCROLLLEFT = &H0002
|
---|
624 | Const DFCS_SCROLLRIGHT = &H0003
|
---|
625 | Const DFCS_SCROLLCOMBOBOX = &H0005
|
---|
626 | Const DFCS_SCROLLSIZEGRIP = &H0008
|
---|
627 | Const DFCS_SCROLLSIZEGRIPRIGHT = &H0010
|
---|
628 | Const DFCS_BUTTONCHECK = &H0000
|
---|
629 | Const DFCS_BUTTONRADIOIMAGE = &H0001
|
---|
630 | Const DFCS_BUTTONRADIOMASK = &H0002
|
---|
631 | Const DFCS_BUTTONRADIO = &H0004
|
---|
632 | Const DFCS_BUTTON3STATE = &H0008
|
---|
633 | Const DFCS_BUTTONPUSH = &H0010
|
---|
634 | Const DFCS_INACTIVE = &H0100
|
---|
635 | Const DFCS_PUSHED = &H0200
|
---|
636 | Const DFCS_CHECKED = &H0400
|
---|
637 | Const DFCS_TRANSPARENT = &H0800
|
---|
638 | Const DFCS_HOT = &H1000
|
---|
639 | Const DFCS_ADJUSTRECT = &H2000
|
---|
640 | Const DFCS_FLAT = &H4000
|
---|
641 | Const DFCS_MONO = &H8000
|
---|
642 | Declare Function DrawFrameControl Lib "user32" (hdc As HDC, ByRef lpRect As RECT, uType As DWord, uState As DWord) As BOOL
|
---|
643 |
|
---|
644 | Declare Function DrawIcon Lib "user32" (hdc As HDC, x As Long, y As Long, hIcon As HICON) As BOOL
|
---|
645 |
|
---|
646 | Const DI_MASK = &H0001
|
---|
647 | Const DI_IMAGE = &H0002
|
---|
648 | Const DI_NORMAL = &H0003
|
---|
649 | Const DI_COMPAT = &H0004
|
---|
650 | Const DI_DEFAULTSIZE = &H0008
|
---|
651 | 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
|
---|
652 |
|
---|
653 | Declare Function DrawMenuBar Lib "user32" (hwnd As HWND) As BOOL
|
---|
654 |
|
---|
655 | Type DROPSTRUCT
|
---|
656 | hwndSource As HWND
|
---|
657 | hwndSink As HWND
|
---|
658 | wFmt As DWord
|
---|
659 | dwData As ULONG_PTR
|
---|
660 | ptDrop As POINTAPI
|
---|
661 | dwControlData As DWord
|
---|
662 | End Type
|
---|
663 | TypeDef PDROPSTRUCT= *DROPSTRUCT
|
---|
664 | TypeDef LPDROPSTRUCT= *DROPSTRUCT
|
---|
665 |
|
---|
666 | Const DOF_EXECUTABLE = &H8001
|
---|
667 | Const DOF_DOCUMENT = &H8002
|
---|
668 | Const DOF_DIRECTORY = &H8003
|
---|
669 | Const DOF_MULTIPLE = &H8004
|
---|
670 | Const DOF_PROGMAN = &H0001
|
---|
671 | Const DOF_SHELLDATA = &H0002
|
---|
672 |
|
---|
673 | Const DO_DROPFILE = &H454C4946
|
---|
674 | Const DO_PRINTFILE = &H544E5250
|
---|
675 |
|
---|
676 | Declare Function DragObject Lib "user32" (ByVal hwndParent As HWND, ByVal hwndFrom As HWND, ByVal fmt As DWord, ByVal data As ULONG_PTR, ByVal hcur As HCURSOR) As DWord
|
---|
677 | Declare Function DragDetect Lib "user32" (ByVal hwnd As HWND, ByRef pt As POINTAPI) As BOOL
|
---|
678 |
|
---|
679 |
|
---|
680 | Const DT_TOP = &H00000000
|
---|
681 | Const DT_LEFT = &H00000000
|
---|
682 | Const DT_CENTER = &H00000001
|
---|
683 | Const DT_RIGHT = &H00000002
|
---|
684 | Const DT_VCENTER = &H00000004
|
---|
685 | Const DT_BOTTOM = &H00000008
|
---|
686 | Const DT_WORDBREAK = &H00000010
|
---|
687 | Const DT_SINGLELINE = &H00000020
|
---|
688 | Const DT_EXPANDTABS = &H00000040
|
---|
689 | Const DT_TABSTOP = &H00000080
|
---|
690 | Const DT_NOCLIP = &H00000100
|
---|
691 | Const DT_EXTERNALLEADING =&H00000200
|
---|
692 | Const DT_CALCRECT = &H00000400
|
---|
693 | Const DT_NOPREFIX = &H00000800
|
---|
694 | Const DT_INTERNAL = &H00001000
|
---|
695 | Const DT_EDITCONTROL = &H00002000
|
---|
696 | Const DT_PATH_ELLIPSIS = &H00004000
|
---|
697 | Const DT_END_ELLIPSIS = &H00008000
|
---|
698 | Const DT_MODIFYSTRING = &H00010000
|
---|
699 | Const DT_RTLREADING = &H00020000
|
---|
700 | Const DT_WORD_ELLIPSIS = &H00040000
|
---|
701 | 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
|
---|
702 |
|
---|
703 | Type DRAWTEXTPARAMS
|
---|
704 | cbSize As DWord
|
---|
705 | iTabLength As Long
|
---|
706 | iLeftMargin As Long
|
---|
707 | iRightMargin As Long
|
---|
708 | uiLengthDrawn As DWord
|
---|
709 | End Type
|
---|
710 | 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
|
---|
711 |
|
---|
712 | TypeDef GRAYSTRINGPROC = *Function(hDC As HDC, lParam As LPARAM, l As Long) As BOOL
|
---|
713 |
|
---|
714 | Declare Function GrayStringA Lib "user32" (ByVal hDC As HDC, ByVal hBrush As HBRUSH, ByVal lpOutputFunc As GRAYSTRINGPROC, ByVal lpData As LPARAM, ByVal nCount As Long, ByVal X As Long, ByVal Y As Long, ByVal nWidth As Long, ByVal nHeight As Long) As BOOL
|
---|
715 | Declare Function GrayStringW Lib "user32" (ByVal hDC As HDC, ByVal hBrush As HBRUSH, ByVal lpOutputFunc As GRAYSTRINGPROC, ByVal lpData As LPARAM, ByVal nCount As Long, ByVal X As Long, ByVal Y As Long, ByVal nWidth As Long, ByVal nHeight As Long) As BOOL
|
---|
716 | #ifdef UNICODE
|
---|
717 | Declare Function GrayString Lib "user32" Alias "GrayStringW" (ByVal hDC As HDC, ByVal hBrush As HBRUSH, ByVal lpOutputFunc As GRAYSTRINGPROC, ByVal lpData As LPARAM, ByVal nCount As Long, ByVal X As Long, ByVal Y As Long, ByVal nWidth As Long, ByVal nHeight As Long) As BOOL
|
---|
718 | #else
|
---|
719 | Declare Function GrayString Lib "user32" Alias "GrayStringA" (ByVal hDC As HDC, ByVal hBrush As HBRUSH, ByVal lpOutputFunc As GRAYSTRINGPROC, ByVal lpData As LPARAM, ByVal nCount As Long, ByVal X As Long, ByVal Y As Long, ByVal nWidth As Long, ByVal nHeight As Long) As BOOL
|
---|
720 | #endif ' !UNICODE
|
---|
721 |
|
---|
722 | Const DST_COMPLEX = &H0000
|
---|
723 | Const DST_TEXT = &H0001
|
---|
724 | Const DST_PREFIXTEXT = &H0002
|
---|
725 | Const DST_ICON = &H0003
|
---|
726 | Const DST_BITMAP = &H0004
|
---|
727 |
|
---|
728 | Const DSS_NORMAL = &H0000
|
---|
729 | Const DSS_UNION = &H0010
|
---|
730 | Const DSS_DISABLED = &H0020
|
---|
731 | Const DSS_MONO = &H0080
|
---|
732 | Const DSS_HIDEPREFIX = &H0200
|
---|
733 | Const DSS_PREFIXONLY = &H0400
|
---|
734 | Const DSS_RIGHT = &H8000
|
---|
735 |
|
---|
736 | TypeDef DRAWSTATEPROC = *Function(hdc As HDC, lData As LPARAM, wData As WPARAM, cx As Long, cy As Long) As BOOL
|
---|
737 |
|
---|
738 | Declare Function DrawStateA Lib "user32" (ByVal hdc As HDC, ByVal hbrFore As HBRUSH, ByVal qfnCallBack As DRAWSTATEPROC, ByVal lData As LPARAM, ByVal wData As WPARAM, ByVal x As Long, ByVal y As Long, ByVal cx As Long, ByVal cy As Long, ByVal uFlags As DWord) As BOOL
|
---|
739 | Declare Function DrawStateW Lib "user32" (ByVal hdc As HDC, ByVal hbrFore As HBRUSH, ByVal qfnCallBack As DRAWSTATEPROC, ByVal lData As LPARAM, ByVal wData As WPARAM, ByVal x As Long, ByVal y As Long, ByVal cx As Long, ByVal cy As Long, ByVal uFlags As DWord) As BOOL
|
---|
740 | #ifdef UNICODE
|
---|
741 | Declare Function DrawState Lib "user32" Alias "DrawStateW" (ByVal hdc As HDC, ByVal hbrFore As HBRUSH, ByVal qfnCallBack As DRAWSTATEPROC, ByVal lData As LPARAM, ByVal wData As WPARAM, ByVal x As Long, ByVal y As Long, ByVal cx As Long, ByVal cy As Long, ByVal uFlags As DWord) As BOOL
|
---|
742 | #else
|
---|
743 | Declare Function DrawState Lib "user32" Alias "DrawStateA" (ByVal hdc As HDC, ByVal hbrFore As HBRUSH, ByVal qfnCallBack As DRAWSTATEPROC, ByVal lData As LPARAM, ByVal wData As WPARAM, ByVal x As Long, ByVal y As Long, ByVal cx As Long, ByVal cy As Long, ByVal uFlags As DWord) As BOOL
|
---|
744 | #endif ' !UNICODE
|
---|
745 |
|
---|
746 | Declare Function TabbedTextOutA Lib "user32" (ByVal hdc As HDC, ByVal x As Long, ByVal y As Long, ByVal lpString As LPCSTR, ByVal chCount As Long, ByVal nTabPositions As Long, ByVal lpnTabStopPositions As *Long, ByVal nTabOrigin As Long) As Long
|
---|
747 | Declare Function TabbedTextOutW Lib "user32" (ByVal hdc As HDC, ByVal x As Long, ByVal y As Long, ByVal lpString As LPCWSTR, ByVal chCount As Long, ByVal nTabPositions As Long, ByVal lpnTabStopPositions As *Long, ByVal nTabOrigin As Long) As Long
|
---|
748 | #ifdef UNICODE
|
---|
749 | Declare Function TabbedTextOut Lib "user32" Alias "TabbedTextOutW" (ByVal hdc As HDC, ByVal x As Long, ByVal y As Long, ByVal lpString As LPCWSTR, ByVal chCount As Long, ByVal nTabPositions As Long, ByVal lpnTabStopPositions As *Long, ByVal nTabOrigin As Long) As Long
|
---|
750 | #else
|
---|
751 | Declare Function TabbedTextOut Lib "user32" Alias "TabbedTextOutA" (ByVal hdc As HDC, ByVal x As Long, ByVal y As Long, ByVal lpString As LPCSTR, ByVal chCount As Long, ByVal nTabPositions As Long, ByVal lpnTabStopPositions As *Long, ByVal nTabOrigin As Long) As Long
|
---|
752 | #endif ' !UNICODE
|
---|
753 |
|
---|
754 | Declare Function GetTabbedTextExtentA Lib "user32" (ByVal hdc As HDC, ByVal lpString As LPCSTR, ByVal chCount As Long, ByVal nTabPositions As Long, ByVal lpnTabStopPositions As *Long) As DWord
|
---|
755 | Declare Function GetTabbedTextExtentW Lib "user32" (ByVal hdc As HDC, ByVal lpString As LPCWSTR, ByVal chCount As Long, ByVal nTabPositions As Long, ByVal lpnTabStopPositions As *Long) As DWord
|
---|
756 | #ifdef UNICODE
|
---|
757 | Declare Function GetTabbedTextExtent Lib "user32" Alias "GetTabbedTextExtentW" (ByVal hdc As HDC, ByVal lpString As LPCWSTR, ByVal chCount As Long, ByVal nTabPositions As Long, ByVal lpnTabStopPositions As *Long) As DWord
|
---|
758 | #else
|
---|
759 | Declare Function GetTabbedTextExtent Lib "user32" Alias "GetTabbedTextExtentA" (ByVal hdc As HDC, ByVal lpString As LPCSTR, ByVal chCount As Long, ByVal nTabPositions As Long, ByVal lpnTabStopPositions As *Long) As DWord
|
---|
760 | #endif ' !UNICODE
|
---|
761 |
|
---|
762 | Declare Function EmptyClipboard Lib "user32" () As BOOL
|
---|
763 | Declare Function EnableMenuItem Lib "user32" (hMenu As HMENU, uIDEnableItem As DWord, uEnable As DWord) As BOOL
|
---|
764 |
|
---|
765 | Const ESB_ENABLE_BOTH = &H0000
|
---|
766 | Const ESB_DISABLE_BOTH = &H0003
|
---|
767 | Const ESB_DISABLE_LEFT = &H0001
|
---|
768 | Const ESB_DISABLE_RIGHT = &H0002
|
---|
769 | Const ESB_DISABLE_UP = &H0001
|
---|
770 | Const ESB_DISABLE_DOWN = &H0002
|
---|
771 | Const ESB_DISABLE_LTUP = ESB_DISABLE_LEFT
|
---|
772 | Const ESB_DISABLE_RTDN = ESB_DISABLE_RIGHT
|
---|
773 | Declare Function EnableScrollBar Lib "user32" (hWnd As HWND, dwSBflags As DWord, dwArrows As DWord) As BOOL
|
---|
774 |
|
---|
775 | Declare Function EnableWindow Lib "user32" (hWnd As HWND, bEnable As BOOL) As BOOL
|
---|
776 | Declare Function EndDialogAPI Lib "user32" Alias "EndDialog" (hwndDlg As HWND, nRet As Long) As BOOL
|
---|
777 | Declare Function EndPaint Lib "user32" (hWnd As HWND, ByRef lpPaint As PAINTSTRUCT) As BOOL
|
---|
778 | Declare Function EnumClipboardFormats Lib "user32" (uFormat As DWord) As DWord
|
---|
779 | Declare Function EnumChildWindows Lib "user32" (hwndParent As HWND, pEnumFunc As WNDENUMPROC, lParam As LPARAM) As BOOL
|
---|
780 | Declare Function EnumDisplayMonitors Lib "user32.dll" (ByVal hdc As HDC, lprcClip As *RECT, ByVal lpfnEnum As MONITORENUMPROC, dwData As LPARAM) As BOOL
|
---|
781 | Declare Function EnumThreadWindows Lib "user32" (dwThreadId As DWord, pEnumFunc As WNDENUMPROC, lParam As LPARAM) As BOOL
|
---|
782 | Declare Function EnumWindows Lib "user32" (pEnumFunc As WNDENUMPROC, lParam As LPARAM) As BOOL
|
---|
783 | Declare Function ExitWindowsEx Lib "user32" (uFlags As DWord, dwReserved As DWord) As BOOL
|
---|
784 | Declare Function FillRect Lib "user32" (hdc As HDC, ByRef lpRect As RECT, hBrush As HBRUSH) As BOOL
|
---|
785 |
|
---|
786 | Declare Function DrawFocusRect Lib "user32" (ByVal hDC As HDC, ByRef lprc As RECT) As BOOL
|
---|
787 |
|
---|
788 | Declare Function FindWindow Lib "user32" Alias _FuncName_FindWindow (pClassName As PCTSTR, lpWindowName As PCTSTR) As HWND
|
---|
789 | Declare Function FindWindowEx Lib "user32" Alias _FuncName_FindWindowEx (hwndParent As HWND, hwndChildAfter As HWND, pszClass As PCTSTR, pszWindow As PCTSTR) As HWND
|
---|
790 | Declare Function FlashWindow Lib "user32" (hWnd As HWND, bInvert As BOOL) As BOOL
|
---|
791 | Const FLASHW_STOP = 0
|
---|
792 | Const FLASHW_CAPTION = 1
|
---|
793 | Const FLASHW_TRAY = 2
|
---|
794 | Const FLASHW_ALL = (FLASHW_CAPTION Or FLASHW_TRAY)
|
---|
795 | Const FLASHW_TIMER = 4
|
---|
796 | Const FLASHW_TIMERNOFG = 12
|
---|
797 | Type FLASHWINFO
|
---|
798 | cbSize As DWord
|
---|
799 | hWnd As HWND
|
---|
800 | dwFlags As DWord
|
---|
801 | uCount As DWord
|
---|
802 | dwTimeout As DWord
|
---|
803 | End Type
|
---|
804 | Declare Function FlashWindowEx Lib "user32" (ByRef fwi As FLASHWINFO) As Long
|
---|
805 | Declare Function FrameRect Lib "user32" (hdc As HDC, ByRef lpRect As RECT, hBrush As HBRUSH) As Long
|
---|
806 | Declare Function GetActiveWindow Lib "user32" () As HWND
|
---|
807 | Declare Function GetAsyncKeyState Lib "user32" (vKey As Long) As Integer
|
---|
808 | Declare Function GetCapture Lib "user32" () As HWND
|
---|
809 | Declare Function GetCaretPos Lib "user32" (ByRef lpPoint As POINTAPI) As BOOL
|
---|
810 | Declare Function GetClassInfoEx Lib "user32" Alias _FuncName_GetClassInfoEx (hInst As HINSTANCE, pszClass As PCTSTR, ByRef lpwcx As WNDCLASSEX) As BOOL
|
---|
811 |
|
---|
812 | Const GCL_MENUNAME = -8
|
---|
813 | Const GCL_HBRBACKGROUND = -10
|
---|
814 | Const GCL_HCURSOR = -12
|
---|
815 | Const GCL_HICON = -14
|
---|
816 | Const GCL_HMODULE = -16
|
---|
817 | Const GCL_CBWNDEXTRA = -18
|
---|
818 | Const GCL_CBCLSEXTRA = -20
|
---|
819 | Const GCL_WNDPROC = -24
|
---|
820 | Const GCL_STYLE = -26
|
---|
821 | Const GCW_ATOM = -32
|
---|
822 | Const GCL_HICONSM = -34
|
---|
823 | #ifdef _WIN64
|
---|
824 | Declare Function GetClassLong Lib "user32" Alias _FuncName_GetClassLongPtr (hWnd As HWND, nIndex As Long) As LONG_PTR
|
---|
825 | Declare Function GetClassLongPtr Lib "user32" Alias _FuncName_GetClassLongPtr (hWnd As HWND, nIndex As Long) As LONG_PTR
|
---|
826 | #else
|
---|
827 | Declare Function GetClassLong Lib "user32" Alias _FuncName_GetClassLong (hWnd As HWND, nIndex As Long) As LONG_PTR
|
---|
828 | Declare Function GetClassLongPtr Lib "user32" Alias _FuncName_GetClassLong (hWnd As HWND, nIndex As Long) As LONG_PTR
|
---|
829 | #endif
|
---|
830 |
|
---|
831 | Declare Function GetClassName Lib "user32" Alias _FuncName_GetClassName (hWnd As HWND, lpClassName As PTSTR, nMaxCount As Long) As Long
|
---|
832 | Declare Function GetClientRect Lib "user32" (hWnd As HWND, ByRef lpRect As RECT) As BOOL
|
---|
833 | Declare Function GetClipboardData Lib "user32" (uFormat As DWord) As HANDLE
|
---|
834 | Declare Function GetClipboardFormatName Lib "user32" Alias _FuncName_GetClipboardFormatName (uFormat As DWord, pszFormatName As PTSTR, cchMaxCount As Long) As BOOL
|
---|
835 | Declare Function GetClipboardOwner Lib "user32" () As HWND
|
---|
836 | Declare Function GetClipboardViewer Lib "user32" () As HWND
|
---|
837 | Declare Function GetClipCursor Lib "user32" (ByRef lpRect As RECT) As BOOL
|
---|
838 | Declare Function GetCursor Lib "user32" () As HCURSOR
|
---|
839 | Declare Function GetCursorPos Lib "user32" (ByRef lpPoint As POINTAPI) As BOOL
|
---|
840 | Declare Function GetDC Lib "user32" (hWnd As HWND) As HDC
|
---|
841 |
|
---|
842 | Const DCX_WINDOW = &H00000001
|
---|
843 | Const DCX_CACHE = &H00000002
|
---|
844 | Const DCX_NORESETATTRS = &H00000004
|
---|
845 | Const DCX_CLIPCHILDREN = &H00000008
|
---|
846 | Const DCX_CLIPSIBLINGS = &H00000010
|
---|
847 | Const DCX_PARENTCLIP = &H00000020
|
---|
848 | Const DCX_EXCLUDERGN = &H00000040
|
---|
849 | Const DCX_INTERSECTRGN = &H00000080
|
---|
850 | Const DCX_EXCLUDEUPDATE = &H00000100
|
---|
851 | Const DCX_INTERSECTUPDATE = &H00000200
|
---|
852 | Const DCX_LOCKWINDOWUPDATE = &H00000400
|
---|
853 | Const DCX_VALIDATE = &H00200000
|
---|
854 | Declare Function GetDCEx Lib "user32" (hWnd As HWND, hrgnClip As HRGN, dwFlags As DWord) As HDC
|
---|
855 |
|
---|
856 | Declare Function GetDesktopWindow Lib "user32" () As HWND
|
---|
857 | Declare Function GetDialogBaseUnits Lib "user32" () As Long
|
---|
858 | Declare Function GetDlgCtrlID Lib "user32" (hWnd As HWND) As Long
|
---|
859 | Declare Function GetDlgItem Lib "user32" (hDlg As HWND, nIDDlgItem As Long) As HWND
|
---|
860 | Declare Function GetDlgItemInt Lib "user32" (hDlg As HWND, nIDDlgItem As Long, lpTranslated As *BOOL, bSigned As BOOL) As DWord
|
---|
861 | Declare Function GetDlgItemText Lib "user32" Alias _FuncName_GetDlgItemText (hDlg As HWND, nIDDlgItem As Long, pString As PTSTR, nMaxCount As Long) As Long
|
---|
862 | Declare Function GetDoubleClickTime Lib "user32" () As DWord
|
---|
863 | Declare Function GetFocus Lib "user32" () As HWND
|
---|
864 | Declare Function GetForegroundWindow Lib "user32" () As HWND
|
---|
865 | Declare Function GetIconInfo Lib "user32" (hIcon As HICON, ByRef pIconInfo As ICONINFO) As Long
|
---|
866 | Declare Function GetKeyboardState Lib "user32" (lpKeyState As *Byte) As BOOL
|
---|
867 | Declare Function GetKeyState Lib "user32" (nVirtKey As Long) As Integer
|
---|
868 | Declare Function GetListBoxInfo Lib "user32" (ByVal hwnd As HWND) As DWord
|
---|
869 | Declare Function GetMenu Lib "user32" (hWnd As HWND) As HMENU
|
---|
870 |
|
---|
871 | Declare Function GetMenuContextHelpId Lib "user32" (hmenu As HMENU) As DWord
|
---|
872 | Const GMDI_USEDISABLED = &H0001
|
---|
873 | Const GMDI_GOINTOPOPUPS = &H0002
|
---|
874 | Declare Function GetMenuDefaultItem Lib "user32" (hMenu As HMENU, fByPos As DWord, gmdiFlags As DWord) As DWord
|
---|
875 |
|
---|
876 | Declare Function GetMenuItemID Lib "user32" (hMenu As HMENU, nPos As Long) As DWord
|
---|
877 | Declare Function GetMenuItemCount Lib "user32" (hMenu As HMENU) As Long
|
---|
878 | Declare Function GetMenuItemInfo Lib "user32" Alias _FuncName_GetMenuItemInfo (hMenu As HMENU, uItem As DWord, fByPosition As DWord, ByRef mii As MENUITEMINFO) As BOOL
|
---|
879 | Declare Function GetMessage Lib "user32" Alias _FuncName_GetMessage (ByRef Msg As MSG, hWnd As HWND, wMsgFilterMin As DWord, wMsgFilterMax As DWord) As Long
|
---|
880 | Const CCHDEVICENAME = 32
|
---|
881 | Type MONITORINFO
|
---|
882 | cbSize As DWord
|
---|
883 | rcMonitor As RECT
|
---|
884 | rcWork As RECT
|
---|
885 | dwFlags As DWord
|
---|
886 | End Type
|
---|
887 | Type MONITORINFOEXA
|
---|
888 | cbSize As DWord
|
---|
889 | rcMonitor As RECT
|
---|
890 | rcWork As RECT
|
---|
891 | dwFlags As DWord
|
---|
892 | szDevice[ELM(CCHDEVICENAME)] As SByte
|
---|
893 | End Type
|
---|
894 | Type MONITORINFOEXW
|
---|
895 | cbSize As DWord
|
---|
896 | rcMonitor As RECT
|
---|
897 | rcWork As RECT
|
---|
898 | dwFlags As DWord
|
---|
899 | szDevice[ELM(CCHDEVICENAME)] As WCHAR
|
---|
900 | End Type
|
---|
901 | Declare Function GetMonitorInfo Lib "user32.dll" Alias _FuncName_GetMonitorInfo (hMonitor As HMONITOR, ByRef mi As Any /*MONITORINFO*/) As BOOL
|
---|
902 | Declare Function GetNextDlgGroupItem Lib "user32" (hDlg As HWND, hCtl As HWND, bPrevious As BOOL) As HWND
|
---|
903 | Declare Function GetNextDlgTabItem Lib "user32" (hDlg As HWND, hCtl As HWND, bPrevious As BOOL) As HWND
|
---|
904 | Declare Function GetOpenClipboardWindow Lib "user32" () As HWND
|
---|
905 | Declare Function GetParent Lib "user32" (hWnd As HWND) As HWND
|
---|
906 | Declare Function GetPriorityClipboardFormat Lib "user32" (lpFormatList As *DWord, FormatNum As Long) As Long
|
---|
907 | Declare Function GetProp Lib "user32" Alias _FuncName_GetProp (hWnd As HWND, pString As PCTSTR) As HANDLE
|
---|
908 | Declare Function GetScrollInfo Lib "user32" (hWnd As HWND, fnBar As Long, ByRef lpsi As SCROLLINFO) As BOOL
|
---|
909 |
|
---|
910 | Declare Function GetSubMenu Lib "user32" (hMenu As HMENU, nPos As Long) As HMENU
|
---|
911 |
|
---|
912 | Const COLOR_SCROLLBAR = 0
|
---|
913 | Const COLOR_BACKGROUND = 1
|
---|
914 | Const COLOR_ACTIVECAPTION = 2
|
---|
915 | Const COLOR_INACTIVECAPTION = 3
|
---|
916 | Const COLOR_MENU = 4
|
---|
917 | Const COLOR_WINDOW = 5
|
---|
918 | Const COLOR_WINDOWFRAME = 6
|
---|
919 | Const COLOR_MENUTEXT = 7
|
---|
920 | Const COLOR_WINDOWTEXT = 8
|
---|
921 | Const COLOR_CAPTIONTEXT = 9
|
---|
922 | Const COLOR_ACTIVEBORDER = 10
|
---|
923 | Const COLOR_INACTIVEBORDER = 11
|
---|
924 | Const COLOR_APPWORKSPACE = 12
|
---|
925 | Const COLOR_HIGHLIGHT = 13
|
---|
926 | Const COLOR_HIGHLIGHTTEXT = 14
|
---|
927 | Const COLOR_BTNFACE = 15
|
---|
928 | Const COLOR_BTNSHADOW = 16
|
---|
929 | Const COLOR_GRAYTEXT = 17
|
---|
930 | Const COLOR_BTNTEXT = 18
|
---|
931 | Const COLOR_INACTIVECAPTIONTEXT = 19
|
---|
932 | Const COLOR_BTNHIGHLIGHT = 20
|
---|
933 | Const COLOR_3DDKSHADOW = 21
|
---|
934 | Const COLOR_3DLIGHT = 22
|
---|
935 | Const COLOR_INFOTEXT = 23
|
---|
936 | Const COLOR_INFOBK = 24
|
---|
937 | Const COLOR_HOTLIGHT = 26
|
---|
938 | Const COLOR_GRADIENTACTIVECAPTION = 27
|
---|
939 | Const COLOR_GRADIENTINACTIVECAPTION = 28
|
---|
940 | Const COLOR_DESKTOP = COLOR_BACKGROUND
|
---|
941 | Const COLOR_3DFACE = COLOR_BTNFACE
|
---|
942 | Const COLOR_3DSHADOW = COLOR_BTNSHADOW
|
---|
943 | Const COLOR_3DHIGHLIGHT = COLOR_BTNHIGHLIGHT
|
---|
944 | Const COLOR_3DHILIGHT = COLOR_BTNHIGHLIGHT
|
---|
945 | Const COLOR_BTNHILIGHT = COLOR_BTNHIGHLIGHT
|
---|
946 | Declare Function GetSysColor Lib "user32" (nIndex As Long) As DWord
|
---|
947 | Declare Function GetSysColorBrush Lib "user32" (nIndex As Long) As HBRUSH
|
---|
948 |
|
---|
949 | Declare Function GetSystemMenu Lib "user32" (hWnd As HWND, bRevert As BOOL) As HMENU
|
---|
950 |
|
---|
951 | Const SM_CXSCREEN = 0
|
---|
952 | Const SM_CYSCREEN = 1
|
---|
953 | Const SM_CXVSCROLL = 2
|
---|
954 | Const SM_CYHSCROLL = 3
|
---|
955 | Const SM_CYCAPTION = 4
|
---|
956 | Const SM_CXBORDER = 5
|
---|
957 | Const SM_CYBORDER = 6
|
---|
958 | Const SM_CXDLGFRAME = 7
|
---|
959 | Const SM_CYDLGFRAME = 8
|
---|
960 | Const SM_CYVTHUMB = 9
|
---|
961 | Const SM_CXHTHUMB = 10
|
---|
962 | Const SM_CXICON = 11
|
---|
963 | Const SM_CYICON = 12
|
---|
964 | Const SM_CXCURSOR = 13
|
---|
965 | Const SM_CYCURSOR = 14
|
---|
966 | Const SM_CYMENU = 15
|
---|
967 | Const SM_CXFULLSCREEN = 16
|
---|
968 | Const SM_CYFULLSCREEN = 17
|
---|
969 | Const SM_CYKANJIWINDOW = 18
|
---|
970 | Const SM_MOUSEPRESENT = 19
|
---|
971 | Const SM_CYVSCROLL = 20
|
---|
972 | Const SM_CXHSCROLL = 21
|
---|
973 | Const SM_DEBUG = 22
|
---|
974 | Const SM_SWAPBUTTON = 23
|
---|
975 | Const SM_RESERVED1 = 24
|
---|
976 | Const SM_RESERVED2 = 25
|
---|
977 | Const SM_RESERVED3 = 26
|
---|
978 | Const SM_RESERVED4 = 27
|
---|
979 | Const SM_CXMIN = 28
|
---|
980 | Const SM_CYMIN = 29
|
---|
981 | Const SM_CXSIZE = 30
|
---|
982 | Const SM_CYSIZE = 31
|
---|
983 | Const SM_CXFRAME = 32
|
---|
984 | Const SM_CYFRAME = 33
|
---|
985 | Const SM_CXMINTRACK = 34
|
---|
986 | Const SM_CYMINTRACK = 35
|
---|
987 | Const SM_CXDOUBLECLK = 36
|
---|
988 | Const SM_CYDOUBLECLK = 37
|
---|
989 | Const SM_CXICONSPACING = 38
|
---|
990 | Const SM_CYICONSPACING = 39
|
---|
991 | Const SM_MENUDROPALIGNMENT = 40
|
---|
992 | Const SM_PENWINDOWS = 41
|
---|
993 | Const SM_DBCSENABLED = 42
|
---|
994 | Const SM_CMOUSEBUTTONS = 43
|
---|
995 | Const SM_CXFIXEDFRAME = SM_CXDLGFRAME
|
---|
996 | Const SM_CYFIXEDFRAME = SM_CYDLGFRAME
|
---|
997 | Const SM_CXSIZEFRAME = SM_CXFRAME
|
---|
998 | Const SM_CYSIZEFRAME = SM_CYFRAME
|
---|
999 | Const SM_SECURE = 44
|
---|
1000 | Const SM_CXEDGE = 45
|
---|
1001 | Const SM_CYEDGE = 46
|
---|
1002 | Const SM_CXMINSPACING = 47
|
---|
1003 | Const SM_CYMINSPACING = 48
|
---|
1004 | Const SM_CXSMICON = 49
|
---|
1005 | Const SM_CYSMICON = 50
|
---|
1006 | Const SM_CYSMCAPTION = 51
|
---|
1007 | Const SM_CXSMSIZE = 52
|
---|
1008 | Const SM_CYSMSIZE = 53
|
---|
1009 | Const SM_CXMENUSIZE = 54
|
---|
1010 | Const SM_CYMENUSIZE = 55
|
---|
1011 | Const SM_ARRANGE = 56
|
---|
1012 | Const SM_CXMINIMIZED = 57
|
---|
1013 | Const SM_CYMINIMIZED = 58
|
---|
1014 | Const SM_CXMAXTRACK = 59
|
---|
1015 | Const SM_CYMAXTRACK = 60
|
---|
1016 | Const SM_CXMAXIMIZED = 61
|
---|
1017 | Const SM_CYMAXIMIZED = 62
|
---|
1018 | Const SM_NETWORK = 63
|
---|
1019 | Const SM_CLEANBOOT = 67
|
---|
1020 | Const SM_CXDRAG = 68
|
---|
1021 | Const SM_CYDRAG = 69
|
---|
1022 | Const SM_SHOWSOUNDS = 70
|
---|
1023 | Const SM_CXMENUCHECK = 71
|
---|
1024 | Const SM_CYMENUCHECK = 72
|
---|
1025 | Const SM_SLOWMACHINE = 73
|
---|
1026 | Const SM_MIDEASTENABLED = 74
|
---|
1027 | Const SM_MOUSEWHEELPRESENT = 75
|
---|
1028 | Declare Function GetSystemMetrics Lib "user32" (nIndex As Long) As Long
|
---|
1029 |
|
---|
1030 | Declare Function GetUpdateRect Lib "user32" (hWnd As HWND, ByRef lpRect As RECT, bErase As BOOL) As BOOL
|
---|
1031 | Declare Function GetUpdateRgn Lib "user32" (hWnd As HWND, hRgn As HRGN, bErase As BOOL) As BOOL
|
---|
1032 |
|
---|
1033 | Const GW_HWNDFIRST = 0
|
---|
1034 | Const GW_HWNDLAST = 1
|
---|
1035 | Const GW_HWNDNEXT = 2
|
---|
1036 | Const GW_HWNDPREV = 3
|
---|
1037 | Const GW_OWNER = 4
|
---|
1038 | Const GW_CHILD = 5
|
---|
1039 | Declare Function GetWindow Lib "user32" (hWnd As HWND, uCmd As DWord) As HWND
|
---|
1040 |
|
---|
1041 | Declare Function GetTopWindow Lib "user32" (ByVal hWnd As HWND) As HWND
|
---|
1042 |
|
---|
1043 | Function GetNextWindow(ByVal hWnd As HWND, ByVal wCmd As DWord) As HWND
|
---|
1044 | Return GetWindow(hWnd, wCmd) As HWND
|
---|
1045 | End Function
|
---|
1046 | Function GetSysModalWindow() As HWND
|
---|
1047 | Return (NULL) As HWND
|
---|
1048 | End Function
|
---|
1049 | Function SetSysModalWindow(ByVal hWnd As HWND) As HWND
|
---|
1050 | Return (NULL) As HWND
|
---|
1051 | End Function
|
---|
1052 |
|
---|
1053 | Function GetWindowTask(hWnd As HWND) As HANDLE
|
---|
1054 | Return GetWindowThreadProcessId(hWnd, NULL) As HANDLE
|
---|
1055 | End Function
|
---|
1056 |
|
---|
1057 | Declare Function GetLastActivePopup Lib "user32" (ByVal hWnd As HWND) As HWND
|
---|
1058 |
|
---|
1059 |
|
---|
1060 | Declare Function GetWindowContextHelpId Lib "user32" (hwnd As HWND) As DWord
|
---|
1061 |
|
---|
1062 | Declare Function GetWindowDC Lib "user32" (hWnd As HWND) As HDC
|
---|
1063 |
|
---|
1064 | #ifndef _WIN64
|
---|
1065 | Const GWL_WNDPROC = -4
|
---|
1066 | Const GWL_HINSTANCE = -6
|
---|
1067 | Const GWL_HWNDPARENT = -8
|
---|
1068 | Const GWL_USERDATA = -21
|
---|
1069 | Const GWL_ID = -12
|
---|
1070 | #endif
|
---|
1071 |
|
---|
1072 | Const GWL_STYLE = -16
|
---|
1073 | Const GWL_EXSTYLE = -20
|
---|
1074 |
|
---|
1075 | Const GWLP_WNDPROC = -4
|
---|
1076 | Const GWLP_HINSTANCE = -6
|
---|
1077 | Const GWLP_HWNDPARENT = -8
|
---|
1078 | Const GWLP_USERDATA = -21
|
---|
1079 | Const GWLP_ID = -12
|
---|
1080 |
|
---|
1081 |
|
---|
1082 | #ifdef _WIN64
|
---|
1083 | Declare Function GetWindowLong Lib "user32" Alias _FuncName_GetWindowLongPtr (hWnd As HWND, nIndex As Long) As LONG_PTR
|
---|
1084 | Declare Function GetWindowLongPtr Lib "user32" Alias _FuncName_GetWindowLongPtr (hWnd As HWND, nIndex As Long) As LONG_PTR
|
---|
1085 | #else
|
---|
1086 | Declare Function GetWindowLong Lib "user32" Alias _FuncName_GetWindowLong (hWnd As HWND, nIndex As Long) As LONG_PTR
|
---|
1087 | Declare Function GetWindowLongPtr Lib "user32" Alias _FuncName_GetWindowLong (hWnd As HWND, nIndex As Long) As LONG_PTR
|
---|
1088 | #endif
|
---|
1089 | Declare Function GetWindowModuleFileName Lib "user32" Alias _FuncName_GetWindowModuleFileName (hwnd As HWND, pszFileName As LPTSTR, cchFileNameMax As DWord) As DWord
|
---|
1090 |
|
---|
1091 | Const WPF_SETMINPOSITION = &H0001
|
---|
1092 | Const WPF_RESTORETOMAXIMIZED = &H0002
|
---|
1093 | Type WINDOWPLACEMENT
|
---|
1094 | length As DWord
|
---|
1095 | flags As DWord
|
---|
1096 | showCmd As DWord
|
---|
1097 | ptMinPosition As POINTAPI
|
---|
1098 | ptMaxPosition As POINTAPI
|
---|
1099 | rcNormalPosition As RECT
|
---|
1100 | End Type
|
---|
1101 | Declare Function GetWindowPlacement Lib "user32" (hWnd As HWND, ByRef lpwndpl As WINDOWPLACEMENT) As BOOL
|
---|
1102 |
|
---|
1103 | Declare Function GetWindowRect Lib "user32" (hWnd As HWND, ByRef lpRect As RECT) As BOOL
|
---|
1104 |
|
---|
1105 | Declare Function GetWindowRgn Lib "user32" (hWnd As HWND, hRgn As HRGN) As Long
|
---|
1106 | Declare Function ExcludeUpdateRgn Lib "user32" (ByVal hDC As HDC, ByVal hWnd As HWND) As Long
|
---|
1107 |
|
---|
1108 | Declare Function GetWindowText Lib "user32" Alias _FuncName_GetWindowText (hWnd As HWND, lpString As PTSTR, nMaxCount As Long) As Long
|
---|
1109 | Declare Function GetWindowTextLength Lib "user32" Alias _FuncName_GetWindowTextLength (hWnd As HWND) As Long
|
---|
1110 | Declare Function GetWindowThreadProcessId Lib "user32" (hWnd As HWND, pdwProcessId As *DWord) As DWord
|
---|
1111 | Declare Function HideCaret Lib "user32" (hWnd As HWND) As BOOL
|
---|
1112 | Declare Function InsertMenuItem Lib "user32" Alias _FuncName_InsertMenuItem (hMenu As HMENU, uItem As DWord, fByPosition As BOOL, ByRef mii As MENUITEMINFO) As BOOL
|
---|
1113 | Declare Function InvalidateRect Lib "user32" (hWnd As HWND, ByRef Rect As RECT, bErase As BOOL) As BOOL
|
---|
1114 | Declare Function InvalidateRgn Lib "user32" (hWnd As HWND, hRgn As HRGN, bErase As BOOL) As BOOL
|
---|
1115 | Declare Function InvertRect Lib "user32" (hdc As HDC, ByRef lpRect As RECT) As BOOL
|
---|
1116 | Declare Function IsCharAlpha Lib "user32" Alias _FuncName_IsCharAlpha (ch As TCHAR) As BOOL
|
---|
1117 | Declare Function IsCharAlphaNumeric Lib "user32" Alias _FuncName_IsCharAlphaNumeric (ch As TCHAR) As BOOL
|
---|
1118 | Declare Function IsCharLower Lib "user32" Alias _FuncName_IsCharLower (ch As TCHAR) As BOOL
|
---|
1119 | Declare Function IsCharUpper Lib "user32" Alias _FuncName_IsCharUpper (ch As TCHAR) As BOOL
|
---|
1120 | Declare Function IsChild Lib "user32" (hWndParent As HWND, hWnd As HWND) As BOOL
|
---|
1121 | Declare Function IsClipboardFormatAvailable Lib "user32" (ByVal wFormat As DWord) As BOOL
|
---|
1122 | Declare Function IsDialogMessage Lib "user32" Alias _FuncName_IsDialogMessage (hDlg As HWND, ByRef msg As MSG) As BOOL
|
---|
1123 | Declare Function IsDlgButtonChecked Lib "user32" (hDlg As HWND, nIDButton As Long) As DWord
|
---|
1124 | Declare Function IsIconic Lib "user32" (hWnd As HWND) As BOOL
|
---|
1125 | Declare Function IsWindow Lib "user32" (hWnd As HWND) As BOOL
|
---|
1126 | Declare Function IsWindowEnabled Lib "user32" (hWnd As HWND) As BOOL
|
---|
1127 | Declare Function IsWindowUnicode Lib "user32" (hWnd As HWND) As BOOL
|
---|
1128 | Declare Function IsWindowVisible Lib "user32" (hWnd As HWND) As BOOL
|
---|
1129 | Declare Function IsZoomed Lib "user32" (hWnd As HWND) As BOOL
|
---|
1130 |
|
---|
1131 | Const KEYEVENTF_EXTENDEDKEY = &H0001
|
---|
1132 | Const KEYEVENTF_KEYUP = &H0002
|
---|
1133 | Declare Sub keybd_event Lib "user32" (bVk As Byte, bScan As Byte, dwFlags As DWord, dwExtraInfo As DWord)
|
---|
1134 |
|
---|
1135 | Declare Function KillTimer Lib "user32" (hWnd As HWND, nIDEvent As ULONG_PTR) As BOOL
|
---|
1136 | Declare Function LoadBitmap Lib "user32" Alias _FuncName_LoadBitmap (hInst As HINSTANCE, pBitmapName As PCTSTR) As HBITMAP
|
---|
1137 |
|
---|
1138 | Const IDC_ARROW = 32512
|
---|
1139 | Const IDC_IBEAM = 32513
|
---|
1140 | Const IDC_WAIT = 32514
|
---|
1141 | Const IDC_CROSS = 32515
|
---|
1142 | Const IDC_UPARROW = 32516
|
---|
1143 | Const IDC_SIZE = 32640
|
---|
1144 | Const IDC_ICON = 32641
|
---|
1145 | Const IDC_SIZENWSE = 32642
|
---|
1146 | Const IDC_SIZENESW = 32643
|
---|
1147 | Const IDC_SIZEWE = 32644
|
---|
1148 | Const IDC_SIZENS = 32645
|
---|
1149 | Const IDC_SIZEALL = 32646
|
---|
1150 | Const IDC_NO = 32648
|
---|
1151 | Const IDC_HAND = 32649
|
---|
1152 | Const IDC_APPSTARTING = 32650
|
---|
1153 | Const IDC_HELP = 32651
|
---|
1154 | Declare Function LoadCursor Lib "user32" Alias _FuncName_LoadCursor (hInst As HINSTANCE, pCursorName As PCTSTR) As HCURSOR
|
---|
1155 |
|
---|
1156 | Declare Function LoadCursorFromFile Lib "user32" Alias _FuncName_LoadCursorFromFile (pFileName As PCTSTR) As HCURSOR
|
---|
1157 |
|
---|
1158 | Const IDI_APPLICATION = 32512
|
---|
1159 | Const IDI_HAND = 32513
|
---|
1160 | Const IDI_QUESTION = 32514
|
---|
1161 | Const IDI_EXCLAMATION = 32515
|
---|
1162 | Const IDI_ASTERISK = 32516
|
---|
1163 | Const IDI_WINLOGO = 32517
|
---|
1164 | Declare Function LoadIcon Lib "user32" Alias _FuncName_LoadIcon (hInst As HINSTANCE, pIconName As PCTSTR) As HICON
|
---|
1165 |
|
---|
1166 | Const IMAGE_BITMAP = 0
|
---|
1167 | Const IMAGE_ICON = 1
|
---|
1168 | Const IMAGE_CURSOR = 2
|
---|
1169 | Const IMAGE_ENHMETAFILE = 3
|
---|
1170 | Const LR_DEFAULTCOLOR = &H0000
|
---|
1171 | Const LR_MONOCHROME = &H0001
|
---|
1172 | Const LR_COLOR = &H0002
|
---|
1173 | Const LR_COPYRETURNORG = &H0004
|
---|
1174 | Const LR_COPYDELETEORG = &H0008
|
---|
1175 | Const LR_LOADFROMFILE = &H0010
|
---|
1176 | Const LR_LOADTRANSPARENT = &H0020
|
---|
1177 | Const LR_DEFAULTSIZE = &H0040
|
---|
1178 | Const LR_VGACOLOR = &H0080
|
---|
1179 | Const LR_LOADMAP3DCOLORS = &H1000
|
---|
1180 | Const LR_CREATEDIBSECTION = &H2000
|
---|
1181 | Const LR_COPYFROMRESOURCE = &H4000
|
---|
1182 | Const LR_SHARED = &H8000
|
---|
1183 | 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
|
---|
1184 | Declare Function LoadString Lib "user32" Alias _FuncName_LoadString (hInstance As HINSTANCE, uID As DWord, lpBuffer As LPTSTR, nBufferMax As Long) As Long
|
---|
1185 | Declare Function LockWindowUpdate Lib "user32" (hWnd As HWND) As BOOL
|
---|
1186 | Declare Function MapVirtualKey Lib "user32" Alias _FuncName_MapVirtualKey (wCode As DWord, wMapType As DWord) As DWord
|
---|
1187 | Declare Function MapWindowPoints Lib "user32" (
|
---|
1188 | hWndFrom As HWND,
|
---|
1189 | hWndTo As HWND,
|
---|
1190 | pPoints As *POINTAPI,
|
---|
1191 | cPoints As DWord) As Long
|
---|
1192 | Declare Function MessageBeep Lib "user32" (uType As DWord) As BOOL
|
---|
1193 |
|
---|
1194 | Const MB_OK = &H00000000
|
---|
1195 | Const MB_OKCANCEL = &H00000001
|
---|
1196 | Const MB_ABORTRETRYIGNORE = &H00000002
|
---|
1197 | Const MB_YESNOCANCEL = &H00000003
|
---|
1198 | Const MB_YESNO = &H00000004
|
---|
1199 | Const MB_RETRYCANCEL = &H00000005
|
---|
1200 | Const MB_ICONHAND = &H00000010
|
---|
1201 | Const MB_ICONQUESTION = &H00000020
|
---|
1202 | Const MB_ICONEXCLAMATION = &H00000030
|
---|
1203 | Const MB_ICONASTERISK = &H00000040
|
---|
1204 | Const MB_USERICON = &H00000080
|
---|
1205 | Const MB_ICONWARNING = MB_ICONEXCLAMATION
|
---|
1206 | Const MB_ICONERROR = MB_ICONHAND
|
---|
1207 | Const MB_ICONINFORMATION = MB_ICONASTERISK
|
---|
1208 | Const MB_ICONSTOP = MB_ICONHAND
|
---|
1209 | Const MB_DEFBUTTON1 = &H00000000
|
---|
1210 | Const MB_DEFBUTTON2 = &H00000100
|
---|
1211 | Const MB_DEFBUTTON3 = &H00000200
|
---|
1212 | Const MB_DEFBUTTON4 = &H00000300
|
---|
1213 | Const MB_APPLMODAL = &H00000000
|
---|
1214 | Const MB_SYSTEMMODAL = &H00001000
|
---|
1215 | Const MB_TASKMODAL = &H00002000
|
---|
1216 | Const MB_HELP = &H00004000
|
---|
1217 | Const MB_NOFOCUS = &H00008000
|
---|
1218 | Const MB_SETFOREGROUND = &H00010000
|
---|
1219 | Const MB_DEFAULT_DESKTOP_ONLY = &H00020000
|
---|
1220 | Const MB_TOPMOST = &H00040000
|
---|
1221 | Const MB_RIGHT = &H00080000
|
---|
1222 | Const MB_RTLREADING = &H00100000
|
---|
1223 | Const MB_SERVICE_NOTIFICATION = &H00200000
|
---|
1224 | #ifdef UNICODE
|
---|
1225 | Declare Function MessageBox Lib "user32" Alias "MessageBoxW" (hwnd As HWND, pText As PCWSTR, pCaption As PCWSTR, uType As DWord) As Long
|
---|
1226 | #else
|
---|
1227 | Declare Function MessageBox Lib "user32" Alias "MessageBoxA" (hwnd As HWND, pText As PCSTR, pCaption As PCSTR, uType As DWord) As Long
|
---|
1228 | #endif
|
---|
1229 | Declare Function MessageBoxW Lib "user32" (hWnd As HWND, pText As PCWSTR, pCaption As PCWSTR, uType As DWord) As Long
|
---|
1230 | Declare Function MessageBoxA Lib "user32" (hWnd As HWND, pText As PCSTR, pCaption As PCSTR, uType As DWord) As Long
|
---|
1231 | Const MOUSEEVENTF_MOVE = &H0001
|
---|
1232 | Const MOUSEEVENTF_LEFTDOWN = &H0002
|
---|
1233 | Const MOUSEEVENTF_LEFTUP = &H0004
|
---|
1234 | Const MOUSEEVENTF_RIGHTDOWN = &H0008
|
---|
1235 | Const MOUSEEVENTF_RIGHTUP = &H0010
|
---|
1236 | Const MOUSEEVENTF_MIDDLEDOWN = &H0020
|
---|
1237 | Const MOUSEEVENTF_MIDDLEUP = &H0040
|
---|
1238 | Const MOUSEEVENTF_WHEEL = &H0800
|
---|
1239 | Const MOUSEEVENTF_ABSOLUTE = &H8000
|
---|
1240 | Declare Sub mouse_event Lib "user32" (dwFlags As DWord, dx As DWord, dy As DWord, dwData As DWord, dwExtraInfo As DWord)
|
---|
1241 |
|
---|
1242 | 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
|
---|
1243 | Declare Function OpenClipboard Lib "user32" (hWndNewOwner As HWND) As BOOL
|
---|
1244 | Declare Function OpenIcon Lib "user32" (hWnd As HWND) As BOOL
|
---|
1245 |
|
---|
1246 | Const PM_NOREMOVE = &H0000
|
---|
1247 | Const PM_REMOVE = &H0001
|
---|
1248 | 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
|
---|
1249 |
|
---|
1250 | Const HWND_BROADCAST = &HFFFF
|
---|
1251 | Declare Function PostMessage Lib "user32" Alias _FuncName_PostMessage (hWnd As HWND, wMsg As DWord, wParam As WPARAM, lParam As LPARAM) As BOOL
|
---|
1252 |
|
---|
1253 | Declare Sub PostQuitMessage Lib "user32" (nExitCode As Long)
|
---|
1254 | Declare Function PostThreadMessage Lib "user32" Alias _FuncName_PostThreadMessage (idThread As DWord, Msg As DWord, wParam As WPARAM, lParam As LPARAM) As BOOL
|
---|
1255 | Declare Function RealChildWindowFromPoint Lib "user32" (hwndParent As HWND, xPoint As Long, yPoint As Long) As HWND
|
---|
1256 |
|
---|
1257 | Const RDW_INVALIDATE = &H0001
|
---|
1258 | Const RDW_INTERNALPAINT = &H0002
|
---|
1259 | Const RDW_ERASE = &H0004
|
---|
1260 | Const RDW_VALIDATE = &H0008
|
---|
1261 | Const RDW_NOINTERNALPAINT = &H0010
|
---|
1262 | Const RDW_NOERASE = &H0020
|
---|
1263 | Const RDW_NOCHILDREN = &H0040
|
---|
1264 | Const RDW_ALLCHILDREN = &H0080
|
---|
1265 | Const RDW_UPDATENOW = &H0100
|
---|
1266 | Const RDW_ERASENOW = &H0200
|
---|
1267 | Const RDW_FRAME = &H0400
|
---|
1268 | Const RDW_NOFRAME = &H0800
|
---|
1269 | Declare Function RedrawWindow Lib "user32" (hWnd As HWND, ByRef lprcUpdate As RECT, hrgnUpdate As HRGN, flags As DWord) As BOOL
|
---|
1270 |
|
---|
1271 | Declare Function RegisterClassEx Lib "user32" Alias _FuncName_RegisterClassEx (ByRef wcx As WNDCLASSEX) As ATOM
|
---|
1272 | Declare Function RegisterClipboardFormat Lib "user32" Alias _FuncName_RegisterClipboardFormat (pszFormat As PCTSTR) As DWord
|
---|
1273 | Declare Function RegisterHotKey lib "user32.dll" (hwnd As HWND, id As Long, dwModufuers As DWord, vk As DWord) As BOOL
|
---|
1274 | Declare Function RegisterWindowMessage Lib "user32" Alias _FuncName_RegisterWindowMessage (pString As PCTSTR) As DWord
|
---|
1275 | Declare Function ReleaseCapture Lib "user32" () As BOOL
|
---|
1276 | Declare Function ReleaseDC Lib "user32" (hWnd As HWND, hdc As HDC) As BOOL
|
---|
1277 | Declare Function RemoveMenu Lib "user32" (hMenu As HMENU, uPosition As DWord, uFlags As DWord) As BOOL
|
---|
1278 | Declare Function RemoveProp Lib "user32" Alias _FuncName_RemoveProp (hWnd As HWND, pString As PCTSTR) As HANDLE
|
---|
1279 | Declare Function TranslateAccelerator Lib "user32" Alias _FuncName_TranslateAccelerator (hwnd As HWND, hAccTable As HACCEL, ByRef msg As MSG) As Long
|
---|
1280 | Declare Function TranslateMessage Lib "user32" (ByRef msg As MSG) As Long
|
---|
1281 | Declare Function ScreenToClient Lib "user32" (hWnd As HWND, ByRef Point As POINTAPI) As BOOL
|
---|
1282 | 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
|
---|
1283 |
|
---|
1284 | Declare Function SetScrollPos Lib "user32" (ByVal hWnd As HWND, ByVal nBar As Long, ByVal nPos As Long, ByVal bRedraw As BOOL) As Long
|
---|
1285 | Declare Function GetScrollPos Lib "user32" (ByVal hWnd As HWND, ByVal nBar As Long) As Long
|
---|
1286 | Declare Function SetScrollRange Lib "user32" (ByVal hWnd As HWND, ByVal nBar As Long, ByVal nMinPos As Long, ByVal nMaxPos As Long, ByVal bRedraw As BOOL) As BOOL
|
---|
1287 | Declare Function GetScrollRange Lib "user32" (ByVal hWnd As HWND, ByVal nBar As Long, ByRef lpMinPos As Long, ByRef lpMaxPos As Long) As BOOL
|
---|
1288 |
|
---|
1289 | Const SW_SCROLLCHILDREN = &H0001
|
---|
1290 | Const SW_INVALIDATE = &H0002
|
---|
1291 | Const SW_ERASE = &H0004
|
---|
1292 | 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
|
---|
1293 |
|
---|
1294 | 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
|
---|
1295 | Declare Function SendMessage Lib "user32" Alias _FuncName_SendMessage (hWnd As HWND, wMsg As DWord, wParam As WPARAM, lParam As LPARAM) As LRESULT
|
---|
1296 | Declare Function SendNotifyMessage Lib "user32" Alias _FuncName_SendNotifyMessage (hWnd As HWND, wMsg As DWord, wParam As WPARAM, lParam As LPARAM) As LRESULT
|
---|
1297 | Declare Function SetActiveWindow Lib "user32" (hWnd As HWND) As HWND
|
---|
1298 | Declare Function SetDlgItemInt Lib "user32" (hDlg As HWND, nIDDlgItem As Long, uValue As DWord, bSigned As BOOL) As BOOL
|
---|
1299 | Declare Function SetDlgItemText Lib "user32" Alias _FuncName_SetDlgItemText (hDlg As HWND, nIDDlgItem As Long, lpString As PCTSTR) As BOOL
|
---|
1300 | Declare Function SetCapture Lib "user32" (hWnd As HWND) As HWND
|
---|
1301 | Declare Function SetCaretPos Lib "user32" (x As Long, y As Long) As BOOL
|
---|
1302 |
|
---|
1303 | #ifdef _WIN64
|
---|
1304 | Declare Function SetClassLong Lib "user32" Alias _FuncName_SetClassLongPtr (hWnd As HWND, nIndex As Long, NewLong As LONG_PTR) As LONG_PTR
|
---|
1305 | Declare Function SetClassLongPtr Lib "user32" Alias _FuncName_SetClassLongPtr (hWnd As HWND, nIndex As Long, NewLong As LONG_PTR) As LONG_PTR
|
---|
1306 | #else
|
---|
1307 | Declare Function SetClassLong Lib "user32" Alias _FuncName_SetClassLong (hWnd As HWND, nIndex As Long, NewLong As LONG_PTR) As LONG_PTR
|
---|
1308 | Declare Function SetClassLongPtr Lib "user32" Alias _FuncName_SetClassLong (hWnd As HWND, nIndex As Long, NewLong As LONG_PTR) As LONG_PTR
|
---|
1309 | #endif
|
---|
1310 |
|
---|
1311 | Declare Function SetClipboardData Lib "user32" (uFormat As DWord, hMem As HANDLE) As HANDLE
|
---|
1312 | Declare Function SetClipboardViewer Lib "user32" (ByVal hWndNewViewer As HWND) As HWND
|
---|
1313 | Declare Function SetCursor Lib "user32" (hCursor As HCURSOR) As HCURSOR
|
---|
1314 | Declare Function SetCursorPos Lib "user32" (x As Long, y As Long) As BOOL
|
---|
1315 | Declare Function SetDoubleClickTime Lib "user32" (uInterval As DWord) As BOOL
|
---|
1316 | Declare Function SetFocus Lib "user32" (hWnd As HWND) As HWND
|
---|
1317 | Declare Function SetForegroundWindow Lib "user32" (hWnd As HWND) As BOOL
|
---|
1318 | Declare Function SetKeyboardState Lib "user32" (lpKeyState As *Byte) As BOOL
|
---|
1319 |
|
---|
1320 | Declare Function GetKeyNameTextA Lib "user32" (ByVal lParam As Long, ByVal lpString As LPSTR, ByVal cchSize As Long) As Long
|
---|
1321 | Declare Function GetKeyNameTextW Lib "user32" (ByVal lParam As Long, ByVal lpString As LPWSTR, ByVal cchSize As Long) As Long
|
---|
1322 | #ifdef UNICODE
|
---|
1323 | Declare Function GetKeyNameText Lib "user32" Alias "GetKeyNameTextW" (ByVal lParam As Long, ByVal lpString As LPWSTR, ByVal cchSize As Long) As Long
|
---|
1324 | #else
|
---|
1325 | Declare Function GetKeyNameText Lib "user32" Alias "GetKeyNameTextA" (ByVal lParam As Long, ByVal lpString As LPSTR, ByVal cchSize As Long) As Long
|
---|
1326 | #endif ' !UNICODE
|
---|
1327 | Declare Function GetKeyboardType Lib "user32" (ByVal nTypeFlag As Long) As Long
|
---|
1328 |
|
---|
1329 | Declare Function ToAscii Lib "user32" (ByVal uVirtKey As DWord, ByVal uScanCode As DWord, ByVal lpKeyState As *Byte, ByVal lpChar As *WORD, ByVal uFlags As DWord) As Long
|
---|
1330 | Declare Function ToAsciiEx Lib "user32" (ByVal uVirtKey As DWord, ByVal uScanCode As DWord, ByVal lpKeyState As *Byte, ByVal lpChar As *WORD, ByVal uFlags As DWord, ByVal dwhkl As HKL) As Long
|
---|
1331 |
|
---|
1332 | Declare Function ToUnicode Lib "user32" (ByVal uVirtKey As DWord, ByVal uScanCode As DWord, ByVal lpKeyState As *Byte, ByVal pwszBuff As LPWSTR, ByVal cchBuff As Long, ByVal wFlags As DWord) As Long
|
---|
1333 |
|
---|
1334 | Declare Function OemKeyScan Lib "user32" (ByVal wOemChar As Word) As DWord
|
---|
1335 |
|
---|
1336 | Declare Function VkKeyScanA Lib "user32" (ByVal ch As SByte) As Integer
|
---|
1337 | Declare Function VkKeyScanW Lib "user32" (ByVal ch As Word) As Integer
|
---|
1338 | #ifdef UNICODE
|
---|
1339 | Declare Function VkKeyScan Lib "user32" Alias "VkKeyScanW" (ByVal ch As Word) As Integer
|
---|
1340 | #else
|
---|
1341 | Declare Function VkKeyScan Lib "user32" Alias "VkKeyScanA" (ByVal ch As SByte) As Integer
|
---|
1342 | #endif ' !UNICODE
|
---|
1343 |
|
---|
1344 | Declare Function VkKeyScanExA Lib "user32" (ByVal ch As SByte, ByVal dwhkl As HKL) As Integer
|
---|
1345 | Declare Function VkKeyScanExW Lib "user32" (ByVal ch As Word, ByVal dwhkl As HKL) As Integer
|
---|
1346 | #ifdef UNICODE
|
---|
1347 | Declare Function VkKeyScanEx Lib "user32" Alias "VkKeyScanW" (ByVal ch As Word, ByVal dwhkl As HKL) As Integer
|
---|
1348 | #else
|
---|
1349 | Declare Function VkKeyScanEx Lib "user32" Alias "VkKeyScanA" (ByVal ch As SByte, ByVal dwhkl As HKL) As Integer
|
---|
1350 | #endif ' !UNICODE
|
---|
1351 |
|
---|
1352 | Type MOUSEINPUT
|
---|
1353 | dx As Long
|
---|
1354 | dy As Long
|
---|
1355 | mouseData As DWord
|
---|
1356 | dwFlags As DWord
|
---|
1357 | time As DWord
|
---|
1358 | dwExtraInfo As ULONG_PTR
|
---|
1359 | End Type
|
---|
1360 | TypeDef PMOUSEINPUT = *MOUSEINPUT
|
---|
1361 | TypeDef LPMOUSEINPUT = *MOUSEINPUT
|
---|
1362 |
|
---|
1363 | Type KEYBDINPUT
|
---|
1364 | wVk As Word
|
---|
1365 | wScan As Word
|
---|
1366 | dwFlags As DWord
|
---|
1367 | time As DWord
|
---|
1368 | dwExtraInfo As ULONG_PTR
|
---|
1369 | End Type
|
---|
1370 | TypeDef PKEYBDINPUT = *KEYBDINPUT
|
---|
1371 | TypeDef LPKEYBDINPUT = *KEYBDINPUT
|
---|
1372 |
|
---|
1373 | Type HARDWAREINPUT
|
---|
1374 | uMsg As DWord
|
---|
1375 | wParamL As Word
|
---|
1376 | wParamH As Word
|
---|
1377 | End Type
|
---|
1378 | TypeDef PHARDWAREINPUT = *HARDWAREINPUT
|
---|
1379 | TypeDef LPHARDWAREINPUT = *HARDWAREINPUT
|
---|
1380 |
|
---|
1381 | Const INPUT_MOUSE = 0
|
---|
1382 | Const INPUT_KEYBOARD = 1
|
---|
1383 | Const INPUT_HARDWARE = 2
|
---|
1384 |
|
---|
1385 | Type INPUT
|
---|
1386 | types As DWord
|
---|
1387 | #ifdef _WIN64
|
---|
1388 | union[6] As DWord
|
---|
1389 | #else
|
---|
1390 | union[5] As DWord
|
---|
1391 | #endif
|
---|
1392 | /* Union
|
---|
1393 | mi As MOUSEINPUT
|
---|
1394 | ki As KEYBDINPUT
|
---|
1395 | hi As HARDWAREINPUT
|
---|
1396 | End Union*/
|
---|
1397 | End Type
|
---|
1398 | TypeDef PINPUT = *INPUT
|
---|
1399 | TypeDef LPINPUT = *INPUT
|
---|
1400 |
|
---|
1401 | Declare Function SendInput Lib "user32" (ByVal cInputs As DWord, ByVal pInputs As *INPUT, ByVal cbSize As Long) As DWord
|
---|
1402 |
|
---|
1403 | Declare Function MapVirtualKeyA Lib "user32" (ByVal uCode As DWord, ByVal uMapType As DWord) As DWord
|
---|
1404 | Declare Function MapVirtualKeyW Lib "user32" (ByVal uCode As DWord, ByVal uMapType As DWord) As DWord
|
---|
1405 | #ifdef UNICODE
|
---|
1406 | Declare Function MapVirtualKey Lib "user32" Alias "MapVirtualKeyW" (ByVal uCode As DWord, ByVal uMapType As DWord) As DWord
|
---|
1407 | #else
|
---|
1408 | Declare Function MapVirtualKey Lib "user32" Alias "MapVirtualKeyA" (ByVal uCode As DWord, ByVal uMapType As DWord) As DWord
|
---|
1409 | #endif ' !UNICODE
|
---|
1410 |
|
---|
1411 | Declare Function MapVirtualKeyExA Lib "user32" (ByVal uCode As DWord, ByVal uMapType As DWord, ByVal dwhkl As HKL) As DWord
|
---|
1412 | Declare Function MapVirtualKeyExW Lib "user32" (ByVal uCode As DWord, ByVal uMapType As DWord, ByVal dwhkl As HKL) As DWord
|
---|
1413 | #ifdef UNICODE
|
---|
1414 | Declare Function MapVirtualKeyEx Lib "user32" Alias "MapVirtualKeyExW" (ByVal uCode As DWord, ByVal uMapType As DWord, ByVal dwhkl As HKL) As DWord
|
---|
1415 | #else
|
---|
1416 | Declare Function MapVirtualKeyEx Lib "user32" Alias "MapVirtualKeyExA" (ByVal uCode As DWord, ByVal uMapType As DWord, ByVal dwhkl As HKL) As DWord
|
---|
1417 | #endif ' !UNICODE
|
---|
1418 |
|
---|
1419 | Declare Function GetInputState Lib "user32" () As BOOL
|
---|
1420 | Declare Function GetQueueStatus Lib "user32" (ByVal flags As DWord) As DWord
|
---|
1421 |
|
---|
1422 | Const QS_KEY = &H0001
|
---|
1423 | Const QS_MOUSEMOVE = &H0002
|
---|
1424 | Const QS_MOUSEBUTTON = &H0004
|
---|
1425 | Const QS_POSTMESSAGE = &H0008
|
---|
1426 | Const QS_TIMER = &H0010
|
---|
1427 | Const QS_PAINT = &H0020
|
---|
1428 | Const QS_SENDMESSAGE = &H0040
|
---|
1429 | Const QS_HOTKEY = &H0080
|
---|
1430 | Const QS_ALLPOSTMESSAGE = &H0100
|
---|
1431 | 'Const QS_RAWINPUT = &H0400
|
---|
1432 |
|
---|
1433 | Const QS_MOUSE = (QS_MOUSEMOVE or QS_MOUSEBUTTON)
|
---|
1434 | Const QS_INPUT = (QS_MOUSE or QS_KEY /* or QS_RAWINPUT*/)
|
---|
1435 | Const QS_ALLEVENTS = (QS_INPUT or QS_POSTMESSAGE or QS_TIMER or QS_PAINT or QS_HOTKEY)
|
---|
1436 | Const QS_ALLINPUT = (QS_INPUT or QS_POSTMESSAGE or QS_TIMER or QS_PAINT or QS_HOTKEY or QS_SENDMESSAGE)
|
---|
1437 |
|
---|
1438 | Declare Function MsgWaitForMultipleObjects Lib "user32" (ByVal nCount As DWord, ByVal pHandles As *HANDLE, ByVal fWaitAll As BOOL, ByVal dwMilliseconds As DWord, ByVal dwWakeMask As DWord) As DWord
|
---|
1439 | Declare Function MsgWaitForMultipleObjectsEx Lib "user32" (ByVal nCount As DWord, ByVal pHandles As *HANDLE, ByVal dwMilliseconds As DWord, ByVal dwWakeMask As DWord, ByVal dwFlags As DWord) As DWord
|
---|
1440 |
|
---|
1441 | Const MWMO_WAITALL = &H0001
|
---|
1442 | Const MWMO_ALERTABLE = &H0002
|
---|
1443 | Const MWMO_INPUTAVAILABLE = &H0004
|
---|
1444 |
|
---|
1445 |
|
---|
1446 | Declare Function SetMenu Lib "user32" (hWnd As HWND, hMenu As HMENU) As BOOL
|
---|
1447 |
|
---|
1448 | Declare Function ChangeMenuA Lib "user32" (ByVal hMenu As HMENU, ByVal cmd As DWord, ByVal lpszNewItem As LPCSTR, ByVal cmdInsert As DWord, ByVal flags As DWord) As BOOL
|
---|
1449 | Declare Function ChangeMenuW Lib "user32" (ByVal hMenu As HMENU, ByVal cmd As DWord, ByVal lpszNewItem As LPCWSTR, ByVal cmdInsert As DWord, ByVal flags As DWord) As BOOL
|
---|
1450 | #ifdef UNICODE
|
---|
1451 | Declare Function ChangeMenu Lib "user32" Alias "ChangeMenuW" (ByVal hMenu As HMENU, ByVal cmd As DWord, ByVal lpszNewItem As LPCWSTR, ByVal cmdInsert As DWord, ByVal flags As DWord) As BOOL
|
---|
1452 | #else
|
---|
1453 | Declare Function ChangeMenu Lib "user32" Alias "ChangeMenuA" (ByVal hMenu As HMENU, ByVal cmd As DWord, ByVal lpszNewItem As LPCSTR, ByVal cmdInsert As DWord, ByVal flags As DWord) As BOOL
|
---|
1454 | #endif ' !UNICODE
|
---|
1455 |
|
---|
1456 | Declare Function HiliteMenuItem Lib "user32" (ByVal hWnd As HWND, ByVal hMenu As HMENU, ByVal uIDHiliteItem As DWord, ByVal uHilite As DWord) As BOOL
|
---|
1457 |
|
---|
1458 | Declare Function GetMenuStringA Lib "user32" (ByVal hMenu As HMENU, ByVal uIDItem As DWord, ByVal lpString As LPSTR, ByVal cchMax As Long, ByVal flags As DWord) As Long
|
---|
1459 | Declare Function GetMenuStringW Lib "user32" (ByVal hMenu As HMENU, ByVal uIDItem As DWord, ByVal lpString As LPWSTR, ByVal cchMax As Long, ByVal flags As DWord) As Long
|
---|
1460 | #ifdef UNICODE
|
---|
1461 | Declare Function GetMenuString Lib "user32" Alias "GetMenuStringW" (ByVal hMenu As HMENU, ByVal uIDItem As DWord, ByVal lpString As LPWSTR, ByVal cchMax As Long, ByVal flags As DWord) As Long
|
---|
1462 | #else
|
---|
1463 | Declare Function GetMenuString Lib "user32" Alias "GetMenuStringA" (ByVal hMenu As HMENU, ByVal uIDItem As DWord, ByVal lpString As LPSTR, ByVal cchMax As Long, ByVal flags As DWord) As Long
|
---|
1464 | #endif ' !UNICODE
|
---|
1465 |
|
---|
1466 | Declare Function GetMenuState Lib "user32" (ByVal hMenu As HMENU, ByVal uId As DWord, ByVal uFlags As DWord) As DWord
|
---|
1467 |
|
---|
1468 | Declare Function AppendMenuA Lib "user32" (ByVal hMenu As HMENU, ByVal uFlags As DWord, ByVal uIDNewItem As ULONG_PTR, ByVal lpNewItem As LPCSTR) As BOOL
|
---|
1469 | Declare Function AppendMenuW Lib "user32" (ByVal hMenu As HMENU, ByVal uFlags As DWord, ByVal uIDNewItem As ULONG_PTR, ByVal lpNewItem As LPCWSTR) As BOOL
|
---|
1470 | #ifdef UNICODE
|
---|
1471 | Declare Function AppendMenu Lib "user32" Alias "AppendMenuW" (ByVal hMenu As HMENU, ByVal uFlags As DWord, ByVal uIDNewItem As ULONG_PTR, ByVal lpNewItem As LPCWSTR) As BOOL
|
---|
1472 | #else
|
---|
1473 | Declare Function AppendMenu Lib "user32" Alias "AppendMenuA" (ByVal hMenu As HMENU, ByVal uFlags As DWord, ByVal uIDNewItem As ULONG_PTR, ByVal lpNewItem As LPCSTR) As BOOL
|
---|
1474 | #endif ' !UNICODE
|
---|
1475 |
|
---|
1476 | Declare Function ModifyMenuA Lib "user32" (ByVal hMnu As HMENU, ByVal uPosition As DWord, ByVal uFlags As DWord, ByVal uIDNewItem As ULONG_PTR, ByVal lpNewItem As LPCSTR) As BOOL
|
---|
1477 | Declare Function ModifyMenuW Lib "user32" (ByVal hMnu As HMENU, ByVal uPosition As DWord, ByVal uFlags As DWord, ByVal uIDNewItem As ULONG_PTR, ByVal lpNewItem As LPCWSTR) As BOOL
|
---|
1478 | #ifdef UNICODE
|
---|
1479 | Declare Function ModifyMenu Lib "user32" Alias "ModifyMenuW" (ByVal hMnu As HMENU, ByVal uPosition As DWord, ByVal uFlags As DWord, ByVal uIDNewItem As ULONG_PTR, ByVal lpNewItem As LPCWSTR) As BOOL
|
---|
1480 | #else
|
---|
1481 | Declare Function ModifyMenu Lib "user32" Alias "ModifyMenuA" (ByVal hMnu As HMENU, ByVal uPosition As DWord, ByVal uFlags As DWord, ByVal uIDNewItem As ULONG_PTR, ByVal lpNewItem As LPCSTR) As BOOL
|
---|
1482 | #endif ' !UNICODE
|
---|
1483 |
|
---|
1484 | Declare Function SetMenuItemBitmaps Lib "user32" (ByVal hMenu As HMENU, ByVal uPosition As DWord, ByVal uFlags As DWord, ByVal hBitmapUnchecked As HBITMAP, ByVal hBitmapChecked As HBITMAP) As BOOL
|
---|
1485 |
|
---|
1486 | Declare Function GetMenuCheckMarkDimensions Lib "user32" () As Long
|
---|
1487 |
|
---|
1488 | Type TPMPARAMS
|
---|
1489 | cbSize As DWord
|
---|
1490 | rcExclude As RECT
|
---|
1491 | End Type
|
---|
1492 | TypeDef LPTPMPARAMS = *TPMPARAMS
|
---|
1493 |
|
---|
1494 | Declare Function TrackPopupMenuEx Lib "user32" (ByVal hMenu As HMENU, ByVal fuFlags As DWord, ByVal x As Long, ByVal y As Long, ByVal hwnd As HWND, ByVal lptpm As *TPMPARAMS) As BOOL
|
---|
1495 | Declare Function GetMenuItemRect Lib "user32" (ByVal hWnd As HWND, ByVal hMenu As HMENU, ByVal uItem As DWord, ByRef lprcItem As RECT) As BOOL
|
---|
1496 | Declare Function MenuItemFromPoint Lib "user32" (ByVal hWnd As HWND, ByVal hMenu As HMENU, ByRef ptScreen As POINTAPI) As Long
|
---|
1497 |
|
---|
1498 | Declare Function SetMenuContextHelpId Lib "user32" (hmenu As HMENU, dwContextHelpId As DWord) As BOOL
|
---|
1499 | Declare Function SetMenuDefaultItem Lib "user32" (hMenu As HMENU, uItem As DWord, fByPos As DWord) As BOOL
|
---|
1500 | Declare Function SetMenuItemInfo Lib "user32" Alias _FuncName_SetMenuItemInfo (hMenu As HMENU, uItem As DWord, fByPosition As BOOL, ByRef mii As MENUITEMINFO) As BOOL
|
---|
1501 | Declare Function SetParent Lib "user32" (hWndChild As HWND, hWndNewParent As HWND) As HWND
|
---|
1502 | Declare Function SetProp Lib "user32" Alias _FuncName_SetProp (hWnd As HWND, pString As PCTSTR, hData As HANDLE) As BOOL
|
---|
1503 |
|
---|
1504 | TypeDef PROPENUMPROCEXA = *Function(ByVal hwnd As HWND, ByVal lpszString As LPSTR, ByVal hData As HANDLE, ByVal dwData As ULONG_PTR) As BOOL
|
---|
1505 | TypeDef PROPENUMPROCEXW = *Function(ByVal hwnd As HWND, ByVal lpszString As LPWSTR, ByVal hData As HANDLE, ByVal dwData As ULONG_PTR) As BOOL
|
---|
1506 | #ifdef UNICODE
|
---|
1507 | TypeDef PROPENUMPROCEX = PROPENUMPROCEXW
|
---|
1508 | #else
|
---|
1509 | TypeDef PROPENUMPROCEX = PROPENUMPROCEXA
|
---|
1510 | #endif ' !UNICODE
|
---|
1511 |
|
---|
1512 | Declare Function EnumPropsExA Lib "user32" (ByVal hWnd As HWND, ByVal lpEnumFunc As PROPENUMPROCEXA, ByVal lParam As LPARAM) As Long
|
---|
1513 | Declare Function EnumPropsExW Lib "user32" (ByVal hWnd As HWND, ByVal lpEnumFunc As PROPENUMPROCEXW, ByVal lParam As LPARAM) As Long
|
---|
1514 | #ifdef UNICODE
|
---|
1515 | Declare Function EnumPropsEx Lib "user32" Alias "EnumPropsExW" (ByVal hWnd As HWND, ByVal lpEnumFunc As PROPENUMPROCEXW, ByVal lParam As LPARAM) As Long
|
---|
1516 | #else
|
---|
1517 | Declare Function EnumPropsEx Lib "user32" Alias "EnumPropsExA" (ByVal hWnd As HWND, ByVal lpEnumFunc As PROPENUMPROCEXA, ByVal lParam As LPARAM) As Long
|
---|
1518 | #endif ' !UNICODE
|
---|
1519 |
|
---|
1520 |
|
---|
1521 | TypeDef PROPENUMPROCA = *Function(ByVal hwnd As HWND, ByVal lpszString As LPCSTR, ByVal hData As HANDLE) As BOOL
|
---|
1522 | TypeDef PROPENUMPROCW = *Function(ByVal hwnd As HWND, ByVal lpszString As LPCWSTR, ByVal hData As HANDLE) As BOOL
|
---|
1523 | #ifdef UNICODE
|
---|
1524 | TypeDef PROPENUMPROC = PROPENUMPROCW
|
---|
1525 | #else
|
---|
1526 | TypeDef PROPENUMPROC = PROPENUMPROCA
|
---|
1527 | #endif ' !UNICODE
|
---|
1528 |
|
---|
1529 | Declare Function EnumPropsA Lib "user32" (ByVal hWnd As HWND, ByVal lpEnumFunc As PROPENUMPROCA) As Long
|
---|
1530 | Declare Function EnumPropsW Lib "user32" (ByVal hWnd As HWND, ByVal lpEnumFunc As PROPENUMPROCW) As Long
|
---|
1531 | #ifdef UNICODE
|
---|
1532 | Declare Function EnumProps Lib "user32" Alias "EnumPropsW" (ByVal hWnd As HWND, ByVal lpEnumFunc As PROPENUMPROCW) As Long
|
---|
1533 | #else
|
---|
1534 | Declare Function EnumProps Lib "user32" Alias "EnumPropsA" (ByVal hWnd As HWND, ByVal lpEnumFunc As PROPENUMPROCA) As Long
|
---|
1535 | #endif ' !UNICODE
|
---|
1536 |
|
---|
1537 | Declare Function SetRect Lib "User32" (ByRef rc As RECT, xLeft As Long, yTop As Long, xRight As Long, yBottom As Long) As Long
|
---|
1538 | Declare Function SetRectEmpty Lib "user32" (ByRef lprc As RECT) As BOOL
|
---|
1539 | Declare Function CopyRect Lib "user32" (ByRef lprcDst As RECT, ByRef lprcSrc As RECT) As BOOL
|
---|
1540 | Declare Function InflateRect Lib "user32" (ByRef lprc As RECT, ByVal dx As Long, ByVal dy As Long) As BOOL
|
---|
1541 | Declare Function IntersectRect Lib "user32" (ByRef lprcDst As RECT, ByRef lprcSrc1 As RECT, ByRef lprcSrc2 As RECT) As BOOL
|
---|
1542 | Declare Function UnionRect Lib "user32" (ByRef lprcDst As RECT, ByRef lprcSrc1 As RECT, ByRef lprcSrc2 As RECT) As BOOL
|
---|
1543 | Declare Function SubtractRect Lib "user32" (ByRef lprcDst As RECT, ByRef lprcSrc1 As RECT, ByRef lprcSrc2 As RECT) As BOOL
|
---|
1544 | Declare Function OffsetRect Lib "user32" (ByRef lprc As RECT, ByVal dx As Long, ByVal dy As Long) As BOOL
|
---|
1545 | Declare Function IsRectEmpty Lib "user32" (ByRef lprc As RECT) As BOOL
|
---|
1546 | Declare Function EqualRect Lib "user32" (ByRef lprc1 As RECT, ByRef lprc2 As RECT) As BOOL
|
---|
1547 | Declare Function PtInRect Lib "user32" (ByRef lprc As RECT, ByRef pt As POINTAPI) As BOOL
|
---|
1548 | Declare Function SetScrollInfo Lib "user32" (hWnd As HWND, fnBar As Long, ByRef lpsi As SCROLLINFO, bRedraw As Long) As BOOL
|
---|
1549 | Declare Function SetSysColors Lib "user32" (cElements As Long, lpaElements As *DWord, lpaRgbValues As *DWord) As BOOL
|
---|
1550 | Declare Function SetSystemCursor Lib "user32" (ByVal hcur As HCURSOR, ByVal id As DWord) As BOOL
|
---|
1551 |
|
---|
1552 | Const USER_TIMER_MAXIMUM = &H7FFFFFFF
|
---|
1553 | Const USER_TIMER_MINIMUM = &H0000000A
|
---|
1554 |
|
---|
1555 | TypeDef TIMERPROC = *Sub(hwnd As HWND, msg As DWord, idEvent As ULONG_PTR, dwTime As DWord)
|
---|
1556 | Declare Function SetTimer Lib "user32" (hWnd As HWND, nIDEvent As ULONG_PTR, nElapse As DWord, lpTimerFunc As TIMERPROC) As ULONG_PTR
|
---|
1557 |
|
---|
1558 | Declare Function SetWindowContextHelpId Lib "user32"(hwnd As HWND, dwContextHelpId As DWord) As BOOL
|
---|
1559 | #ifdef _WIN64
|
---|
1560 | Declare Function SetWindowLong Lib "user32" Alias _FuncName_SetWindowLongPtr (hWnd As HWND, nIndex As Long, NewLong As LONG_PTR) As LONG_PTR
|
---|
1561 | Declare Function SetWindowLongPtr Lib "user32" Alias _FuncName_SetWindowLongPtr (hWnd As HWND, nIndex As Long, NewLong As LONG_PTR) As LONG_PTR
|
---|
1562 | #else
|
---|
1563 | Declare Function SetWindowLong Lib "user32" Alias _FuncName_SetWindowLong (hWnd As HWND, nIndex As Long, NewLong As LONG_PTR) As LONG_PTR
|
---|
1564 | Declare Function SetWindowLongPtr Lib "user32" Alias _FuncName_SetWindowLong (hWnd As HWND, nIndex As Long, NewLong As LONG_PTR) As LONG_PTR
|
---|
1565 | #endif
|
---|
1566 |
|
---|
1567 | Declare Function SetWindowPlacement Lib "user32" (hWnd As HWND, ByRef lpwndpl As WINDOWPLACEMENT) As BOOL
|
---|
1568 |
|
---|
1569 | Const HWND_TOP = 0 As HWND
|
---|
1570 | Const HWND_BOTTOM = 1 As HWND
|
---|
1571 | Const HWND_TOPMOST = -1 As HWND
|
---|
1572 | Const HWND_NOTOPMOST = -2 As HWND
|
---|
1573 | Const SWP_NOSIZE = &H0001
|
---|
1574 | Const SWP_NOMOVE = &H0002
|
---|
1575 | Const SWP_NOZORDER = &H0004
|
---|
1576 | Const SWP_NOREDRAW = &H0008
|
---|
1577 | Const SWP_NOACTIVATE = &H0010
|
---|
1578 | Const SWP_FRAMECHANGED = &H0020
|
---|
1579 | Const SWP_SHOWWINDOW = &H0040
|
---|
1580 | Const SWP_HIDEWINDOW = &H0080
|
---|
1581 | Const SWP_NOCOPYBITS = &H0100
|
---|
1582 | Const SWP_NOOWNERZORDER = &H0200
|
---|
1583 | Const SWP_NOSENDCHANGING = &H0400
|
---|
1584 | Const SWP_DRAWFRAME = SWP_FRAMECHANGED
|
---|
1585 | Const SWP_NOREPOSITION = SWP_NOOWNERZORDER
|
---|
1586 | Const SWP_DEFERERASE = &H2000
|
---|
1587 | Const SWP_ASYNCWINDOWPOS = &H4000
|
---|
1588 | 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
|
---|
1589 |
|
---|
1590 | Declare Function SetWindowRgn Lib "user32" (hWnd As HWND, hRgn As HRGN, bRedraw As BOOL) As BOOL
|
---|
1591 | Declare Function SetWindowsHookEx Lib "user32" Alias _FuncName_SetWindowsHookEx (idHook As Long, lpfn As HOOKPROC, hMod As HINSTANCE, dwThreadId As DWord) As HHOOK
|
---|
1592 | Declare Function SetWindowText Lib "user32" Alias _FuncName_SetWindowText (hWnd As HWND, pString As PCTSTR) As BOOL
|
---|
1593 | Declare Function ShowCaret Lib "user32" (hWnd As HWND) As BOOL
|
---|
1594 | Declare Function ShowCursor Lib "user32" (bShow As Long) As BOOL
|
---|
1595 | Declare Function ShowScrollBar Lib "user32" (hWnd As HWND, wBar As DWord, bShow As BOOL) As BOOL
|
---|
1596 |
|
---|
1597 | Const SW_HIDE = 0
|
---|
1598 | Const SW_SHOWNORMAL = 1
|
---|
1599 | Const SW_NORMAL = 1
|
---|
1600 | Const SW_SHOWMINIMIZED = 2
|
---|
1601 | Const SW_SHOWMAXIMIZED = 3
|
---|
1602 | Const SW_MAXIMIZE = 3
|
---|
1603 | Const SW_SHOWNOACTIVATE = 4
|
---|
1604 | Const SW_SHOW = 5
|
---|
1605 | Const SW_MINIMIZE = 6
|
---|
1606 | Const SW_SHOWMINNOACTIVE = 7
|
---|
1607 | Const SW_SHOWNA = 8
|
---|
1608 | Const SW_RESTORE = 9
|
---|
1609 | Const SW_SHOWDEFAULT = 10
|
---|
1610 | Const SW_FORCEMINIMIZE = 11
|
---|
1611 | Const SW_MAX = 11
|
---|
1612 | Declare Function ShowWindow Lib "user32" (hWnd As HWND, nCmdShow As Long) As BOOL
|
---|
1613 | Declare Function ShowWindowAsync Lib "user32" (hWnd As HWND, nCmdShow As Long) As BOOL
|
---|
1614 |
|
---|
1615 | Type NONCLIENTMETRICSW
|
---|
1616 | cbSize As DWord
|
---|
1617 | iBorderWidth As Long
|
---|
1618 | iScrollWidth As Long
|
---|
1619 | iScrollHeight As Long
|
---|
1620 | iCaptionWidth As Long
|
---|
1621 | iCaptionHeight As Long
|
---|
1622 | lfCaptionFont As LOGFONTW
|
---|
1623 | iSmCaptionWidth As Long
|
---|
1624 | iSmCaptionHeight As Long
|
---|
1625 | lfSmCaptionFont As LOGFONTW
|
---|
1626 | iMenuWidth As Long
|
---|
1627 | iMenuHeight As Long
|
---|
1628 | lfMenuFont As LOGFONTW
|
---|
1629 | lfStatusFont As LOGFONTW
|
---|
1630 | lfMessageFont As LOGFONTW
|
---|
1631 | End Type
|
---|
1632 | Type NONCLIENTMETRICSA
|
---|
1633 | cbSize As DWord
|
---|
1634 | iBorderWidth As Long
|
---|
1635 | iScrollWidth As Long
|
---|
1636 | iScrollHeight As Long
|
---|
1637 | iCaptionWidth As Long
|
---|
1638 | iCaptionHeight As Long
|
---|
1639 | lfCaptionFont As LOGFONTA
|
---|
1640 | iSmCaptionWidth As Long
|
---|
1641 | iSmCaptionHeight As Long
|
---|
1642 | lfSmCaptionFont As LOGFONTA
|
---|
1643 | iMenuWidth As Long
|
---|
1644 | iMenuHeight As Long
|
---|
1645 | lfMenuFont As LOGFONTA
|
---|
1646 | lfStatusFont As LOGFONTA
|
---|
1647 | lfMessageFont As LOGFONTA
|
---|
1648 | End Type
|
---|
1649 | #ifdef
|
---|
1650 | TypeDef NONCLIENTMETRICS = NONCLIENTMETRICSW
|
---|
1651 | #else
|
---|
1652 | TypeDef NONCLIENTMETRICS = NONCLIENTMETRICSA
|
---|
1653 | #endif
|
---|
1654 | Const SPI_GETBEEP = 1
|
---|
1655 | Const SPI_SETBEEP = 2
|
---|
1656 | Const SPI_GETMOUSE = 3
|
---|
1657 | Const SPI_SETMOUSE = 4
|
---|
1658 | Const SPI_GETBORDER = 5
|
---|
1659 | Const SPI_SETBORDER = 6
|
---|
1660 | Const SPI_GETKEYBOARDSPEED = 10
|
---|
1661 | Const SPI_SETKEYBOARDSPEED = 11
|
---|
1662 | Const SPI_LANGDRIVER = 12
|
---|
1663 | Const SPI_ICONHORIZONTALSPACING = 13
|
---|
1664 | Const SPI_GETSCREENSAVETIMEOUT = 14
|
---|
1665 | Const SPI_SETSCREENSAVETIMEOUT = 15
|
---|
1666 | Const SPI_GETSCREENSAVEACTIVE = 16
|
---|
1667 | Const SPI_SETSCREENSAVEACTIVE = 17
|
---|
1668 | Const SPI_GETGRIDGRANULARITY = 18
|
---|
1669 | Const SPI_SETGRIDGRANULARITY = 19
|
---|
1670 | Const SPI_SETDESKWALLPAPER = 20
|
---|
1671 | Const SPI_SETDESKPATTERN = 21
|
---|
1672 | Const SPI_GETKEYBOARDDELAY = 22
|
---|
1673 | Const SPI_SETKEYBOARDDELAY = 23
|
---|
1674 | Const SPI_ICONVERTICALSPACING = 24
|
---|
1675 | Const SPI_GETICONTITLEWRAP = 25
|
---|
1676 | Const SPI_SETICONTITLEWRAP = 26
|
---|
1677 | Const SPI_GETMENUDROPALIGNMENT = 27
|
---|
1678 | Const SPI_SETMENUDROPALIGNMENT = 28
|
---|
1679 | Const SPI_SETDOUBLECLKWIDTH = 29
|
---|
1680 | Const SPI_SETDOUBLECLKHEIGHT = 30
|
---|
1681 | Const SPI_GETICONTITLELOGFONT = 31
|
---|
1682 | Const SPI_SETDOUBLECLICKTIME = 32
|
---|
1683 | Const SPI_SETMOUSEBUTTONSWAP = 33
|
---|
1684 | Const SPI_SETICONTITLELOGFONT = 34
|
---|
1685 | Const SPI_GETFASTTASKSWITCH = 35
|
---|
1686 | Const SPI_SETFASTTASKSWITCH = 36
|
---|
1687 | Const SPI_SETDRAGFULLWINDOWS = 37
|
---|
1688 | Const SPI_GETDRAGFULLWINDOWS = 38
|
---|
1689 | Const SPI_GETNONCLIENTMETRICS = 41
|
---|
1690 | Const SPI_SETNONCLIENTMETRICS = 42
|
---|
1691 | Const SPI_GETMINIMIZEDMETRICS = 43
|
---|
1692 | Const SPI_SETMINIMIZEDMETRICS = 44
|
---|
1693 | Const SPI_GETICONMETRICS = 45
|
---|
1694 | Const SPI_SETICONMETRICS = 46
|
---|
1695 | Const SPI_SETWORKAREA = 47
|
---|
1696 | Const SPI_GETWORKAREA = 48
|
---|
1697 | Const SPI_SETPENWINDOWS = 49
|
---|
1698 | Const SPI_GETHIGHCONTRAST = 66
|
---|
1699 | Const SPI_SETHIGHCONTRAST = 67
|
---|
1700 | Const SPI_GETKEYBOARDPREF = 68
|
---|
1701 | Const SPI_SETKEYBOARDPREF = 69
|
---|
1702 | Const SPI_GETSCREENREADER = 70
|
---|
1703 | Const SPI_SETSCREENREADER = 71
|
---|
1704 | Const SPI_GETANIMATION = 72
|
---|
1705 | Const SPI_SETANIMATION = 73
|
---|
1706 | Const SPI_GETFONTSMOOTHING = 74
|
---|
1707 | Const SPI_SETFONTSMOOTHING = 75
|
---|
1708 | Const SPI_SETDRAGWIDTH = 76
|
---|
1709 | Const SPI_SETDRAGHEIGHT = 77
|
---|
1710 | Const SPI_SETHANDHELD = 78
|
---|
1711 | Const SPI_GETLOWPOWERTIMEOUT = 79
|
---|
1712 | Const SPI_GETPOWEROFFTIMEOUT = 80
|
---|
1713 | Const SPI_SETLOWPOWERTIMEOUT = 81
|
---|
1714 | Const SPI_SETPOWEROFFTIMEOUT = 82
|
---|
1715 | Const SPI_GETLOWPOWERACTIVE = 83
|
---|
1716 | Const SPI_GETPOWEROFFACTIVE = 84
|
---|
1717 | Const SPI_SETLOWPOWERACTIVE = 85
|
---|
1718 | Const SPI_SETPOWEROFFACTIVE = 86
|
---|
1719 | Const SPI_SETCURSORS = 87
|
---|
1720 | Const SPI_SETICONS = 88
|
---|
1721 | Const SPI_GETDEFAULTINPUTLANG = 89
|
---|
1722 | Const SPI_SETDEFAULTINPUTLANG = 90
|
---|
1723 | Const SPI_SETLANGTOGGLE = 91
|
---|
1724 | Const SPI_GETWINDOWSEXTENSION = 92
|
---|
1725 | Const SPI_SETMOUSETRAILS = 93
|
---|
1726 | Const SPI_GETMOUSETRAILS = 94
|
---|
1727 | Const SPI_SETSCREENSAVERRUNNING = 97
|
---|
1728 | Const SPI_SCREENSAVERRUNNING = SPI_SETSCREENSAVERRUNNING
|
---|
1729 | Const SPI_GETFILTERKEYS = 50
|
---|
1730 | Const SPI_SETFILTERKEYS = 51
|
---|
1731 | Const SPI_GETTOGGLEKEYS = 52
|
---|
1732 | Const SPI_SETTOGGLEKEYS = 53
|
---|
1733 | Const SPI_GETMOUSEKEYS = 54
|
---|
1734 | Const SPI_SETMOUSEKEYS = 55
|
---|
1735 | Const SPI_GETSHOWSOUNDS = 56
|
---|
1736 | Const SPI_SETSHOWSOUNDS = 57
|
---|
1737 | Const SPI_GETSTICKYKEYS = 58
|
---|
1738 | Const SPI_SETSTICKYKEYS = 59
|
---|
1739 | Const SPI_GETACCESSTIMEOUT = 60
|
---|
1740 | Const SPI_SETACCESSTIMEOUT = 61
|
---|
1741 | Const SPI_GETSERIALKEYS = 62
|
---|
1742 | Const SPI_SETSERIALKEYS = 63
|
---|
1743 | Const SPI_GETSOUNDSENTRY = 64
|
---|
1744 | Const SPI_SETSOUNDSENTRY = 65
|
---|
1745 | Const SPI_GETMOUSEHOVERWIDTH = 98
|
---|
1746 | Const SPI_SETMOUSEHOVERWIDTH = 99
|
---|
1747 | Const SPI_GETMOUSEHOVERHEIGHT = 100
|
---|
1748 | Const SPI_SETMOUSEHOVERHEIGHT = 101
|
---|
1749 | Const SPI_GETMOUSEHOVERTIME = 102
|
---|
1750 | Const SPI_SETMOUSEHOVERTIME = 103
|
---|
1751 | Const SPI_GETWHEELSCROLLLINES = 104
|
---|
1752 | Const SPI_SETWHEELSCROLLLINES = 105
|
---|
1753 | Const SPI_GETSHOWIMEUI = 110
|
---|
1754 | Const SPI_SETSHOWIMEUI = 111
|
---|
1755 | Const SPI_GETMOUSESPEED = 112
|
---|
1756 | Const SPI_SETMOUSESPEED = 113
|
---|
1757 | Const SPI_GETSCREENSAVERRUNNING = 114
|
---|
1758 | Const SPI_GETACTIVEWINDOWTRACKING = &H1000 'Windows 2000 or later
|
---|
1759 | Const SPI_SETACTIVEWINDOWTRACKING = &H1001
|
---|
1760 | Const SPI_GETMENUANIMATION = &H1002
|
---|
1761 | Const SPI_SETMENUANIMATION = &H1003
|
---|
1762 | Const SPI_GETCOMBOBOXANIMATION = &H1004
|
---|
1763 | Const SPI_SETCOMBOBOXANIMATION = &H1005
|
---|
1764 | Const SPI_GETLISTBOXSMOOTHSCROLLING = &H1006
|
---|
1765 | Const SPI_SETLISTBOXSMOOTHSCROLLING = &H1007
|
---|
1766 | Const SPI_GETGRADIENTCAPTIONS = &H1008
|
---|
1767 | Const SPI_SETGRADIENTCAPTIONS = &H1009
|
---|
1768 | Const SPI_GETMENUUNDERLINES = &H100A
|
---|
1769 | Const SPI_SETMENUUNDERLINES = &H100B
|
---|
1770 | Const SPI_GETACTIVEWNDTRKZORDER = &H100C
|
---|
1771 | Const SPI_SETACTIVEWNDTRKZORDER = &H100D
|
---|
1772 | Const SPI_GETHOTTRACKING = &H100E
|
---|
1773 | Const SPI_SETHOTTRACKING = &H100F
|
---|
1774 | Const SPI_GETFOREGROUNDLOCKTIMEOUT = &H2000
|
---|
1775 | Const SPI_SETFOREGROUNDLOCKTIMEOUT = &H2001
|
---|
1776 | Const SPI_GETACTIVEWNDTRKTIMEOUT = &H2002
|
---|
1777 | Const SPI_SETACTIVEWNDTRKTIMEOUT = &H2003
|
---|
1778 | Const SPI_GETFOREGROUNDFLASHCOUNT = &H2004
|
---|
1779 | Const SPI_SETFOREGROUNDFLASHCOUNT = &H2005
|
---|
1780 | Const SPIF_UPDATEINIFILE = &H0001
|
---|
1781 | Const SPIF_SENDWININICHANGE = &H0002
|
---|
1782 | Const SPIF_SENDCHANGE = SPIF_SENDWININICHANGE
|
---|
1783 | Declare Function SystemParametersInfo Lib "user32" Alias _FuncName_SystemParametersInfo (uiAction As DWord, uiParam As DWord, pvParam As VoidPtr, fWinIni As DWord) As BOOL
|
---|
1784 |
|
---|
1785 | Const CDS_UPDATEREGISTRY = &H00000001
|
---|
1786 | Const CDS_TEST = &H00000002
|
---|
1787 | Const CDS_FULLSCREEN = &H00000004
|
---|
1788 | Const CDS_GLOBAL = &H00000008
|
---|
1789 | Const CDS_SET_PRIMARY = &H00000010
|
---|
1790 | Const CDS_VIDEOPARAMETERS = &H00000020
|
---|
1791 | Const CDS_RESET = &H40000000
|
---|
1792 | Const CDS_NORESET = &H10000000
|
---|
1793 |
|
---|
1794 | Const DISP_CHANGE_SUCCESSFUL = 0
|
---|
1795 | Const DISP_CHANGE_RESTART = 1
|
---|
1796 | Const DISP_CHANGE_FAILED = -1
|
---|
1797 | Const DISP_CHANGE_BADMODE = -2
|
---|
1798 | Const DISP_CHANGE_NOTUPDATED = -3
|
---|
1799 | Const DISP_CHANGE_BADFLAGS = -4
|
---|
1800 | Const DISP_CHANGE_BADPARAM = -5
|
---|
1801 | Const DISP_CHANGE_BADDUALVIEW = -6
|
---|
1802 |
|
---|
1803 | #ifdef _INC_GDI
|
---|
1804 | Declare Function ChangeDisplaySettingsA Lib "user32" (ByVal lpDevMode As *DEVMODEA, ByVal dwFlags As DWord) As Long
|
---|
1805 | Declare Function ChangeDisplaySettingsW Lib "user32" (ByVal lpDevMode As *DEVMODEW, ByVal dwFlags As DWord) As Long
|
---|
1806 | #ifdef UNICODE
|
---|
1807 | Declare Function ChangeDisplaySettings Lib "user32" Alias _FuncName_ChangeDisplaySettings (ByVal lpDevMode As *DEVMODEW, ByVal dwFlags As DWord) As Long
|
---|
1808 | #else
|
---|
1809 | Declare Function ChangeDisplaySettings Lib "user32" Alias _FuncName_ChangeDisplaySettings (ByVal lpDevMode As *DEVMODEA, ByVal dwFlags As DWord) As Long
|
---|
1810 | #endif
|
---|
1811 |
|
---|
1812 | Declare Function ChangeDisplaySettingsExA Lib "user32" (ByVal lpszDeviceName As LPCSTR, ByVal lpDevMode As *DEVMODEA, ByVal hwnd As HWND, ByVal dwFlags As DWord, ByVal lParam As VoidPtr) As Long
|
---|
1813 | Declare Function ChangeDisplaySettingsExW Lib "user32" (ByVal lpszDeviceName As LPCWSTR, ByVal lpDevMode As *DEVMODEW, ByVal hwnd As HWND, ByVal dwFlags As DWord, ByVal lParam As VoidPtr) As Long
|
---|
1814 | #ifdef UNICODE
|
---|
1815 | Declare Function ChangeDisplaySettingsEx Lib "user32" Alias _FuncName_ChangeDisplaySettingsEx (ByVal lpszDeviceName As LPCWSTR, ByVal lpDevMode As *DEVMODEW, ByVal hwnd As HWND, ByVal dwFlags As DWord, ByVal lParam As VoidPtr) As Long
|
---|
1816 | #else
|
---|
1817 | Declare Function ChangeDisplaySettingsEx Lib "user32" Alias _FuncName_ChangeDisplaySettingsEx (ByVal lpszDeviceName As LPCSTR, ByVal lpDevMode As *DEVMODEA, ByVal hwnd As HWND, ByVal dwFlags As DWord, ByVal lParam As VoidPtr) As Long
|
---|
1818 | #endif
|
---|
1819 |
|
---|
1820 | Const ENUM_CURRENT_SETTINGS = ((-1) As DWord)
|
---|
1821 | Const ENUM_REGISTRY_SETTINGS = ((-2) As DWord)
|
---|
1822 |
|
---|
1823 | Declare Function EnumDisplaySettingsA Lib "user32" (ByVal lpszDeviceName As LPCSTR, ByVal iModeNum As DWord, ByVal lpDevMode As *DEVMODEA) As BOOL
|
---|
1824 | Declare Function EnumDisplaySettingsW Lib "user32" (ByVal lpszDeviceName As LPCWSTR, ByVal iModeNum As DWord, ByVal lpDevMode As *DEVMODEW) As BOOL
|
---|
1825 | #ifdef UNICODE
|
---|
1826 | Declare Function EnumDisplaySettings Lib "user32" Alias _FuncName_EnumDisplaySettings (ByVal lpszDeviceName As LPCWSTR, ByVal iModeNum As DWord, ByVal lpDevMode As *DEVMODEW) As BOOL
|
---|
1827 | #else
|
---|
1828 | Declare Function EnumDisplaySettings Lib "user32" Alias _FuncName_EnumDisplaySettings (ByVal lpszDeviceName As LPCSTR, ByVal iModeNum As DWord, ByVal lpDevMode As *DEVMODEA) As BOOL
|
---|
1829 | #endif
|
---|
1830 |
|
---|
1831 | /*#ifdef(WINVER >= 0x0500)
|
---|
1832 | Declare Function EnumDisplaySettingsExA Lib "user32" (ByVal lpszDeviceName As LPCSTR, ByVal iModeNum As DWord, ByVal lpDevMode As *DEVMODEA, ByVal dwFlags As DWord) As BOOL
|
---|
1833 | Declare Function EnumDisplaySettingsExW Lib "user32" (ByVal lpszDeviceName As LPCWSTR, ByVal iModeNum As DWord, ByVal lpDevMode As *DEVMODEW, ByVal dwFlags As DWord) As BOOL
|
---|
1834 | #ifdef UNICODE
|
---|
1835 | Declare Function EnumDisplaySettingsEx Lib "user32" Alias _FuncName_EnumDisplaySettingsEx (ByVal lpszDeviceName As LPCWSTR, ByVal iModeNum As DWord, ByVal lpDevMode As *DEVMODEW, ByVal dwFlags As DWord) As BOOL
|
---|
1836 | #else
|
---|
1837 | Declare Function EnumDisplaySettingsEx Lib "user32" Alias _FuncName_EnumDisplaySettingsEx (ByVal lpszDeviceName As LPCSTR, ByVal iModeNum As DWord, ByVal lpDevMode As *DEVMODEA, ByVal dwFlags As DWord) As BOOL
|
---|
1838 | #endif
|
---|
1839 |
|
---|
1840 | Const EDS_RAWMODE = &H00000002
|
---|
1841 |
|
---|
1842 | Declare Function EnumDisplayDevicesA Lib "user32" (ByVal lpDevice As LPCSTR, ByVal iDevNum As DWord, ByVal lpDisplayDevice As *DISPLAY_DEVICEA, ByVal dwFlags As DWord) As BOOL
|
---|
1843 | Declare Function EnumDisplayDevicesW Lib "user32" (ByVal lpDevice As LPCWSTR, ByVal iDevNum As DWord, ByVal lpDisplayDevice As *DISPLAY_DEVICEW, ByVal dwFlags As DWord)As BOOL
|
---|
1844 | #ifdef UNICODE
|
---|
1845 | Declare Function EnumDisplayDevices Lib "user32" Alias _FuncName_EnumDisplayDevices (ByVal lpDevice As LPCWSTR, ByVal iDevNum As DWord, ByVal lpDisplayDevice As *DISPLAY_DEVICEW, ByVal dwFlags As DWord)As BOOL
|
---|
1846 | #else
|
---|
1847 | Declare Function EnumDisplayDevices Lib "user32" Alias _FuncName_EnumDisplayDevices (ByVal lpDevice As LPCSTR, ByVal iDevNum As DWord, ByVal lpDisplayDevice As *DISPLAY_DEVICEA, ByVal dwFlags As DWord) As BOOL
|
---|
1848 | #endif
|
---|
1849 | #endif */ /* WINVER >= 0x0500 */
|
---|
1850 | #endif ' _INC_GDI
|
---|
1851 |
|
---|
1852 | Const TME_HOVER = &H00000001
|
---|
1853 | Const TME_LEAVE = &H00000002
|
---|
1854 | Const TME_NONCLIENT = &H00000010
|
---|
1855 | Const TME_QUERY = &H40000000
|
---|
1856 | Const TME_CANCEL = &H80000000
|
---|
1857 | Const HOVER_DEFAULT = &HFFFFFFFF
|
---|
1858 | Type TRACKMOUSEEVENT
|
---|
1859 | cbSize As DWord
|
---|
1860 | dwFlags As DWord
|
---|
1861 | hwndTrack As HWND
|
---|
1862 | dwHoverTime As DWord
|
---|
1863 | End Type
|
---|
1864 | Declare Function TrackMouseEvent Lib "user32" (ByRef EventTrack As TRACKMOUSEEVENT) As BOOL
|
---|
1865 |
|
---|
1866 | Const TPM_LEFTBUTTON = &H0000
|
---|
1867 | Const TPM_RIGHTBUTTON = &H0002
|
---|
1868 | Const TPM_LEFTALIGN = &H0000
|
---|
1869 | Const TPM_CENTERALIGN = &H0004
|
---|
1870 | Const TPM_RIGHTALIGN = &H0008
|
---|
1871 | Const TPM_TOPALIGN = &H0000
|
---|
1872 | Const TPM_VCENTERALIGN = &H0010
|
---|
1873 | Const TPM_BOTTOMALIGN = &H0020
|
---|
1874 | Const TPM_HORIZONTAL = &H0000
|
---|
1875 | Const TPM_VERTICAL = &H0040
|
---|
1876 | Const TPM_NONOTIFY = &H0080
|
---|
1877 | Const TPM_RETURNCMD = &H0100
|
---|
1878 | Const TPM_RECURSE = &H0001
|
---|
1879 | Declare Function TrackPopupMenu Lib "user32" (hMenu As HMENU, uFlags As DWord, x As Long, y As Long, nReserved As Long, ByVal hWnd As HWND, ByRef prcRect As RECT) As BOOL
|
---|
1880 |
|
---|
1881 | declare function UnhookWindowsHookEx lib "user32" (ByVal hhk As HHOOK) As BOOL
|
---|
1882 | Declare Function UnregisterClass Lib "user32" Alias _FuncName_UnregisterClass (pClassName As PCTSTR, hinst As HINSTANCE) As BOOL
|
---|
1883 | Declare Function UnregisterHotKey Lib "user32" (hwnd As HWND, id As Long) As BOOL
|
---|
1884 | Declare Function UpdateWindow Lib "user32" (hWnd As HWND) As BOOL
|
---|
1885 | Declare Function ValidateRect Lib "user32" (hWnd As HWND, ByRef lpRect As RECT) As BOOL
|
---|
1886 | Declare Function ValidateRgn Lib "user32" (hWnd As HWND, hRgn As HRGN) As BOOL
|
---|
1887 | Declare Function WaitForInputIdle Lib "user32" (hProcess As HANDLE, dwMilliseconds As DWord) As DWord
|
---|
1888 |
|
---|
1889 | Declare Function WaitMessage Lib "user32" () As BOOL
|
---|
1890 | Declare Function WindowFromDC Lib "user32" (hDC As HDC) As HWND
|
---|
1891 | Declare Function WindowFromPoint Lib "user32" (ptX As Long, ptY As Long) As HWND
|
---|
1892 |
|
---|
1893 | TypeDef HELPPOLY = DWord
|
---|
1894 |
|
---|
1895 | Type MULTIKEYHELPA
|
---|
1896 | mkSize As DWord
|
---|
1897 | mkKeylist As SByte
|
---|
1898 | szKeyphrase[ELM(1)] As SByte
|
---|
1899 | End Type
|
---|
1900 | TypeDef PMULTIKEYHELPA=*MULTIKEYHELPA
|
---|
1901 | TypeDef LPMULTIKEYHELPA=*MULTIKEYHELPA
|
---|
1902 | Type MULTIKEYHELPW
|
---|
1903 | mkSize As DWord
|
---|
1904 | mkKeylist As Word
|
---|
1905 | szKeyphrase[ELM(1)] As Word
|
---|
1906 | End Type
|
---|
1907 | TypeDef PMULTIKEYHELPW=*MULTIKEYHELPW
|
---|
1908 | TypeDef LPMULTIKEYHELPW=*MULTIKEYHELPW
|
---|
1909 |
|
---|
1910 | #ifdef UNICODE
|
---|
1911 | TypeDef MULTIKEYHELP = MULTIKEYHELPW
|
---|
1912 | TypeDef PMULTIKEYHELP = PMULTIKEYHELPW
|
---|
1913 | TypeDef LPMULTIKEYHELP = LPMULTIKEYHELPW
|
---|
1914 | #else
|
---|
1915 | TypeDef MULTIKEYHELP = MULTIKEYHELPA
|
---|
1916 | TypeDef PMULTIKEYHELP = PMULTIKEYHELPA
|
---|
1917 | TypeDef LPMULTIKEYHELP = LPMULTIKEYHELPA
|
---|
1918 | #endif ' UNICODE
|
---|
1919 |
|
---|
1920 | Type HELPWININFOA
|
---|
1921 | wStructSize As Long
|
---|
1922 | x As Long
|
---|
1923 | y As Long
|
---|
1924 | dx As Long
|
---|
1925 | dy As Long
|
---|
1926 | wMax As Long
|
---|
1927 | rgchMember[ELM(2)] As SByte
|
---|
1928 | End Type
|
---|
1929 | TypeDef PHELPWININFOA=*HELPWININFOA
|
---|
1930 | TypeDef LPHELPWININFOA=*HELPWININFOA
|
---|
1931 | Type HELPWININFOW
|
---|
1932 | wStructSize As Long
|
---|
1933 | x As Long
|
---|
1934 | y As Long
|
---|
1935 | dx As Long
|
---|
1936 | dy As Long
|
---|
1937 | wMax As Long
|
---|
1938 | rgchMember[ELM(2)] As Word
|
---|
1939 | End Type
|
---|
1940 | TypeDef PHELPWININFOW=*HELPWININFOW
|
---|
1941 | TypeDef LPHELPWININFOW=*HELPWININFOW
|
---|
1942 |
|
---|
1943 | #ifdef UNICODE
|
---|
1944 | TypeDef HELPWININFO = HELPWININFOW
|
---|
1945 | TypeDef PHELPWININFO = PHELPWININFOW
|
---|
1946 | TypeDef LPHELPWININFO = LPHELPWININFOW
|
---|
1947 | #else
|
---|
1948 | TypeDef HELPWININFO = HELPWININFOA
|
---|
1949 | TypeDef PHELPWININFO = PHELPWININFOA
|
---|
1950 | TypeDef LPHELPWININFO = LPHELPWININFOA
|
---|
1951 | #endif ' UNICODE
|
---|
1952 |
|
---|
1953 | Const HELP_CONTEXT = &H0001
|
---|
1954 | Const HELP_QUIT = &H0002
|
---|
1955 | Const HELP_INDEX = &H0003
|
---|
1956 | Const HELP_CONTENTS = &H0003
|
---|
1957 | Const HELP_HELPONHELP = &H0004
|
---|
1958 | Const HELP_SETINDEX = &H0005
|
---|
1959 | Const HELP_SETCONTENTS = &H0005
|
---|
1960 | Const HELP_CONTEXTPOPUP = &H0008
|
---|
1961 | Const HELP_FORCEFILE = &H0009
|
---|
1962 | Const HELP_KEY = &H0101
|
---|
1963 | Const HELP_COMMAND = &H0102
|
---|
1964 | Const HELP_PARTIALKEY = &H0105
|
---|
1965 | Const HELP_MULTIKEY = &H0201
|
---|
1966 | Const HELP_SETWINPOS = &H0203
|
---|
1967 | Const HELP_CONTEXTMENU = &H000a
|
---|
1968 | Const HELP_FINDER = &H000b
|
---|
1969 | Const HELP_WM_HELP = &H000c
|
---|
1970 | Const HELP_SETPOPUP_POS = &H000d
|
---|
1971 | Const HELP_TCARD = &H8000
|
---|
1972 | Const HELP_TCARD_DATA = &H0010
|
---|
1973 | Const HELP_TCARD_OTHER_CALLER = &H0011
|
---|
1974 |
|
---|
1975 | Const IDH_NO_HELP = 28440
|
---|
1976 | Const IDH_MISSING_CONTEXT = 28441
|
---|
1977 | Const IDH_GENERIC_HELP_BUTTON = 28442
|
---|
1978 | Const IDH_OK = 28443
|
---|
1979 | Const IDH_CANCEL = 28444
|
---|
1980 | Const IDH_HELP = 28445
|
---|
1981 |
|
---|
1982 | Declare Function WinHelpA Lib "user32" (ByVal hWndMain As HWND, ByVal lpszHelp As LPCSTR, ByVal uCommand As DWord, ByVal dwData As ULONG_PTR) As BOOL
|
---|
1983 | Declare Function WinHelpW Lib "user32" (ByVal hWndMain As HWND, ByVal lpszHelp As LPCWSTR, ByVal uCommand As DWord, ByVal dwData As ULONG_PTR) As BOOL
|
---|
1984 | #ifdef UNICODE
|
---|
1985 | Declare Function WinHelp Lib "user32" Alias "WinHelpW" (ByVal hWndMain As HWND, ByVal lpszHelp As LPCWSTR, ByVal uCommand As DWord, ByVal dwData As ULONG_PTR) As BOOL
|
---|
1986 | #else
|
---|
1987 | Declare Function WinHelp Lib "user32" Alias "WinHelpA" (ByVal hWndMain As HWND, ByVal lpszHelp As LPCSTR, ByVal uCommand As DWord, ByVal dwData As ULONG_PTR) As BOOL
|
---|
1988 | #endif ' !UNICODE
|
---|
1989 |
|
---|
1990 | Declare Function wsprintf cdecl Lib "user32" Alias _FuncName_wsprintf (pText As PTSTR, pFormat As PCTSTR, ...) As Long
|
---|
1991 | Declare Function wvsprintf Lib "user32" Alias _FuncName_wvsprintf (pOutput As PTSTR, pFormat As PCTSTR, arglist As DWordPtr) As Long
|
---|
1992 |
|
---|
1993 | Type GUITHREADINFO
|
---|
1994 | cbSize As DWord
|
---|
1995 | flags As DWord
|
---|
1996 | hwndActive As HWND
|
---|
1997 | hwndFocus As HWND
|
---|
1998 | hwndCapture As HWND
|
---|
1999 | hwndMenuOwner As HWND
|
---|
2000 | hwndMoveSize As HWND
|
---|
2001 | hwndCaret As HWND
|
---|
2002 | rcCaret As RECT
|
---|
2003 | End Type
|
---|
2004 | TypeDef PGUITHREADINFO = *GUITHREADINFO
|
---|
2005 | TypeDef LPGUITHREADINFO = *GUITHREADINFO
|
---|
2006 |
|
---|
2007 | Const GUI_CARETBLINKING = &H00000001
|
---|
2008 | Const GUI_INMOVESIZE = &H00000002
|
---|
2009 | Const GUI_INMENUMODE = &H00000004
|
---|
2010 | Const GUI_SYSTEMMENUMODE = &H00000008
|
---|
2011 | Const GUI_POPUPMENUMODE = &H00000010
|
---|
2012 | Const GUI_16BITTASK = &H00000020
|
---|
2013 |
|
---|
2014 | Declare Function GetGUIThreadInfo Lib "user32" (ByVal idThread As DWord, ByRef pgui As GUITHREADINFO) As BOOL
|
---|
2015 |
|
---|
2016 | Const STATE_SYSTEM_UNAVAILABLE = &H00000001
|
---|
2017 | Const STATE_SYSTEM_SELECTED = &H00000002
|
---|
2018 | Const STATE_SYSTEM_FOCUSED = &H00000004
|
---|
2019 | Const STATE_SYSTEM_PRESSED = &H00000008
|
---|
2020 | Const STATE_SYSTEM_CHECKED = &H00000010
|
---|
2021 | Const STATE_SYSTEM_MIXED = &H00000020
|
---|
2022 | Const STATE_SYSTEM_INDETERMINATE = STATE_SYSTEM_MIXED
|
---|
2023 | Const STATE_SYSTEM_READONLY = &H00000040
|
---|
2024 | Const STATE_SYSTEM_HOTTRACKED = &H00000080
|
---|
2025 | Const STATE_SYSTEM_DEFAULT = &H00000100
|
---|
2026 | Const STATE_SYSTEM_EXPANDED = &H00000200
|
---|
2027 | Const STATE_SYSTEM_COLLAPSED = &H00000400
|
---|
2028 | Const STATE_SYSTEM_BUSY = &H00000800
|
---|
2029 | Const STATE_SYSTEM_FLOATING = &H00001000
|
---|
2030 | Const STATE_SYSTEM_MARQUEED = &H00002000
|
---|
2031 | Const STATE_SYSTEM_ANIMATED = &H00004000
|
---|
2032 | Const STATE_SYSTEM_INVISIBLE = &H00008000
|
---|
2033 | Const STATE_SYSTEM_OFFSCREEN = &H00010000
|
---|
2034 | Const STATE_SYSTEM_SIZEABLE = &H00020000
|
---|
2035 | Const STATE_SYSTEM_MOVEABLE = &H00040000
|
---|
2036 | Const STATE_SYSTEM_SELFVOICING = &H00080000
|
---|
2037 | Const STATE_SYSTEM_FOCUSABLE = &H00100000
|
---|
2038 | Const STATE_SYSTEM_SELECTABLE = &H00200000
|
---|
2039 | Const STATE_SYSTEM_LINKED = &H00400000
|
---|
2040 | Const STATE_SYSTEM_TRAVERSED = &H00800000
|
---|
2041 | Const STATE_SYSTEM_MULTISELECTABLE = &H01000000
|
---|
2042 | Const STATE_SYSTEM_EXTSELECTABLE = &H02000000
|
---|
2043 | Const STATE_SYSTEM_ALERT_LOW = &H04000000
|
---|
2044 | Const STATE_SYSTEM_ALERT_MEDIUM = &H08000000
|
---|
2045 | Const STATE_SYSTEM_ALERT_HIGH = &H10000000
|
---|
2046 | Const STATE_SYSTEM_PROTECTED = &H20000000
|
---|
2047 | Const STATE_SYSTEM_VALID = &H3FFFFFFF
|
---|
2048 |
|
---|
2049 | Const CCHILDREN_TITLEBAR = 5
|
---|
2050 | Const CCHILDREN_SCROLLBAR = 5
|
---|
2051 |
|
---|
2052 |
|
---|
2053 | Type CURSORINFO
|
---|
2054 | cbSize As DWord
|
---|
2055 | flags As DWord
|
---|
2056 | hCursor As HCURSOR
|
---|
2057 | ptScreenPos As POINTAPI
|
---|
2058 | End Type
|
---|
2059 | TypeDef PCURSORINFO=*CURSORINFO
|
---|
2060 | TypeDef LPCURSORINFO=*CURSORINFO
|
---|
2061 |
|
---|
2062 | Const CURSOR_SHOWING = &H00000001
|
---|
2063 |
|
---|
2064 | Declare Function GetCursorInfo Lib "user32" (ByRef pci As CURSORINFO) As BOOL
|
---|
2065 |
|
---|
2066 |
|
---|
2067 | Type MENUBARINFO
|
---|
2068 | cbSize As DWord
|
---|
2069 | rcBar As RECT
|
---|
2070 | hMenu As HMENU
|
---|
2071 | hwndMenu As HWND
|
---|
2072 | fields As BOOL
|
---|
2073 | /* fBarFocused As BOOL
|
---|
2074 | fFocused As BOOL*/
|
---|
2075 | End Type
|
---|
2076 | TypeDef PMENUBARINFO=*MENUBARINFO
|
---|
2077 | TypeDef LPMENUBARINFO=*MENUBARINFO
|
---|
2078 |
|
---|
2079 | Declare Function GetMenuBarInfo Lib "user32" (ByVal hwnd As HWND, ByVal idObject As Long, ByVal idItem As Long, ByRef pmbi As MENUBARINFO) As BOOL
|
---|
2080 |
|
---|
2081 | Type COMBOBOXINFO
|
---|
2082 | cbSize As DWord
|
---|
2083 | rcItem As RECT
|
---|
2084 | rcButton As RECT
|
---|
2085 | stateButton As DWord
|
---|
2086 | hwndCombo As HWND
|
---|
2087 | hwndItem As HWND
|
---|
2088 | hwndList As HWND
|
---|
2089 | End Type
|
---|
2090 | TypeDef PCOMBOBOXINFO=*COMBOBOXINFO
|
---|
2091 | TypeDef LPCOMBOBOXINFO=*COMBOBOXINFO
|
---|
2092 |
|
---|
2093 | Declare Function GetComboBoxInfo Lib "user32" (ByVal hwndCombo As HWND, ByRef pcbi As COMBOBOXINFO) As BOOL
|
---|
2094 |
|
---|
2095 |
|
---|
2096 | Const GA_PARENT = 1
|
---|
2097 | Const GA_ROOT = 2
|
---|
2098 | Const GA_ROOTOWNER = 3
|
---|
2099 |
|
---|
2100 | Declare Function GetAncestor Lib "user32" (ByVal hwnd As HWND, ByVal gaFlags As DWord) As HWND
|
---|
2101 |
|
---|
2102 |
|
---|
2103 | Declare Function RealGetWindowClassA Lib "user32" (ByVal hwnd As HWND, ByVal ptszClassName As LPSTR, ByVal cchClassNameMax As DWord) As DWord
|
---|
2104 | Declare Function RealGetWindowClassW Lib "user32" (ByVal hwnd As HWND, ByVal ptszClassName As LPWSTR, ByVal cchClassNameMax As DWord) As DWord
|
---|
2105 | #ifdef UNICODE
|
---|
2106 | Declare Function RealGetWindowClass Lib "user32" Alias "RealGetWindowClassW" (ByVal hwnd As HWND, ByVal ptszClassName As LPWSTR, ByVal cchClassNameMax As DWord) As DWord
|
---|
2107 | #else
|
---|
2108 | Declare Function RealGetWindowClass Lib "user32" Alias "RealGetWindowClassA" (ByVal hwnd As HWND, ByVal ptszClassName As LPSTR, ByVal cchClassNameMax As DWord) As DWord
|
---|
2109 | #endif ' !UNICODE
|
---|
2110 |
|
---|
2111 |
|
---|
2112 | Type ALTTABINFO
|
---|
2113 | cbSize As DWord
|
---|
2114 | cItems As Long
|
---|
2115 | cColumns As Long
|
---|
2116 | cRows As Long
|
---|
2117 | iColFocus As Long
|
---|
2118 | iRowFocus As Long
|
---|
2119 | cxItem As Long
|
---|
2120 | cyItem As Long
|
---|
2121 | ptStart As POINTAPI
|
---|
2122 | End Type
|
---|
2123 | TypeDef PALTTABINFO=*ALTTABINFO
|
---|
2124 | TypeDef LPALTTABINFO=*ALTTABINFO
|
---|
2125 |
|
---|
2126 | Declare Function GetAltTabInfoA Lib "user32" (ByVal hwnd As HWND, ByVal iItem As Long, ByRef pati As ALTTABINFO, ByVal pszItemText As LPSTR, ByVal cchItemText As DWord) As BOOL
|
---|
2127 | Declare Function GetAltTabInfoW Lib "user32" (ByVal hwnd As HWND, ByVal iItem As Long, ByRef pati As ALTTABINFO, ByVal pszItemText As LPWSTR, ByVal cchItemText As DWord) As BOOL
|
---|
2128 | #ifdef UNICODE
|
---|
2129 | Declare Function GetAltTabInfo Lib "user32" Alias "GetAltTabInfoW" (ByVal hwnd As HWND, ByVal iItem As Long, ByRef pati As ALTTABINFO, ByVal pszItemText As LPWSTR, ByVal cchItemText As DWord) As BOOL
|
---|
2130 | #else
|
---|
2131 | Declare Function GetAltTabInfo Lib "user32" Alias "GetAltTabInfoA" (ByVal hwnd As HWND, ByVal iItem As Long, ByRef pati As ALTTABINFO, ByVal pszItemText As LPSTR, ByVal cchItemText As DWord) As BOOL
|
---|
2132 | #endif ' !UNICODE
|
---|
2133 | #endif '_INC_WINDOW
|
---|