hi

The flat scroll bar has 2 button like ends
with arrows and a slider button like somewhere
in the middle. Ok i need to know if there's a way
to find out the width of the "arrow" end buttons ?

I know that im actualy looking at a bitmap that
looks like buttons but im asking anyways =/

thanks

Re: Flat ScrollBar ActiveX by XTC

XTC
Tue May 10 17:49:37 CDT 2005

"andré m.a" <a.m.a@videotron.ca> wrote in message
news:6t4ge.118329$2g1.836965@weber.videotron.net...
> hi
>
> The flat scroll bar has 2 button like ends
> with arrows and a slider button like somewhere
> in the middle. Ok i need to know if there's a way
> to find out the width of the "arrow" end buttons ?
>
> I know that im actualy looking at a bitmap that
> looks like buttons but im asking anyways =/
>
> thanks

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.



Re: Flat ScrollBar ActiveX by andré

andré
Wed May 11 01:45:08 CDT 2005



>
> 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.

thanks




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.



Re: Flat ScrollBar ActiveX by Kyle

Kyle
Tue May 10 14:06:02 CDT 2005

>>well that'be nice exept i dont use MFC. just plain old Windows.
>
> ...and you're asking a Microsoft Visual C programming group because...?

... when did MFC become synonymous to MVC ?

Re: Flat ScrollBar ActiveX by XTC

XTC
Wed May 11 20:38:35 CDT 2005


"Kyle" <invalid@e.mail> wrote in message news:ubOyuxlVFHA.3620@TK2MSFTNGP09.phx.gbl...
>>>well that'be nice exept i dont use MFC. just plain old Windows.
>>
>> ...and you're asking a Microsoft Visual C programming group because...?
>
> ... when did MFC become synonymous to MVC ?

...when did "plain old Windows" became synonymous with MVC? Windows is an OS, not an
IDE.



Re: Flat ScrollBar ActiveX by Kyle

Kyle
Tue May 10 03:20:32 CDT 2005

>>>>well that'be nice exept i dont use MFC. just plain old Windows.
>>>
>>>...and you're asking a Microsoft Visual C programming group because...?
>>
>>... when did MFC become synonymous to MVC ?
> ...when did "plain old Windows" became synonymous with MVC? Windows is an OS, not an
> IDE.

erm ... it didnt, but Windows being os has nothing to do wth that.
You stated that its MVC newsgroup, so its logical to assume that people
asking questions here use MVC (which doesnt mean they necessarily use
MFC)... isn't it ?

Re: Flat ScrollBar ActiveX by andré

andré
Thu May 12 03:39:10 CDT 2005



>>>>well that'be nice exept i dont use MFC. just plain old Windows.
>>>
>>> ...and you're asking a Microsoft Visual C programming group because...?
>>
>> ... when did MFC become synonymous to MVC ?
>
> ...when did "plain old Windows" became synonymous with MVC? Windows is an
> OS, not an IDE.

you were talking about a CWnd class. Thats MFC.
I mentioned "ol windows", because a "Window' per say
is not a OS even if i use more then one right ? ie:
CreateWindow(...) .. What if there was a Message to get
info on the button size of a scrollbar , then id be sending
a "windows message". Hence Good Old Windows etc...




Re: Flat ScrollBar ActiveX by Fred

Fred
Fri May 13 14:49:07 CDT 2005

"andré m.a" <a.m.a@videotron.ca> wrote in message
news:QCEge.7133$L31.11480@wagner.videotron.net...
>
>
>>>>>well that'be nice exept i dont use MFC. just plain old Windows.
>>>>
>>>> ...and you're asking a Microsoft Visual C programming group because...?
>>>
>>> ... when did MFC become synonymous to MVC ?
>>
>> ...when did "plain old Windows" became synonymous with MVC? Windows is an OS, not
>> an IDE.
>
> you were talking about a CWnd class. Thats MFC.

Correct.

> I mentioned "ol windows", because a "Window' per say
> is not a OS even if i use more then one right ?

Wrong. "Windows" is an OS, period. All the windows created in Windows have lower-case
ws. There is no such thing as a singular "Window", only a window. The plural is
windows, of course. Capitalisation is as important in English as it is vital in C++.

> ie:
> CreateWindow(...) ..

The CreateWindow() function simply creates a window. It does not literally create a
Window.

> What if there was a Message to get
> info on the button size of a scrollbar , then id be sending
> a "windows message".

No. You'd be sending a Windows message. Not that you need to send messages.

> Hence Good Old Windows etc...

Try "good old Windows API" and it might make sense. Are you creating a Win32 project
perhaps? No matter. Suggest you look up GetWindowHandle(), GetWindowRect() and
GetClientRect() -- the exact same underlying functions used by MFC and indeed .NET,
the only differences being syntax.



Re: Flat ScrollBar ActiveX by Fred

Fred
Fri May 13 15:12:08 CDT 2005

"Kyle" <invalid@e.mail> wrote in message
news:O%23R4ttsVFHA.2768@tk2msftngp13.phx.gbl...
>>>>>well that'be nice exept i dont use MFC. just plain old Windows.
>>>>
>>>>...and you're asking a Microsoft Visual C programming group because...?
>>>
>>>... when did MFC become synonymous to MVC ?
>> ...when did "plain old Windows" became synonymous with MVC? Windows is an OS, not
>> an IDE.
>
> erm ... it didnt, but Windows being os has nothing to do wth that.

But it has everything to do with my statement. Whether he uses MFC or not is beside
the point. The OPs statement, as written, makes it sound like he doesn't use MVC at
all -- "just plain old Windows". Taken literally, I' have to assume he writes all his
code in Notepad...

> You stated that its MVC newsgroup, so its logical to assume that people asking
> questions here use MVC (which doesnt mean they necessarily use MFC)... isn't it ?

Logical, but not always correct.



Re: Flat ScrollBar ActiveX by Igor

Igor
Sat May 14 22:14:17 CDT 2005

"andré m.a" <a.m.a@videotron.ca> wrote in message
news:6t4ge.118329$2g1.836965@weber.videotron.net
> The flat scroll bar has 2 button like ends
> with arrows and a slider button like somewhere
> in the middle. Ok i need to know if there's a way
> to find out the width of the "arrow" end buttons ?

FlatSB_GetScrollProp
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925