[1] | 1 | ' api_msg.sbp - declarations file for window control.
|
---|
| 2 |
|
---|
| 3 |
|
---|
| 4 | #ifndef _INC_MSG
|
---|
| 5 | #define _INC_MSG
|
---|
| 6 |
|
---|
| 7 |
|
---|
| 8 | '------------------------------
|
---|
| 9 | ' Virtual Keys, Standard Set
|
---|
| 10 | '------------------------------
|
---|
| 11 |
|
---|
| 12 | Const VK_LBUTTON = &H01
|
---|
| 13 | Const VK_RBUTTON = &H02
|
---|
| 14 | Const VK_CANCEL = &H03
|
---|
| 15 | Const VK_MBUTTON = &H04
|
---|
[473] | 16 | '#if _WIN32_WINNT >= &H0500
|
---|
| 17 | Const VK_XBUTTON1 = &H05
|
---|
| 18 | Const VK_XBUTTON2 = &H06
|
---|
| 19 | '#endif
|
---|
[1] | 20 | Const VK_BACK = &H08
|
---|
| 21 | Const VK_TAB = &H09
|
---|
| 22 |
|
---|
| 23 | Const VK_CLEAR = &H0C
|
---|
| 24 | Const VK_RETURN = &H0D
|
---|
| 25 |
|
---|
| 26 | Const VK_SHIFT = &H10
|
---|
| 27 | Const VK_CONTROL = &H11
|
---|
| 28 | Const VK_MENU = &H12
|
---|
| 29 | Const VK_PAUSE = &H13
|
---|
| 30 | Const VK_CAPITAL = &H14
|
---|
| 31 |
|
---|
| 32 | Const VK_KANA = &H15
|
---|
| 33 | Const VK_HANGEUL = &H15
|
---|
| 34 | Const VK_HANGUL = &H15
|
---|
| 35 | Const VK_JUNJA = &H17
|
---|
| 36 | Const VK_FINAL = &H18
|
---|
| 37 | Const VK_HANJA = &H19
|
---|
| 38 | Const VK_KANJI = &H19
|
---|
| 39 |
|
---|
| 40 | Const VK_ESCAPE = &H1B
|
---|
| 41 |
|
---|
| 42 | Const VK_CONVERT = &H1C
|
---|
| 43 | Const VK_NONCONVERT = &H1D
|
---|
| 44 | Const VK_ACCEPT = &H1E
|
---|
| 45 | Const VK_MODECHANGE = &H1F
|
---|
| 46 |
|
---|
| 47 | Const VK_SPACE = &H20
|
---|
| 48 | Const VK_PRIOR = &H21
|
---|
| 49 | Const VK_NEXT = &H22
|
---|
| 50 | Const VK_END = &H23
|
---|
| 51 | Const VK_HOME = &H24
|
---|
| 52 | Const VK_LEFT = &H25
|
---|
| 53 | Const VK_UP = &H26
|
---|
| 54 | Const VK_RIGHT = &H27
|
---|
| 55 | Const VK_DOWN = &H28
|
---|
| 56 | Const VK_SELECT = &H29
|
---|
| 57 | Const VK_PRINT = &H2A
|
---|
| 58 | Const VK_EXECUTE = &H2B
|
---|
| 59 | Const VK_SNAPSHOT = &H2C
|
---|
| 60 | Const VK_INSERT = &H2D
|
---|
| 61 | Const VK_DELETE = &H2E
|
---|
| 62 | Const VK_HELP = &H2F
|
---|
| 63 |
|
---|
| 64 | Const VK_LWIN = &H5B
|
---|
| 65 | Const VK_RWIN = &H5C
|
---|
| 66 | Const VK_APPS = &H5D
|
---|
[473] | 67 | Const VK_SLEEP = &H5F
|
---|
[1] | 68 |
|
---|
| 69 | Const VK_NUMPAD0 = &H60
|
---|
| 70 | Const VK_NUMPAD1 = &H61
|
---|
| 71 | Const VK_NUMPAD2 = &H62
|
---|
| 72 | Const VK_NUMPAD3 = &H63
|
---|
| 73 | Const VK_NUMPAD4 = &H64
|
---|
| 74 | Const VK_NUMPAD5 = &H65
|
---|
| 75 | Const VK_NUMPAD6 = &H66
|
---|
| 76 | Const VK_NUMPAD7 = &H67
|
---|
| 77 | Const VK_NUMPAD8 = &H68
|
---|
| 78 | Const VK_NUMPAD9 = &H69
|
---|
| 79 | Const VK_MULTIPLY = &H6A
|
---|
| 80 | Const VK_ADD = &H6B
|
---|
| 81 | Const VK_SEPARATOR = &H6C
|
---|
| 82 | Const VK_SUBTRACT = &H6D
|
---|
| 83 | Const VK_DECIMAL = &H6E
|
---|
| 84 | Const VK_DIVIDE = &H6F
|
---|
| 85 | Const VK_F1 = &H70
|
---|
| 86 | Const VK_F2 = &H71
|
---|
| 87 | Const VK_F3 = &H72
|
---|
| 88 | Const VK_F4 = &H73
|
---|
| 89 | Const VK_F5 = &H74
|
---|
| 90 | Const VK_F6 = &H75
|
---|
| 91 | Const VK_F7 = &H76
|
---|
| 92 | Const VK_F8 = &H77
|
---|
| 93 | Const VK_F9 = &H78
|
---|
| 94 | Const VK_F10 = &H79
|
---|
| 95 | Const VK_F11 = &H7A
|
---|
| 96 | Const VK_F12 = &H7B
|
---|
| 97 | Const VK_F13 = &H7C
|
---|
| 98 | Const VK_F14 = &H7D
|
---|
| 99 | Const VK_F15 = &H7E
|
---|
| 100 | Const VK_F16 = &H7F
|
---|
| 101 | Const VK_F17 = &H80
|
---|
| 102 | Const VK_F18 = &H81
|
---|
| 103 | Const VK_F19 = &H82
|
---|
| 104 | Const VK_F20 = &H83
|
---|
| 105 | Const VK_F21 = &H84
|
---|
| 106 | Const VK_F22 = &H85
|
---|
| 107 | Const VK_F23 = &H86
|
---|
| 108 | Const VK_F24 = &H87
|
---|
| 109 |
|
---|
| 110 | Const VK_NUMLOCK = &H90
|
---|
| 111 | Const VK_SCROLL = &H91
|
---|
| 112 |
|
---|
| 113 | ' Used only as parameters to GetAsyncKeyState() and GetKeyState().
|
---|
| 114 | Const VK_LSHIFT = &HA0
|
---|
| 115 | Const VK_RSHIFT = &HA1
|
---|
| 116 | Const VK_LCONTROL = &HA2
|
---|
| 117 | Const VK_RCONTROL = &HA3
|
---|
| 118 | Const VK_LMENU = &HA4
|
---|
| 119 | Const VK_RMENU = &HA5
|
---|
| 120 |
|
---|
[473] | 121 | '#if _WIN32_WINNT >= &h0500
|
---|
| 122 | Const VK_BROWSER_BACK = &HA6
|
---|
| 123 | Const VK_BROWSER_FORWARD = &HA7
|
---|
| 124 | Const VK_BROWSER_REFRESH = &HA8
|
---|
| 125 | Const VK_BROWSER_STOP = &HA9
|
---|
| 126 | Const VK_BROWSER_SEARCH = &HAA
|
---|
| 127 | Const VK_BROWSER_FAVORITES = &HAB
|
---|
| 128 | Const VK_BROWSER_HOME = &HAC
|
---|
| 129 |
|
---|
| 130 | Const VK_VOLUME_MUTE = &HAD
|
---|
| 131 | Const VK_VOLUME_DOWN = &HAE
|
---|
| 132 | Const VK_VOLUME_UP = &HAF
|
---|
| 133 | Const VK_MEDIA_NEXT_TRACK = &HB0
|
---|
| 134 | Const VK_MEDIA_PREV_TRACK = &HB1
|
---|
| 135 | Const VK_MEDIA_STOP = &HB2
|
---|
| 136 | Const VK_MEDIA_PLAY_PAUSE = &HB3
|
---|
| 137 | Const VK_LAUNCH_MAIL = &HB4
|
---|
| 138 | Const VK_LAUNCH_MEDIA_SELECT = &HB5
|
---|
| 139 | Const VK_LAUNCH_APP1 = &HB6
|
---|
| 140 | Const VK_LAUNCH_APP2 = &HB7
|
---|
| 141 | '#endif
|
---|
| 142 |
|
---|
| 143 | Const VK_OEM_1 = &HBA
|
---|
| 144 | Const VK_OEM_PLUS = &HBB
|
---|
| 145 | Const VK_OEM_COMMA = &HBC
|
---|
| 146 | Const VK_OEM_MINUS = &HBD
|
---|
| 147 | Const VK_OEM_PERIOD = &HBE
|
---|
| 148 | Const VK_OEM_2 = &HBF
|
---|
| 149 | Const VK_OEM_3 = &HC0
|
---|
| 150 | Const VK_OEM_4 = &HDB
|
---|
| 151 | Const VK_OEM_5 = &HDC
|
---|
| 152 | Const VK_OEM_6 = &HDD
|
---|
| 153 | Const VK_OEM_7 = &HDE
|
---|
| 154 | Const VK_OEM_8 = &HDF
|
---|
| 155 | Const VK_OEM_AX = &HE1
|
---|
| 156 | Const VK_OEM_102 = &HE2
|
---|
| 157 | Const VK_ICO_HELP = &HE3
|
---|
| 158 | Const VK_ICO_00 = &HE4
|
---|
| 159 |
|
---|
[1] | 160 | Const VK_PROCESSKEY = &HE5
|
---|
| 161 |
|
---|
[473] | 162 | Const VK_ICO_CLEAR = &HE6
|
---|
| 163 |
|
---|
| 164 |
|
---|
| 165 | '#if _WIN32_WINNT >= &h0500
|
---|
| 166 | Const VK_PACKET = &HE7
|
---|
| 167 | '#endif
|
---|
| 168 |
|
---|
| 169 | Const VK_OEM_RESET = &HE9
|
---|
| 170 | Const VK_OEM_JUMP = &HEA
|
---|
| 171 | Const VK_OEM_PA1 = &HEB
|
---|
| 172 | Const VK_OEM_PA2 = &HEC
|
---|
| 173 | Const VK_OEM_PA3 = &HED
|
---|
| 174 | Const VK_OEM_WSCTRL = &HEE
|
---|
| 175 | Const VK_OEM_CUSEL = &HEF
|
---|
| 176 | Const VK_OEM_ATTN = &HF0
|
---|
| 177 | Const VK_OEM_FINISH = &HF1
|
---|
| 178 | Const VK_OEM_COPY = &HF2
|
---|
| 179 | Const VK_OEM_AUTO = &HF3
|
---|
| 180 | Const VK_OEM_ENLW = &HF4
|
---|
| 181 | Const VK_OEM_BACKTAB = &HF5
|
---|
| 182 |
|
---|
[1] | 183 | Const VK_ATTN = &HF6
|
---|
| 184 | Const VK_CRSEL = &HF7
|
---|
| 185 | Const VK_EXSEL = &HF8
|
---|
| 186 | Const VK_EREOF = &HF9
|
---|
| 187 | Const VK_PLAY = &HFA
|
---|
| 188 | Const VK_ZOOM = &HFB
|
---|
| 189 | Const VK_NONAME = &HFC
|
---|
| 190 | Const VK_PA1 = &HFD
|
---|
| 191 | Const VK_OEM_CLEAR = &HFE
|
---|
| 192 |
|
---|
| 193 | '-------------------
|
---|
| 194 | ' Window Messages
|
---|
| 195 | '-------------------
|
---|
| 196 |
|
---|
| 197 | Const WM_NULL = &H0000
|
---|
| 198 | Const WM_CREATE = &H0001
|
---|
| 199 | ' lParam of WM_CREATE message point to...
|
---|
[120] | 200 | Type CREATESTRUCTA
|
---|
[1] | 201 | lpCreateParams As VoidPtr
|
---|
| 202 | hInstance As HINSTANCE
|
---|
| 203 | hMenu As HMENU
|
---|
| 204 | hwndParent As HWND
|
---|
| 205 | cy As Long
|
---|
| 206 | cx As Long
|
---|
| 207 | y As Long
|
---|
| 208 | x As Long
|
---|
| 209 | style As Long
|
---|
[120] | 210 | lpszName As PCSTR
|
---|
| 211 | lpszClass As PCSTR
|
---|
[1] | 212 | dwExStyle As DWord
|
---|
| 213 | End Type
|
---|
[120] | 214 | Type CREATESTRUCTW
|
---|
| 215 | lpCreateParams As VoidPtr
|
---|
| 216 | hInstance As HINSTANCE
|
---|
| 217 | hMenu As HMENU
|
---|
| 218 | hwndParent As HWND
|
---|
| 219 | cy As Long
|
---|
| 220 | cx As Long
|
---|
| 221 | y As Long
|
---|
| 222 | x As Long
|
---|
| 223 | style As Long
|
---|
| 224 | lpszName As PCWSTR
|
---|
| 225 | lpszClass As PCWSTR
|
---|
| 226 | dwExStyle As DWord
|
---|
| 227 | End Type
|
---|
| 228 | #ifdef UNICODE
|
---|
| 229 | TypeDef CREATESTRUCT = CREATESTRUCTW
|
---|
| 230 | #else
|
---|
| 231 | TypeDef CREATESTRUCT = CREATESTRUCTA
|
---|
| 232 | #endif
|
---|
[1] | 233 | Const WM_DESTROY = &H0002
|
---|
| 234 | Const WM_MOVE = &H0003
|
---|
| 235 | Const WM_SIZE = &H0005
|
---|
| 236 | ' WM_SIZE message wParam values
|
---|
| 237 | Const SIZE_RESTORED = 0
|
---|
| 238 | Const SIZE_MINIMIZED = 1
|
---|
| 239 | Const SIZE_MAXIMIZED = 2
|
---|
| 240 | Const SIZE_MAXSHOW = 3
|
---|
| 241 | Const SIZE_MAXHIDE = 4
|
---|
| 242 |
|
---|
| 243 | Const WM_ACTIVATE = &H0006
|
---|
| 244 | ' WM_ACTIVATE state values
|
---|
| 245 | Const WA_INACTIVE = 0
|
---|
| 246 | Const WA_ACTIVE = 1
|
---|
| 247 | Const WA_CLICKACTIVE = 2
|
---|
| 248 |
|
---|
| 249 | Const WM_SETFOCUS = &H0007
|
---|
| 250 | Const WM_KILLFOCUS = &H0008
|
---|
| 251 | Const WM_ENABLE = &H000A
|
---|
| 252 | Const WM_SETREDRAW = &H000B
|
---|
| 253 | Const WM_SETTEXT = &H000C
|
---|
| 254 | Const WM_GETTEXT = &H000D
|
---|
| 255 | Const WM_GETTEXTLENGTH = &H000E
|
---|
| 256 | Const WM_PAINT = &H000F
|
---|
| 257 | Const WM_CLOSE = &H0010
|
---|
| 258 | Const WM_QUERYENDSESSION = &H0011
|
---|
| 259 | Const WM_QUIT = &H0012
|
---|
| 260 | Const WM_QUERYOPEN = &H0013
|
---|
| 261 | Const WM_ERASEBKGND = &H0014
|
---|
| 262 | Const WM_SYSCOLORCHANGE = &H0015
|
---|
| 263 | Const WM_ENDSESSION = &H0016
|
---|
| 264 | Const WM_SHOWWINDOW = &H0018
|
---|
| 265 | ' Identifiers for the WM_SHOWWINDOW message
|
---|
| 266 | Const SW_PARENTCLOSING = 1
|
---|
| 267 | Const SW_OTHERZOOM = 2
|
---|
| 268 | Const SW_PARENTOPENING = 3
|
---|
| 269 | Const SW_OTHERUNZOOM = 4
|
---|
| 270 | Const WM_WININICHANGE = &H001A
|
---|
| 271 | Const WM_SETTINGCHANGE = WM_WININICHANGE
|
---|
| 272 |
|
---|
| 273 | Const WM_DEVMODECHANGE = &H001B
|
---|
| 274 | Const WM_ACTIVATEAPP = &H001C
|
---|
| 275 | Const WM_FONTCHANGE = &H001D
|
---|
| 276 | Const WM_TIMECHANGE = &H001E
|
---|
| 277 | Const WM_CANCELMODE = &H001F
|
---|
| 278 | Const WM_SETCURSOR = &H0020
|
---|
| 279 | Const WM_MOUSEACTIVATE = &H0021
|
---|
| 280 | Const WM_CHILDACTIVATE = &H0022
|
---|
| 281 | Const WM_QUEUESYNC = &H0023
|
---|
| 282 |
|
---|
| 283 | Const WM_GETMINMAXINFO = &H0024
|
---|
| 284 | ' Struct pointed to by WM_GETMINMAXINFO lParam
|
---|
| 285 | Type MINMAXINFO
|
---|
| 286 | ptReserved As POINTAPI
|
---|
| 287 | ptMaxSize As POINTAPI
|
---|
| 288 | ptMaxPosition As POINTAPI
|
---|
| 289 | ptMinTrackSize As POINTAPI
|
---|
| 290 | ptMaxTrackSize As POINTAPI
|
---|
| 291 | End Type
|
---|
| 292 |
|
---|
| 293 | Const WM_PAINTICON = &H0026
|
---|
| 294 | Const WM_ICONERASEBKGND = &H0027
|
---|
| 295 | Const WM_NEXTDLGCTL = &H0028
|
---|
| 296 | Const WM_SPOOLERSTATUS = &H002A
|
---|
| 297 |
|
---|
| 298 |
|
---|
| 299 | Const WM_DRAWITEM = &H002B
|
---|
| 300 |
|
---|
| 301 | 'DRAWITEMSTRUCT for ownerdraw
|
---|
| 302 | Type DRAWITEMSTRUCT
|
---|
| 303 | CtlType As DWord
|
---|
| 304 | CtlID As DWord
|
---|
| 305 | itemID As DWord
|
---|
| 306 | itemAction As DWord
|
---|
| 307 | itemState As DWord
|
---|
| 308 | hwndItem As HWND
|
---|
| 309 | hDC As HDC
|
---|
| 310 | rcItem As RECT
|
---|
| 311 | itemData As ULONG_PTR
|
---|
| 312 | End Type
|
---|
| 313 |
|
---|
| 314 |
|
---|
| 315 | Const WM_MEASUREITEM = &H002C
|
---|
| 316 |
|
---|
| 317 | ' Owner draw control types
|
---|
| 318 | Const ODT_MENU = 1
|
---|
| 319 | Const ODT_LISTBOX = 2
|
---|
| 320 | Const ODT_COMBOBOX = 3
|
---|
| 321 | Const ODT_BUTTON = 4
|
---|
| 322 | Const ODT_STATIC = 5
|
---|
| 323 |
|
---|
| 324 | 'Owner draw actions
|
---|
| 325 | Const ODA_DRAWENTIRE = &H0001
|
---|
| 326 | Const ODA_SELECT = &H0002
|
---|
| 327 | Const ODA_FOCUS = &H0004
|
---|
| 328 |
|
---|
| 329 | 'Owner draw state
|
---|
| 330 | Const ODS_SELECTED = &H0001
|
---|
| 331 | Const ODS_GRAYED = &H0002
|
---|
| 332 | Const ODS_DISABLED = &H0004
|
---|
| 333 | Const ODS_CHECKED = &H0008
|
---|
| 334 | Const ODS_FOCUS = &H0010
|
---|
| 335 | Const ODS_DEFAULT = &H0020
|
---|
| 336 | Const ODS_COMBOBOXEDIT = &H1000
|
---|
| 337 | Const ODS_HOTLIGHT = &H0040
|
---|
| 338 | Const ODS_INACTIVE = &H0080
|
---|
| 339 | Const ODS_NOACCEL = &H0100
|
---|
| 340 | Const ODS_NOFOCUSRECT = &H0200
|
---|
| 341 |
|
---|
| 342 | 'MEASUREITEMSTRUCT for ownerdraw
|
---|
| 343 | Type MEASUREITEMSTRUCT
|
---|
| 344 | CtlType As DWord
|
---|
| 345 | CtlID As DWord
|
---|
| 346 | itemID As DWord
|
---|
| 347 | itemWidth As DWord
|
---|
| 348 | itemHeight As DWord
|
---|
| 349 | itemData As ULONG_PTR
|
---|
| 350 | End Type
|
---|
| 351 |
|
---|
| 352 |
|
---|
| 353 | Const WM_DELETEITEM = &H002D
|
---|
| 354 |
|
---|
| 355 | ' DELETEITEMSTRUCT for ownerdraw
|
---|
| 356 | Type DELETEITEMSTRUCT
|
---|
| 357 | CtlType As DWord
|
---|
| 358 | CtlID As DWord
|
---|
| 359 | itemID As DWord
|
---|
| 360 | hwndItem As HWND
|
---|
| 361 | itemData As DWord
|
---|
| 362 | End Type
|
---|
| 363 |
|
---|
| 364 |
|
---|
| 365 | Const WM_VKEYTOITEM = &H002E
|
---|
| 366 | Const WM_CHARTOITEM = &H002F
|
---|
| 367 | Const WM_SETFONT = &H0030
|
---|
| 368 | Const WM_GETFONT = &H0031
|
---|
| 369 | Const WM_SETHOTKEY = &H0032
|
---|
| 370 | Const WM_GETHOTKEY = &H0033
|
---|
| 371 | Const WM_QUERYDRAGICON = &H0037
|
---|
| 372 | Const WM_COMPAREITEM = &H0039
|
---|
| 373 | ' COMPAREITEMSTUCT for ownerdraw sorting
|
---|
| 374 | Type COMPAREITEMSTRUCT
|
---|
| 375 | CtlType As DWord
|
---|
| 376 | CtlID As DWord
|
---|
| 377 | hwndItem As HWND
|
---|
| 378 | itemID1 As DWord
|
---|
| 379 | itemData1 As DWord
|
---|
| 380 | itemID2 As DWord
|
---|
| 381 | itemData2 As DWord
|
---|
| 382 | dwLocaleId As DWord
|
---|
| 383 | End Type
|
---|
[120] | 384 | '#if WINVER > &h0500
|
---|
[1] | 385 | Const WM_GETOBJECT = &H003D
|
---|
[120] | 386 | '#endif
|
---|
[1] | 387 | Const WM_COMPACTING = &H0041
|
---|
| 388 | Const WM_COMMNOTIFY = &H0044
|
---|
| 389 | Const WM_WINDOWPOSCHANGING = &H0046
|
---|
| 390 | Const WM_WINDOWPOSCHANGED = &H0047
|
---|
| 391 | ' WM_WINDOWPOSCHANGING/CHANGED struct pointed to by lParam
|
---|
| 392 | Type WINDOWPOS
|
---|
| 393 | hwnd As HWND
|
---|
| 394 | hwndInsertAfter As HWND
|
---|
| 395 | x As Long
|
---|
| 396 | y As Long
|
---|
| 397 | cx As Long
|
---|
| 398 | cy As Long
|
---|
| 399 | flags As DWord
|
---|
| 400 | End Type
|
---|
| 401 |
|
---|
| 402 | Const WM_POWER = &H0048
|
---|
| 403 | ' wParam for WM_POWER window message and DRV_POWER driver notification
|
---|
| 404 | Const PWR_OK = 1
|
---|
| 405 | Const PWR_FAIL = -1
|
---|
| 406 | Const PWR_SUSPENDREQUEST =1
|
---|
| 407 | Const PWR_SUSPENDRESUME = 2
|
---|
| 408 | Const PWR_CRITICALRESUME =3
|
---|
| 409 |
|
---|
| 410 | Const WM_COPYDATA = &H004A
|
---|
| 411 | ' lParam of WM_COPYDATA message points to...
|
---|
| 412 | Type COPYDATASTRUCT
|
---|
| 413 | dwData As DWord
|
---|
| 414 | cbData As DWord
|
---|
| 415 | lpData As VoidPtr
|
---|
| 416 | End Type
|
---|
| 417 |
|
---|
| 418 | Const WM_CANCELJOURNAL = &H004B
|
---|
| 419 | Const WM_NOTIFY = &H004E
|
---|
| 420 | Const WM_INPUTLANGCHANGEREQUEST = &H0050
|
---|
| 421 | Const WM_INPUTLANGCHANGE = &H0051
|
---|
| 422 | Const WM_TCARD = &H0052
|
---|
| 423 | Const WM_HELP = &H0053
|
---|
| 424 | ' lParam of WM_HELP messgae point to...
|
---|
| 425 | Type HELPINFO
|
---|
| 426 | cbSize As DWord
|
---|
| 427 | iContextType As Long
|
---|
| 428 | iCtrlId As Long
|
---|
| 429 | hItemHandle As HANDLE
|
---|
| 430 | dwContextId As DWord
|
---|
| 431 | MousePos As POINTAPI
|
---|
| 432 | End Type
|
---|
| 433 | Const WM_USERCHANGED = &H0054
|
---|
| 434 | Const WM_NOTIFYFORMAT = &H0055
|
---|
| 435 | Const NFR_ANSI = 1
|
---|
| 436 | Const NFR_UNICODE = 2
|
---|
| 437 | Const NF_QUERY = 3
|
---|
| 438 | Const NF_REQUERY = 4
|
---|
| 439 |
|
---|
| 440 | Const WM_CONTEXTMENU = &H007B
|
---|
| 441 | Const WM_STYLECHANGING = &H007C
|
---|
| 442 | Const WM_STYLECHANGED = &H007D
|
---|
| 443 | Const WM_DISPLAYCHANGE = &H007E
|
---|
| 444 | Const WM_GETICON = &H007F
|
---|
| 445 | Const WM_SETICON = &H0080
|
---|
| 446 | ' WM_SETICON / WM_GETICON Type Codes
|
---|
| 447 | Const ICON_SMALL = 0
|
---|
| 448 | Const ICON_BIG = 1
|
---|
| 449 |
|
---|
| 450 | Const WM_NCCREATE = &H0081
|
---|
| 451 | Const WM_NCDESTROY = &H0082
|
---|
| 452 | Const WM_NCCALCSIZE = &H0083
|
---|
| 453 | Const WM_NCHITTEST = &H0084
|
---|
| 454 | ' WM_NCHITTEST and MOUSEHOOKSTRUCT Mouse Position Codes
|
---|
| 455 | Const HTERROR = -2
|
---|
| 456 | Const HTTRANSPARENT = -1
|
---|
| 457 | Const HTNOWHERE = 0
|
---|
| 458 | Const HTCLIENT = 1
|
---|
| 459 | Const HTCAPTION = 2
|
---|
| 460 | Const HTSYSMENU = 3
|
---|
| 461 | Const HTGROWBOX = 4
|
---|
| 462 | Const HTSIZE = HTGROWBOX
|
---|
| 463 | Const HTMENU = 5
|
---|
| 464 | Const HTHSCROLL = 6
|
---|
| 465 | Const HTVSCROLL = 7
|
---|
| 466 | Const HTMINBUTTON = 8
|
---|
| 467 | Const HTMAXBUTTON = 9
|
---|
| 468 | Const HTLEFT = 10
|
---|
| 469 | Const HTRIGHT = 11
|
---|
| 470 | Const HTTOP = 12
|
---|
| 471 | Const HTTOPLEFT = 13
|
---|
| 472 | Const HTTOPRIGHT = 14
|
---|
| 473 | Const HTBOTTOM = 15
|
---|
| 474 | Const HTBOTTOMLEFT = 16
|
---|
| 475 | Const HTBOTTOMRIGHT = 17
|
---|
| 476 | Const HTBORDER = 18
|
---|
| 477 | Const HTREDUCE = HTMINBUTTON
|
---|
| 478 | Const HTZOOM = HTMAXBUTTON
|
---|
| 479 | Const HTSIZEFIRST = HTLEFT
|
---|
| 480 | Const HTSIZELAST = HTBOTTOMRIGHT
|
---|
| 481 | Const HTOBJECT = 19
|
---|
| 482 | Const HTCLOSE = 20
|
---|
| 483 | Const HTHELP = 21
|
---|
| 484 | Const WM_NCPAINT = &H0085
|
---|
| 485 | Const WM_NCACTIVATE = &H0086
|
---|
| 486 | Const WM_GETDLGCODE = &H0087
|
---|
| 487 | Const WM_SYNCPAINT = &H0088
|
---|
| 488 | Const WM_NCMOUSEMOVE = &H00A0
|
---|
| 489 | Const WM_NCLBUTTONDOWN = &H00A1
|
---|
| 490 | Const WM_NCLBUTTONUP = &H00A2
|
---|
| 491 | Const WM_NCLBUTTONDBLCLK = &H00A3
|
---|
| 492 | Const WM_NCRBUTTONDOWN = &H00A4
|
---|
| 493 | Const WM_NCRBUTTONUP = &H00A5
|
---|
| 494 | Const WM_NCRBUTTONDBLCLK = &H00A6
|
---|
| 495 | Const WM_NCMBUTTONDOWN = &H00A7
|
---|
| 496 | Const WM_NCMBUTTONUP = &H00A8
|
---|
| 497 | Const WM_NCMBUTTONDBLCLK = &H00A9
|
---|
[120] | 498 | '#if _WIN32_WINNT >= &h0500
|
---|
| 499 | Const WM_NCXBUTTONDOWN = &H00AB
|
---|
| 500 | Const WM_NCXBUTTONUP = &H00AC
|
---|
| 501 | Const WM_NCXBUTTONDBLCLK = &h00AD
|
---|
| 502 | '#endif
|
---|
| 503 | '#if _WIN32_WINNT >= &H0501
|
---|
| 504 | Const WM_INPUT_DEVICE_CHANGE = &H00FE
|
---|
| 505 | Const WM_INPUT = &H00FF
|
---|
| 506 | '#endif
|
---|
[1] | 507 | Const WM_KEYFIRST = &H0100
|
---|
| 508 | Const WM_KEYDOWN = &H0100
|
---|
| 509 | Const WM_KEYUP = &H0101
|
---|
| 510 | Const WM_CHAR = &H0102
|
---|
| 511 | Const WM_DEADCHAR = &H0103
|
---|
| 512 | Const WM_SYSKEYDOWN = &H0104
|
---|
| 513 | Const WM_SYSKEYUP = &H0105
|
---|
| 514 | Const WM_SYSCHAR = &H0106
|
---|
| 515 | Const WM_SYSDEADCHAR = &H0107
|
---|
[120] | 516 | '#if _WIN32_WINNT >= &h0501
|
---|
| 517 | Const WM_UNICHAR = &H0109
|
---|
| 518 | Const UNICODE_NOCHAR = &HFFFF
|
---|
| 519 | Const WM_KEYLAST = &H0109
|
---|
| 520 | '#else
|
---|
| 521 | 'Const WM_KEYLAST = &H0108
|
---|
| 522 | '#endif
|
---|
[1] | 523 | Const WM_IME_STARTCOMPOSITION = &H010D
|
---|
| 524 | Const WM_IME_ENDCOMPOSITION = &H010E
|
---|
| 525 | Const WM_IME_COMPOSITION = &H010F
|
---|
| 526 | Const WM_IME_KEYLAST = &H010F
|
---|
| 527 |
|
---|
| 528 | Const WM_INITDIALOG = &H0110
|
---|
| 529 | Const WM_COMMAND = &H0111
|
---|
| 530 | Const WM_SYSCOMMAND = &H0112
|
---|
| 531 | ' System Menu Command Values
|
---|
| 532 | Const SC_SIZE = &HF000
|
---|
| 533 | Const SC_MOVE = &HF010
|
---|
| 534 | Const SC_MINIMIZE = &HF020
|
---|
| 535 | Const SC_MAXIMIZE = &HF030
|
---|
| 536 | Const SC_NEXTWINDOW = &HF040
|
---|
| 537 | Const SC_PREVWINDOW = &HF050
|
---|
| 538 | Const SC_CLOSE = &HF060
|
---|
| 539 | Const SC_VSCROLL = &HF070
|
---|
| 540 | Const SC_HSCROLL = &HF080
|
---|
| 541 | Const SC_MOUSEMENU = &HF090
|
---|
| 542 | Const SC_KEYMENU = &HF100
|
---|
| 543 | Const SC_ARRANGE = &HF110
|
---|
| 544 | Const SC_RESTORE = &HF120
|
---|
| 545 | Const SC_TASKLIST = &HF130
|
---|
| 546 | Const SC_SCREENSAVE = &HF140
|
---|
| 547 | Const SC_HOTKEY = &HF150
|
---|
| 548 | Const SC_DEFAULT = &HF160
|
---|
| 549 | Const SC_MONITORPOWER = &HF170
|
---|
| 550 | Const SC_CONTEXTHELP = &HF180
|
---|
| 551 | Const SC_SEPARATOR = &HF00F
|
---|
| 552 | Const WM_TIMER = &H0113
|
---|
| 553 | Const WM_HSCROLL = &H0114
|
---|
| 554 | Const WM_VSCROLL = &H0115
|
---|
| 555 | ' Scroll Bar Commands
|
---|
| 556 | Const SB_LINEUP = 0
|
---|
| 557 | Const SB_LINELEFT = 0
|
---|
| 558 | Const SB_LINEDOWN = 1
|
---|
| 559 | Const SB_LINERIGHT = 1
|
---|
| 560 | Const SB_PAGEUP = 2
|
---|
| 561 | Const SB_PAGELEFT = 2
|
---|
| 562 | Const SB_PAGEDOWN = 3
|
---|
| 563 | Const SB_PAGERIGHT = 3
|
---|
| 564 | Const SB_THUMBPOSITION = 4
|
---|
| 565 | Const SB_THUMBTRACK = 5
|
---|
| 566 | Const SB_TOP = 6
|
---|
| 567 | Const SB_LEFT = 6
|
---|
| 568 | Const SB_BOTTOM = 7
|
---|
| 569 | Const SB_RIGHT = 7
|
---|
| 570 | Const SB_ENDSCROLL = 8
|
---|
| 571 | Const WM_INITMENU = &H0116
|
---|
| 572 | Const WM_INITMENUPOPUP = &H0117
|
---|
| 573 | Const WM_MENUSELECT = &H011F
|
---|
| 574 | Const WM_MENUCHAR = &H0120
|
---|
| 575 | ' return codes for WM_MENUCHAR
|
---|
| 576 | Const MNC_IGNORE = 0
|
---|
| 577 | Const MNC_CLOSE = 1
|
---|
| 578 | Const MNC_EXECUTE = 2
|
---|
| 579 | Const MNC_SELECT = 3
|
---|
| 580 | Const WM_ENTERIDLE = &H0121
|
---|
[120] | 581 | '#if WINVER >= &H0500
|
---|
[1] | 582 | Const WM_MENURBUTTONUP = &H0122
|
---|
| 583 | Const WM_MENUDRAG = &H0123
|
---|
| 584 | Const WM_MENUGETOBJECT = &H0124
|
---|
| 585 | Const WM_UNINITMENUPOPUP = &H0125
|
---|
| 586 | Const WM_MENUCOMMAND = &H0126
|
---|
| 587 |
|
---|
[120] | 588 | Const WM_CHANGEUISTATE = &H0127
|
---|
| 589 | Const WM_UPDATEUISTATE = &H0128
|
---|
| 590 | Const WM_QUERYUISTATE = &H0129
|
---|
| 591 | '#endif
|
---|
[1] | 592 | Const WM_CTLCOLORMSGBOX = &H0132
|
---|
| 593 | Const WM_CTLCOLOREDIT = &H0133
|
---|
| 594 | Const WM_CTLCOLORLISTBOX = &H0134
|
---|
| 595 | Const WM_CTLCOLORBTN = &H0135
|
---|
| 596 | Const WM_CTLCOLORDLG = &H0136
|
---|
| 597 | Const WM_CTLCOLORSCROLLBAR = &H0137
|
---|
| 598 | Const WM_CTLCOLORSTATIC = &H0138
|
---|
[120] | 599 | Const MN_GETHMENU = &H01E1
|
---|
[1] | 600 |
|
---|
| 601 | Const WM_MOUSEFIRST = &H0200
|
---|
| 602 | Const WM_MOUSEMOVE = &H0200
|
---|
| 603 | Const WM_LBUTTONDOWN = &H0201
|
---|
| 604 | Const WM_LBUTTONUP = &H0202
|
---|
| 605 | Const WM_LBUTTONDBLCLK = &H0203
|
---|
| 606 | Const WM_RBUTTONDOWN = &H0204
|
---|
| 607 | Const WM_RBUTTONUP = &H0205
|
---|
| 608 | Const WM_RBUTTONDBLCLK = &H0206
|
---|
| 609 | Const WM_MBUTTONDOWN = &H0207
|
---|
| 610 | Const WM_MBUTTONUP = &H0208
|
---|
| 611 | Const WM_MBUTTONDBLCLK = &H0209
|
---|
[120] | 612 | '#if _WIN32_WINNT >= &H0400 || _WIN32_WINDOWS > &H0400
|
---|
[1] | 613 | Const WM_MOUSEWHEEL = &H020A
|
---|
[120] | 614 | '#endif
|
---|
| 615 | '#if _WIN32_WINNT >= &H0500
|
---|
| 616 | Const WM_XBUTTONDOWN = &H020B
|
---|
| 617 | Const WM_XBUTTONUP = &H020C
|
---|
| 618 | Const WM_XBUTTONDBLCLK = &H020D
|
---|
| 619 | '#endif
|
---|
| 620 | '#if _WIN32_WINNT >= &H0600
|
---|
| 621 | Const WM_MOUSEHWHEEL = &H020E
|
---|
| 622 | '#endif
|
---|
| 623 | Const WM_MOUSELAST = &H020E
|
---|
| 624 |
|
---|
[1] | 625 | Const WHEEL_DELTA = 120
|
---|
| 626 | Const WHEEL_PAGESCROLL = &HFFFFFFFF
|
---|
[120] | 627 | Const GET_WHEEL_DELTA_WPARAM(wp) = (HIWORD(wp) As Integer)
|
---|
| 628 | '#if _WIN32_WINNT >= &H0500
|
---|
| 629 | Const GET_KEYSTATE_WPARAM(wp) = (LOWORD(wp))
|
---|
| 630 | Const GET_NCHITTEST_WPARAM(wp) = (LOWORD(wp) As Integer)
|
---|
| 631 | Const GET_XBUTTON_WPARAM(wp) = (HIWORD(wp))
|
---|
[1] | 632 |
|
---|
[120] | 633 | Const XBUTTON1 = &H0001
|
---|
| 634 | Const XBUTTON2 = &H0002
|
---|
| 635 | '#endif
|
---|
| 636 |
|
---|
[1] | 637 | Const WM_PARENTNOTIFY = &H0210
|
---|
| 638 | Const WM_ENTERMENULOOP = &H0211
|
---|
| 639 | Const WM_EXITMENULOOP = &H0212
|
---|
| 640 |
|
---|
[120] | 641 | Const WM_NEXTMENU = &H0213
|
---|
[1] | 642 | Const WM_SIZING = &H0214
|
---|
| 643 | ' wParam for WM_SIZING message
|
---|
| 644 | Const WMSZ_LEFT = 1
|
---|
| 645 | Const WMSZ_RIGHT = 2
|
---|
| 646 | Const WMSZ_TOP = 3
|
---|
| 647 | Const WMSZ_TOPLEFT = 4
|
---|
| 648 | Const WMSZ_TOPRIGHT = 5
|
---|
| 649 | Const WMSZ_BOTTOM = 6
|
---|
| 650 | Const WMSZ_BOTTOMLEFT = 7
|
---|
| 651 | Const WMSZ_BOTTOMRIGHT = 8
|
---|
| 652 |
|
---|
| 653 | Const WM_CAPTURECHANGED = &H0215
|
---|
| 654 | Const WM_MOVING = &H0216
|
---|
| 655 |
|
---|
| 656 | Const WM_POWERBROADCAST = &H0218
|
---|
| 657 | ' wParam for WM_POWERBROADCAST message
|
---|
| 658 | Const PBT_APMQUERYSUSPEND = &H0000
|
---|
| 659 | Const PBT_APMQUERYSTANDBY = &H0001
|
---|
| 660 | Const PBT_APMQUERYSUSPENDFAILED = &H0002
|
---|
| 661 | Const PBT_APMQUERYSTANDBYFAILED = &H0003
|
---|
| 662 | Const PBT_APMSUSPEND = &H0004
|
---|
| 663 | Const PBT_APMSTANDBY = &H0005
|
---|
| 664 | Const PBT_APMRESUMECRITICAL = &H0006
|
---|
| 665 | Const PBT_APMRESUMESUSPEND = &H0007
|
---|
| 666 | Const PBT_APMRESUMESTANDBY = &H0008
|
---|
| 667 | Const PBTF_APMRESUMEFROMFAILURE = &H00000001
|
---|
| 668 | Const PBT_APMBATTERYLOW = &H0009
|
---|
| 669 | Const PBT_APMPOWERSTATUSCHANGE = &H000A
|
---|
| 670 | Const PBT_APMOEMEVENT = &H000B
|
---|
| 671 | Const PBT_APMRESUMEAUTOMATIC = &H0012
|
---|
[120] | 672 | '#if _WIN32_WINNT >= &H0502
|
---|
| 673 | Const PBT_POWERSETTINGCHANGE = &H0013
|
---|
| 674 | Type POWERBROADCAST_SETTING
|
---|
| 675 | PowerSetting As GUID
|
---|
| 676 | DataLength As DWord
|
---|
[141] | 677 | Data[ELM(1)] As Byte
|
---|
[120] | 678 | End Type
|
---|
| 679 | '#endif
|
---|
[1] | 680 |
|
---|
| 681 | Const WM_DEVICECHANGE = &H0219
|
---|
| 682 |
|
---|
| 683 | Const WM_MDICREATE = &H0220
|
---|
| 684 | ' lParam of WM_MDICREATE message point to...
|
---|
[120] | 685 | Type MDICREATESTRUCTA
|
---|
| 686 | szClass As PCSTR
|
---|
| 687 | szTitle As PCSTR
|
---|
[1] | 688 | hOwner As HANDLE
|
---|
| 689 | x As Long
|
---|
| 690 | y As Long
|
---|
| 691 | cx As Long
|
---|
| 692 | cy As Long
|
---|
| 693 | style As DWord
|
---|
| 694 | lParam As LPARAM
|
---|
| 695 | End Type
|
---|
[120] | 696 | Type MDICREATESTRUCTW
|
---|
| 697 | szClass As PCWSTR
|
---|
| 698 | szTitle As PCWSTR
|
---|
| 699 | hOwner As HANDLE
|
---|
| 700 | x As Long
|
---|
| 701 | y As Long
|
---|
| 702 | cx As Long
|
---|
| 703 | cy As Long
|
---|
| 704 | style As DWord
|
---|
| 705 | lParam As LPARAM
|
---|
| 706 | End Type
|
---|
| 707 | #ifdef UNICODE
|
---|
| 708 | TypeDef MDICREATESTRUCT = MDICREATESTRUCTW
|
---|
| 709 | #else
|
---|
| 710 | TypeDef MDICREATESTRUCT = MDICREATESTRUCTA
|
---|
| 711 | #endif
|
---|
[1] | 712 | Const WM_MDIDESTROY = &H0221
|
---|
| 713 | Const WM_MDIACTIVATE = &H0222
|
---|
| 714 | Const WM_MDIRESTORE = &H0223
|
---|
| 715 | Const WM_MDINEXT = &H0224
|
---|
| 716 | Const WM_MDIMAXIMIZE = &H0225
|
---|
| 717 | Const WM_MDITILE = &H0226
|
---|
| 718 | ' wParam Flags for WM_MDITILE and WM_MDICASCADE messages.
|
---|
| 719 | Const MDITILE_VERTICAL = &H0000
|
---|
| 720 | Const MDITILE_HORIZONTAL = &H0001
|
---|
| 721 | Const MDITILE_SKIPDISABLED = &H0002
|
---|
| 722 | Const WM_MDICASCADE = &H0227
|
---|
| 723 | Const WM_MDIICONARRANGE = &H0228
|
---|
| 724 | Const WM_MDIGETACTIVE = &H0229
|
---|
| 725 |
|
---|
| 726 | Const WM_MDISETMENU = &H0230
|
---|
| 727 | Const WM_ENTERSIZEMOVE = &H0231
|
---|
| 728 | Const WM_EXITSIZEMOVE = &H0232
|
---|
| 729 | Const WM_DROPFILES = &H0233
|
---|
| 730 | Const WM_MDIREFRESHMENU = &H0234
|
---|
| 731 |
|
---|
| 732 | Const WM_IME_SETCONTEXT = &H0281
|
---|
| 733 | Const WM_IME_NOTIFY = &H0282
|
---|
| 734 | Const WM_IME_CONTROL = &H0283
|
---|
| 735 | Const WM_IME_COMPOSITIONFULL = &H0284
|
---|
| 736 | Const WM_IME_SELECT = &H0285
|
---|
| 737 | Const WM_IME_CHAR = &H0286
|
---|
[120] | 738 | '#if WINVER >= 0x0500
|
---|
[1] | 739 | Const WM_IME_REQUEST = &H0288
|
---|
[120] | 740 | '#endif
|
---|
[1] | 741 | Const WM_IME_KEYDOWN = &H0290
|
---|
| 742 | Const WM_IME_KEYUP = &H0291
|
---|
[120] | 743 | '#if _WIN32_WINNT >= &H0400 Or WINVER >= &H0500
|
---|
[1] | 744 | Const WM_MOUSEHOVER = &H02A1
|
---|
| 745 | Const WM_MOUSELEAVE = &H02A3
|
---|
[120] | 746 | '#endif
|
---|
| 747 | '#if WINVER >= &H0500
|
---|
| 748 | Const WM_NCMOUSEHOVER = &H02A1
|
---|
| 749 | Const WM_NCMOUSELEAVE = &H02A3
|
---|
| 750 | '#endif
|
---|
| 751 | '#if _WIN32_WINNT >= &H0501
|
---|
| 752 | Const WM_WTSSESSION_CHANGE = &H02B1
|
---|
[1] | 753 |
|
---|
[120] | 754 | Const WM_TABLET_FIRST = &H02C0
|
---|
| 755 | Const WM_TABLET_LAST = &H02DF
|
---|
| 756 | '#endif
|
---|
[1] | 757 | Const WM_CUT = &H0300
|
---|
| 758 | Const WM_COPY = &H0301
|
---|
| 759 | Const WM_PASTE = &H0302
|
---|
| 760 | Const WM_CLEAR = &H0303
|
---|
| 761 | Const WM_UNDO = &H0304
|
---|
| 762 | Const WM_RENDERFORMAT = &H0305
|
---|
| 763 | Const WM_RENDERALLFORMATS = &H0306
|
---|
| 764 | Const WM_DESTROYCLIPBOARD = &H0307
|
---|
| 765 | Const WM_DRAWCLIPBOARD = &H0308
|
---|
| 766 | Const WM_PAINTCLIPBOARD = &H0309
|
---|
| 767 | Const WM_VSCROLLCLIPBOARD = &H030A
|
---|
| 768 | Const WM_SIZECLIPBOARD = &H030B
|
---|
| 769 | Const WM_ASKCBFORMATNAME = &H030C
|
---|
| 770 | Const WM_CHANGECBCHAIN = &H030D
|
---|
| 771 | Const WM_HSCROLLCLIPBOARD = &H030E
|
---|
| 772 | Const WM_QUERYNEWPALETTE = &H030F
|
---|
| 773 | Const WM_PALETTEISCHANGING = &H0310
|
---|
| 774 | Const WM_PALETTECHANGED = &H0311
|
---|
| 775 | Const WM_HOTKEY = &H0312
|
---|
| 776 |
|
---|
| 777 | Const WM_PRINT = &H0317
|
---|
| 778 | Const WM_PRINTCLIENT = &H0318
|
---|
| 779 | ' WM_PRINT flags
|
---|
| 780 | Const PRF_CHECKVISIBLE = &H00000001
|
---|
| 781 | Const PRF_NONCLIENT = &H00000002
|
---|
| 782 | Const PRF_CLIENT = &H00000004
|
---|
| 783 | Const PRF_ERASEBKGND = &H00000008
|
---|
| 784 | Const PRF_CHILDREN = &H00000010
|
---|
| 785 | Const PRF_OWNED = &H00000020
|
---|
| 786 |
|
---|
[120] | 787 | '#if _WIN32_WINNT >= &H0500
|
---|
| 788 | Const WM_APPCOMMAND = &H0319
|
---|
| 789 | '#endif
|
---|
| 790 | '#if _WIN32_WINNT >= &H0501
|
---|
| 791 | Const WM_THEMECHANGED = &H031A
|
---|
| 792 | '#endif
|
---|
| 793 |
|
---|
| 794 | '#if _WIN32_WINNT >= &H0501
|
---|
| 795 | Const WM_CLIPBOARDUPDATE = &H031D
|
---|
| 796 | '#endif
|
---|
| 797 |
|
---|
| 798 | '#if _WIN32_WINNT >= &H0600
|
---|
| 799 | Const WM_DWMCOMPOSITIONCHANGED = &H031E
|
---|
| 800 | Const WM_DWMNCRENDERINGCHANGED = &H031F
|
---|
| 801 | Const WM_DWMCOLORIZATIONCOLORCHANGED =&H0320
|
---|
| 802 | Const WM_DWMWINDOWMAXIMIZEDCHANGE = &H0321
|
---|
| 803 | '#endif
|
---|
| 804 |
|
---|
| 805 | '#if WINVER >= &H0600
|
---|
| 806 | Const WM_GETTITLEBARINFOEX = &H033F
|
---|
| 807 | '#endif
|
---|
| 808 |
|
---|
[1] | 809 | Const WM_HANDHELDFIRST = &H0358
|
---|
| 810 | Const WM_HANDHELDLAST = &H035F
|
---|
| 811 |
|
---|
| 812 | Const WM_AFXFIRST = &H0360
|
---|
| 813 | Const WM_AFXLAST = &H037F
|
---|
| 814 |
|
---|
| 815 | Const WM_PENWINFIRST = &H0380
|
---|
| 816 | Const WM_PENWINLAST = &H038F
|
---|
| 817 |
|
---|
| 818 | Const WM_APP = &H8000
|
---|
| 819 | Const WM_USER = &H0400
|
---|
| 820 |
|
---|
| 821 | ' WM_MOUSEACTIVATE Return Codes
|
---|
| 822 | Const MA_ACTIVATE = 1
|
---|
| 823 | Const MA_ACTIVATEANDEAT = 2
|
---|
| 824 | Const MA_NOACTIVATE = 3
|
---|
| 825 | Const MA_NOACTIVATEANDEAT = 4
|
---|
| 826 |
|
---|
| 827 | ' Key State Masks for Mouse Messages
|
---|
| 828 | Const MK_LBUTTON = &H0001
|
---|
| 829 | Const MK_RBUTTON = &H0002
|
---|
| 830 | Const MK_SHIFT = &H0004
|
---|
| 831 | Const MK_CONTROL = &H0008
|
---|
| 832 | Const MK_MBUTTON = &H0010
|
---|
[473] | 833 | '#if _WIN32_WINNT >= 0x0500
|
---|
| 834 | Const MK_XBUTTON1 = &h0020
|
---|
| 835 | Const MK_XBUTTON2 = &h0040
|
---|
| 836 | '#endif
|
---|
[1] | 837 |
|
---|
| 838 |
|
---|
| 839 | '----------------------------------
|
---|
| 840 | ' Edit Control Notification Codes
|
---|
| 841 | '----------------------------------
|
---|
| 842 |
|
---|
| 843 | Const EN_SETFOCUS = &H0100
|
---|
| 844 | Const EN_KILLFOCUS = &H0200
|
---|
| 845 | Const EN_CHANGE = &H0300
|
---|
| 846 | Const EN_UPDATE = &H0400
|
---|
| 847 | Const EN_ERRSPACE = &H0500
|
---|
| 848 | Const EN_MAXTEXT = &H0501
|
---|
| 849 | Const EN_HSCROLL = &H0601
|
---|
| 850 | Const EN_VSCROLL = &H0602
|
---|
| 851 |
|
---|
| 852 |
|
---|
| 853 | '------------------------
|
---|
| 854 | ' Edit Control Messages
|
---|
| 855 | '------------------------
|
---|
| 856 | Const EM_GETSEL = &H00B0
|
---|
| 857 | Const EM_SETSEL = &H00B1
|
---|
| 858 | Const EM_GETRECT = &H00B2
|
---|
| 859 | Const EM_SETRECT = &H00B3
|
---|
| 860 | Const EM_SETRECTNP = &H00B4
|
---|
| 861 | Const EM_SCROLL = &H00B5
|
---|
| 862 | Const EM_LINESCROLL = &H00B6
|
---|
| 863 | Const EM_SCROLLCARET = &H00B7
|
---|
| 864 | Const EM_GETMODIFY = &H00B8
|
---|
| 865 | Const EM_SETMODIFY = &H00B9
|
---|
| 866 | Const EM_GETLINECOUNT = &H00BA
|
---|
| 867 | Const EM_LINEINDEX = &H00BB
|
---|
| 868 | Const EM_SETHANDLE = &H00BC
|
---|
| 869 | Const EM_GETHANDLE = &H00BD
|
---|
| 870 | Const EM_GETTHUMB = &H00BE
|
---|
| 871 | Const EM_LINELENGTH = &H00C1
|
---|
| 872 | Const EM_REPLACESEL = &H00C2
|
---|
| 873 | Const EM_GETLINE = &H00C4
|
---|
| 874 | Const EM_LIMITTEXT = &H00C5
|
---|
| 875 | Const EM_CANUNDO = &H00C6
|
---|
| 876 | Const EM_UNDO = &H00C7
|
---|
| 877 | Const EM_FMTLINES = &H00C8
|
---|
| 878 | Const EM_LINEFROMCHAR = &H00C9
|
---|
| 879 | Const EM_SETTABSTOPS = &H00CB
|
---|
| 880 | Const EM_SETPASSWORDCHAR = &H00CC
|
---|
| 881 | Const EM_EMPTYUNDOBUFFER = &H00CD
|
---|
| 882 | Const EM_GETFIRSTVISIBLELINE =&H00CE
|
---|
| 883 | Const EM_SETREADONLY = &H00CF
|
---|
| 884 | Const EM_SETWORDBREAKPROC = &H00D0
|
---|
| 885 | Const EM_GETWORDBREAKPROC = &H00D1
|
---|
| 886 | Const EM_GETPASSWORDCHAR = &H00D2
|
---|
| 887 |
|
---|
| 888 | Const EM_SETMARGINS = &H00D3
|
---|
| 889 | Const EC_LEFTMARGIN = &H0001
|
---|
| 890 | Const EC_RIGHTMARGIN = &H0002
|
---|
| 891 | Const EC_USEFONTINFO = &Hffff
|
---|
| 892 |
|
---|
| 893 | Const EM_GETMARGINS = &H00D4
|
---|
| 894 | Const EM_SETLIMITTEXT = EM_LIMITTEXT
|
---|
| 895 | Const EM_GETLIMITTEXT = &H00D5
|
---|
| 896 | Const EM_POSFROMCHAR = &H00D6
|
---|
| 897 | Const EM_CHARFROMPOS = &H00D7
|
---|
| 898 |
|
---|
| 899 | Const EM_SETIMESTATUS = &H00D8
|
---|
| 900 | Const EM_GETIMESTATUS = &H00D9
|
---|
| 901 | Const EMSIS_COMPOSITIONSTRING = &H0001
|
---|
| 902 | Const EIMES_GETCOMPSTRATONCE = &H0001
|
---|
| 903 | Const EIMES_CANCELCOMPSTRINFOCUS = &H0002
|
---|
| 904 | Const EIMES_COMPLETECOMPSTRKILLFOCUS =&H0004
|
---|
| 905 |
|
---|
| 906 |
|
---|
| 907 | '---------------------------------
|
---|
| 908 | ' User Button Notification Codes
|
---|
| 909 | '---------------------------------
|
---|
| 910 |
|
---|
| 911 | Const BN_CLICKED = 0
|
---|
| 912 | Const BN_PAINT = 1
|
---|
| 913 | Const BN_HILITE = 2
|
---|
| 914 | Const BN_UNHILITE = 3
|
---|
| 915 | Const BN_DISABLE = 4
|
---|
| 916 | Const BN_DOUBLECLICKED = 5
|
---|
| 917 | Const BN_PUSHED = BN_HILITE
|
---|
| 918 | Const BN_UNPUSHED = BN_UNHILITE
|
---|
| 919 | Const BN_DBLCLK = BN_DOUBLECLICKED
|
---|
| 920 | Const BN_SETFOCUS = 6
|
---|
| 921 | Const BN_KILLFOCUS = 7
|
---|
| 922 |
|
---|
| 923 |
|
---|
| 924 | '--------------------------
|
---|
| 925 | ' Button Control Messages
|
---|
| 926 | '--------------------------
|
---|
| 927 |
|
---|
| 928 | Const BM_GETCHECK = &H00F0
|
---|
| 929 | Const BM_SETCHECK = &H00F1
|
---|
| 930 | Const BM_GETSTATE = &H00F2
|
---|
| 931 | Const BM_SETSTATE = &H00F3
|
---|
| 932 | Const BM_SETSTYLE = &H00F4
|
---|
| 933 | Const BM_CLICK = &H00F5
|
---|
| 934 | Const BM_GETIMAGE = &H00F6
|
---|
| 935 | Const BM_SETIMAGE = &H00F7
|
---|
| 936 |
|
---|
| 937 | Const BST_UNCHECKED = &H0000
|
---|
| 938 | Const BST_CHECKED = &H0001
|
---|
| 939 | Const BST_INDETERMINATE =&H0002
|
---|
| 940 | Const BST_PUSHED = &H0004
|
---|
| 941 | Const BST_FOCUS = &H0008
|
---|
| 942 |
|
---|
| 943 |
|
---|
| 944 | '-------------------------
|
---|
| 945 | ' Static Control Mesages
|
---|
| 946 | '-------------------------
|
---|
| 947 | Const STM_SETICON = &H0170
|
---|
| 948 | Const STM_GETICON = &H0171
|
---|
| 949 | Const STM_SETIMAGE = &H0172
|
---|
| 950 | Const STM_GETIMAGE = &H0173
|
---|
| 951 | Const STN_CLICKED = 0
|
---|
| 952 | Const STN_DBLCLK = 1
|
---|
| 953 | Const STN_ENABLE = 2
|
---|
| 954 | Const STN_DISABLE = 3
|
---|
| 955 | Const STM_MSGMAX = &H0174
|
---|
| 956 |
|
---|
| 957 |
|
---|
| 958 | '--------------------------
|
---|
| 959 | ' ListBox Control Mesages
|
---|
| 960 | '--------------------------
|
---|
| 961 | Const LB_ADDSTRING = &H0180
|
---|
| 962 | Const LB_INSERTSTRING = &H0181
|
---|
| 963 | Const LB_DELETESTRING = &H0182
|
---|
| 964 | Const LB_SELITEMRANGEEX = &H0183
|
---|
| 965 | Const LB_RESETCONTENT = &H0184
|
---|
| 966 | Const LB_SETSEL = &H0185
|
---|
| 967 | Const LB_SETCURSEL = &H0186
|
---|
| 968 | Const LB_GETSEL = &H0187
|
---|
| 969 | Const LB_GETCURSEL = &H0188
|
---|
| 970 | Const LB_GETTEXT = &H0189
|
---|
| 971 | Const LB_GETTEXTLEN = &H018A
|
---|
| 972 | Const LB_GETCOUNT = &H018B
|
---|
| 973 | Const LB_SELECTSTRING = &H018C
|
---|
| 974 | Const LB_DIR = &H018D
|
---|
| 975 | Const LB_GETTOPINDEX = &H018E
|
---|
| 976 | Const LB_FINDSTRING = &H018F
|
---|
| 977 | Const LB_GETSELCOUNT = &H0190
|
---|
| 978 | Const LB_GETSELITEMS = &H0191
|
---|
| 979 | Const LB_SETTABSTOPS = &H0192
|
---|
| 980 | Const LB_GETHORIZONTALEXTENT = &H0193
|
---|
| 981 | Const LB_SETHORIZONTALEXTENT = &H0194
|
---|
| 982 | Const LB_SETCOLUMNWIDTH = &H0195
|
---|
| 983 | Const LB_ADDFILE = &H0196
|
---|
| 984 | Const LB_SETTOPINDEX = &H0197
|
---|
| 985 | Const LB_GETITEMRECT = &H0198
|
---|
| 986 | Const LB_GETITEMDATA = &H0199
|
---|
| 987 | Const LB_SETITEMDATA = &H019A
|
---|
| 988 | Const LB_SELITEMRANGE = &H019B
|
---|
| 989 | Const LB_SETANCHORINDEX = &H019C
|
---|
| 990 | Const LB_GETANCHORINDEX = &H019D
|
---|
| 991 | Const LB_SETCARETINDEX = &H019E
|
---|
| 992 | Const LB_GETCARETINDEX = &H019F
|
---|
| 993 | Const LB_SETITEMHEIGHT = &H01A0
|
---|
| 994 | Const LB_GETITEMHEIGHT = &H01A1
|
---|
| 995 | Const LB_FINDSTRINGEXACT = &H01A2
|
---|
| 996 | Const LB_SETLOCALE = &H01A5
|
---|
| 997 | Const LB_GETLOCALE = &H01A6
|
---|
| 998 | Const LB_SETCOUNT = &H01A7
|
---|
| 999 | Const LB_INITSTORAGE = &H01A8
|
---|
| 1000 | Const LB_ITEMFROMPOINT = &H01A9
|
---|
| 1001 |
|
---|
| 1002 | Const LBN_ERRSPACE = -2
|
---|
| 1003 | Const LBN_SELCHANGE = 1
|
---|
| 1004 | Const LBN_DBLCLK = 2
|
---|
| 1005 | Const LBN_SELCANCEL = 3
|
---|
| 1006 | Const LBN_SETFOCUS = 4
|
---|
| 1007 | Const LBN_KILLFOCUS = 5
|
---|
| 1008 |
|
---|
| 1009 | Const LB_ERR = -1
|
---|
| 1010 | Const LB_ERRSPACE = -2
|
---|
| 1011 |
|
---|
| 1012 |
|
---|
| 1013 | '---------------------------
|
---|
| 1014 | ' ComboBox Control Mesages
|
---|
| 1015 | '---------------------------
|
---|
| 1016 | Const CB_GETEDITSEL = &H0140
|
---|
| 1017 | Const CB_LIMITTEXT = &H0141
|
---|
| 1018 | Const CB_SETEDITSEL = &H0142
|
---|
| 1019 | Const CB_ADDSTRING = &H0143
|
---|
| 1020 | Const CB_DELETESTRING = &H0144
|
---|
| 1021 | Const CB_DIR = &H0145
|
---|
| 1022 | Const CB_GETCOUNT = &H0146
|
---|
| 1023 | Const CB_GETCURSEL = &H0147
|
---|
| 1024 | Const CB_GETLBTEXT = &H0148
|
---|
| 1025 | Const CB_GETLBTEXTLEN = &H0149
|
---|
| 1026 | Const CB_INSERTSTRING = &H014A
|
---|
| 1027 | Const CB_RESETCONTENT = &H014B
|
---|
| 1028 | Const CB_FINDSTRING = &H014C
|
---|
| 1029 | Const CB_SELECTSTRING = &H014D
|
---|
| 1030 | Const CB_SETCURSEL = &H014E
|
---|
| 1031 | Const CB_SHOWDROPDOWN = &H014F
|
---|
| 1032 | Const CB_GETITEMDATA = &H0150
|
---|
| 1033 | Const CB_SETITEMDATA = &H0151
|
---|
| 1034 | Const CB_GETDROPPEDCONTROLRECT = &H0152
|
---|
| 1035 | Const CB_SETITEMHEIGHT = &H0153
|
---|
| 1036 | Const CB_GETITEMHEIGHT = &H0154
|
---|
| 1037 | Const CB_SETEXTENDEDUI = &H0155
|
---|
| 1038 | Const CB_GETEXTENDEDUI = &H0156
|
---|
| 1039 | Const CB_GETDROPPEDSTATE = &H0157
|
---|
| 1040 | Const CB_FINDSTRINGEXACT = &H0158
|
---|
| 1041 | Const CB_SETLOCALE = &H0159
|
---|
| 1042 | Const CB_GETLOCALE = &H015A
|
---|
| 1043 | Const CB_GETTOPINDEX = &H015B
|
---|
| 1044 | Const CB_SETTOPINDEX = &H015C
|
---|
| 1045 | Const CB_GETHORIZONTALEXTENT = &H015D
|
---|
| 1046 | Const CB_SETHORIZONTALEXTENT = &H015E
|
---|
| 1047 | Const CB_GETDROPPEDWIDTH = &H015F
|
---|
| 1048 | Const CB_SETDROPPEDWIDTH = &H0160
|
---|
| 1049 | Const CB_INITSTORAGE = &H0161
|
---|
| 1050 | Const CB_MSGMAX = &H0162
|
---|
| 1051 |
|
---|
| 1052 | Const CBN_ERRSPACE = -1
|
---|
| 1053 | Const CBN_SELCHANGE = 1
|
---|
| 1054 | Const CBN_DBLCLK = 2
|
---|
| 1055 | Const CBN_SETFOCUS = 3
|
---|
| 1056 | Const CBN_KILLFOCUS = 4
|
---|
| 1057 | Const CBN_EDITCHANGE = 5
|
---|
| 1058 | Const CBN_EDITUPDATE = 6
|
---|
| 1059 | Const CBN_DROPDOWN = 7
|
---|
| 1060 | Const CBN_CLOSEUP = 8
|
---|
| 1061 | Const CBN_SELENDOK = 9
|
---|
| 1062 | Const CBN_SELENDCANCEL = 10
|
---|
| 1063 |
|
---|
| 1064 |
|
---|
| 1065 | #endif '_INC_MSG
|
---|