Re: Flat ScrollBar ActiveX by XTC
XTC
Wed May 11 04:26:16 CDT 2005
"andré m.a" <a.m.a@videotron.ca> wrote in message
news:URhge.17524$Mm1.341871@weber.videotron.net...
>
>
>>
>> Firstly, what you call a slider button is normally referred to as the "thumb".
>>
>> Secondly, all scroll bars have an ancestor class, CWnd. You only need interrogate
>> this MFC class to establish the width/height and border properties of a scrollbar
>> (or indeed the base properties of any window derived from CWnd). Indeed, the scroll
>> buttons and the thumb of a scrollbar are nothing more than CButton classes, which
>> themselves are descendents of CWnd. Therefore it's not too difficult to interrogate
>> these base classes to establish the width and height information you seek.
>>
>
> well that'be nice exept i dont use MFC. just plain old Windows.
...and you're asking a Microsoft Visual C programming group because...?
With the scrollbar on view, take a screenshot using the [Prt Scn] key, then paste the
result into MS Paint (or any suitable image editor), zoom in to the bitmap region in
question and count the pixels for yourself. Note that the width is dependent upon your
current display appearance settings (e.g., font sizes). You cannot guarantee that
everyone will use the same appearance settings as you.
Programmers don't have to second-guess your individual appearance settings because
every window (a scrollbar is just a type of window, as are the buttons and thumb of
the scrollbar) knows its own width and height at runtime.