modules/modApi.vb

(开头部分) 18KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

Module modApi
    'GetSystemMetrics   
    Public Declare Function GetSystemMetrics Lib "user32" Alias "GetSystemMetrics" (ByVal nIndex As Integer) As Integer
    Public Const SM_ARRANGE = 56 'The flags that specify how the system arranged minimized windows. 
    'For more information, see the Remarks section in this topic.
    Public Const SM_CLEANBOOT = 67 'The value that specifies how the system is started: 
    '0 Normal boot     '1 Fail-safe boot 
    '2 Fail-safe with network boot A fail-safe boot (also called SafeBoot, Safe Mode, or Clean Boot) bypasses the user startup files.
    Public Const SM_CMONITORS = 80 'The number of display monitors on a desktop. For more information, see the Remarks section in this topic.
    Public Const SM_CMOUSEBUTTONS = 43 'The number of buttons on a mouse, or zero if no mouse is installed.
    Public Const SM_CONVERTIBLESLATEMODE = &H2003 'Reflects the state of the laptop or slate mode, 0 for Slate Mode and non-zero otherwise. 
    'When this system metric changes, the system sends a broadcast message via WM_SETTINGCHANGE with "ConvertibleSlateMode" in the LPARAM. 
    'Note that this system metric doesn't apply to desktop PCs. In that case, use GetAutoRotationState.
    Public Const SM_CXBORDER = 5 'The width of a window border, in pixels. This is equivalent to the Public const  SM_CXEDGE value for windows with the 3-D look.
    Public Const SM_CXCURSOR = 13 'The width of a cursor, in pixels. The system cannot create cursors of other sizes.
    Public Const SM_CXDLGFRAME = 7 'This value is the same as SM_CXFIXEDFRAME.
    Public Const SM_CXDOUBLECLK = 36 'The width of the rectangle around the location of a first click in a double-click sequence, in pixels. 
    'The second click must occur within the rectangle that is defined by Public const  SM_CXDOUBLECLK and Public const  SM_CYDOUBLECLK for the system to consider the two clicks a double-click. The two clicks must also occur within a specified time.To set the width of the double-click rectangle, call SystemParametersInfo with SPI_SETDOUBLECLKWIDTH.
    Public Const SM_CXDRAG = 68 'The number of pixels on either side of a mouse-down point that the mouse pointer can move before a drag operation begins. 
    'This allows the user to click and release the mouse button easily without unintentionally starting a drag operation. If this value is negative, 
    'it is subtracted from the left of the mouse-down point and added to the right of it.
    Public Const SM_CXEDGE = 45 'The width of a 3-D border, in pixels. This metric is the 3-D counterpart of SM_CXBORDER.
    Public Const SM_CXFIXEDFRAME = 7 'The thickness of the frame around the perimeter of a window that has a caption but is not sizable, in pixels.
    ' SM_CXFIXEDFRAME is the height of the horizontal border, and Public const  SM_CYFIXEDFRAME is the width of the vertical border.
    'This value is the same as SM_CXDLGFRAME.
    Public Const SM_CXFOCUSBORDER = 83 'The width of the left and right edges of the focus rectangle that the DrawFocusRect draws. 
    'This value is in pixels. Windows 2000:  This value is not supported.
    Public Const SM_CXFRAME = 32 'This value is the same as Public const  SM_CXSIZEFRAME.
    Public Const SM_CXFULLSCREEN = 16 ' The width of the client area for a full-screen window on the primary display monitor, in pixels. 
    'To get the coordinates of the portion of the screen that is not obscured by the system taskbar or by application desktop toolbars, 
    'call the SystemParametersInfo function with the SPI_GETWORKAREA value.
    Public Const SM_CXHSCROLL = 21 'The width of the arrow bitmap on a horizontal scroll bar, in pixels.
    Public Const SM_CXHTHUMB = 10 'The width of the thumb box in a horizontal scroll bar, in pixels.
    Public Const SM_CXICON = 11 'The default width of an icon, in pixels. The LoadIcon function can load only icons with the dimensions 
    'that SM_CXICON and  SM_CYICON specifies.
    Public Const SM_CXICONSPACING = 38 'The width of a grid cell for items in large icon view, in pixels. 
    'Each item fits into a rectangle of size SM_CXICONSPACING by Public const  SM_CYICONSPACING when arranged. 
    'This value is always greater than or equal to SM_CXICON.
    Public Const SM_CXMAXIMIZED = 61 'The default width, in pixels, of a maximized top-level window on the primary display monitor.
    Public Const SM_CXMAXTRACK = 59 'The default maximum width of a window that has a caption and sizing borders, in pixels. 
    'This metric refers to the entire desktop. The user cannot drag the window frame to a size larger than these dimensions. 
    'A window can override this value by processing the WM_GETMINMAXINFO message.
    Public Const SM_CXMENUCHECK = 71 'The width of the default menu check-mark bitmap, in pixels.
    Public Const SM_CXMENUSIZE = 54 'The width of menu bar buttons, such as the child window close button that is used 
    'in the multiple document interface, in pixels.
    Public Const SM_CXMIN = 28 'The minimum width of a window, in pixels.
    Public Const SM_CXMINIMIZED = 57 'The width of a minimized window, in pixels.
    Public Const SM_CXMINSPACING = 47 'The width of a grid cell for a minimized window, in pixels. 
    'Each minimized window fits into a rectangle this size when arranged. 
    'This value is always greater than or equal to Public const  SM_CXMINIMIZED.
    Public Const SM_CXMINTRACK = 34 'The minimum tracking width of a window, in pixels. 
    'The user cannot drag the window frame to a size smaller than these dimensions. 
    'A window can override this value by processing the WM_GETMINMAXINFO message.
    Public Const SM_CXPADDEDBORDER = 92 'The amount of border padding for captioned windows, in pixels. Windows XP/2000:  This value is not supported.
    Public Const SM_CXSCREEN = 0 'The width of the screen of the primary display monitor, in pixels. 
    'This is the same value obtained by calling GetDeviceCaps as follows: GetDeviceCaps( hdcPrimaryMonitor, HORZRES).
    Public Const SM_CXSIZE = 30 'The width of a button in a window caption or title bar, in pixels.
    Public Const SM_CXSIZEFRAME = 32 'The thickness of the sizing border around the perimeter of a window that can be resized, in pixels.
    'SM_CXSIZEFRAME is the width of the horizontal border, and Public const  SM_CYSIZEFRAME is the height of the vertical border.
    'This value Is the same As SM_CXFRAME.
后面还有 130 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。