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