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