VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Retrieve the Windows working area (i.e. the portion of the screen not obscured by the taskbar or ot

by Anonymous (267 Submissions)
Category: Windows System Services
Compatability: Visual Basic 4.0 (32-bit)
Difficulty: Unknown Difficulty
Originally Published: Mon 14th December 1998
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Retrieve the Windows working area (i.e. the portion of the screen not obscured by the taskbar or other application bars).

API Declarations


Declare Function SystemParametersInfo Lib "user32" Alias "SystemParametersInfoA" (ByVal uAction As Long, ByVal uParam As Long, lpvParam As Any, ByVal fuWinIni As Long) As Long

Type RECT
Left As Long
Top As Long
Right As Long
Bottom As Long
End Type

Rate Retrieve the Windows working area (i.e. the portion of the screen not obscured by the taskbar or ot



Dim typRect As RECT

' Retrieve the Windows working area (i.e. the portion of
' the screen not obscured by the taskbar or other application bars).
Call SystemParametersInfo(SPI_GETWORKAREA, vbNull, typRect, 0)
With typRect
    lngTop = .Top
    lngLeft = .Left
    lngRight = .Right
    lngBottom = .Bottom
End With

Download this snippet    Add to My Saved Code

Retrieve the Windows working area (i.e. the portion of the screen not obscured by the taskbar or ot Comments

No comments have been posted about Retrieve the Windows working area (i.e. the portion of the screen not obscured by the taskbar or ot. Why not be the first to post a comment about Retrieve the Windows working area (i.e. the portion of the screen not obscured by the taskbar or ot.

Post your comment

Subject:
Message:
0/1000 characters