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