|
-
Feb 1st, 2003, 06:58 PM
#1
[*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!
Last edited by MrPolite; Feb 3rd, 2003 at 07:46 PM.
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
-
Feb 1st, 2003, 07:09 PM
#2
Hyperactive Member
I'm sorry I can't help, but if you do find the answer, could you possibly send it my way to include in the VBCodeBook CodePack update?
-
Feb 1st, 2003, 07:15 PM
#3
Sleep mode
sorry but which scroll bars are you talking about ?
-
Feb 1st, 2003, 07:52 PM
#4
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|