[*resolved]Help me get system scrollbar's width
I need to find out the width of a system scroll bar (you know that this changes if you have different themes/styles on your computer).
So for example I need to know how wide is a vertical scroll bar.I have this GetScrollInfo API, dunno if I should use it or not.
VB Code:
<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Auto)> _
Private Structure SCROLLINFO
Public cbSize As Integer
Public fMask As Integer
Public nMin As Integer
Public nMax As Integer
Public nPage As Integer
Public nPos As Integer
Public nTrackPos As Integer
End Structure
<DllImport("user32.dll", CharSet:=CharSet.Auto)> _
Private Function GetScrollInfo(ByVal hwnd As IntPtr, ByVal bar As Integer, ByRef si As SCROLLINFO) As Integer
End Function
any help appriciated! :)