码迷,mamicode.com
首页 > 其他好文 > 详细

获取系统任务栏高度

时间:2015-09-04 18:33:21      阅读:185      评论:0      收藏:0      [点我收藏+]

标签:

    <DllImport("user32.dll")> _
    Private Shared Function SystemParametersInfo(ByVal uAction As Integer, ByVal uParam As Integer, ByRef lpvParam As Rectangle, ByVal fuWinIni As Integer) As Integer
    End Function
    Public Function GetTaskbarHeight() As Integer
        Dim lRes As Integer
        Dim rectVal As Rectangle
        lRes = SystemParametersInfo(SPI_GETWORKAREA, 0, rectVal, 0)
        Return Screen.PrimaryScreen.Bounds.Height - rectVal.Bottom
    End Function

获取系统任务栏高度

标签:

原文地址:http://www.cnblogs.com/lbnnbs/p/4782064.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!