15 мая 2023 года "Исходники.РУ" отмечают своё 23-летие!
Поздравляем всех причастных и неравнодушных с этим событием!
И огромное спасибо всем, кто был и остаётся с нами все эти годы!

Главная Форум Журнал Wiki DRKB Discuz!ML Помощь проекту


how to change the slider size of the scroll bar

James Shao -- jshao@pluto.dspt.com
Friday, October 11, 1996


Environment: Visual C++ 4.2, Win95

In my application, I created a window together with a Vertical scroll bar:
VScrollBar.

I need to display a document on the window. The size of the document may 
be quite different from time to time. How can I set up the slider's size 
of the VScrollBar based on 
the size of the document as Mscosoft did in their ScrollView class?

James Shao
DSP technology





ganeshs@nationwide.com
Monday, October 14, 1996

Environment: Visual C++ 4.2, Win95

> In my application, I created a window together with a Vertical scroll bar:
> VScrollBar.
>
> I need to display a document on the window. The size of the document may
> be quite different from time to time. How can I set up the slider's size
> of the VScrollBar based on
> the size of the document as Mscosoft did in their ScrollView class?

    Check out SetScrollInfo()...

/ ___|    / ___| __ _ _ __   ___  ___| |    I do not speak for
\___ \   | |  _ / _` | '_ \ / _ \/ __| '_ \ Tata   Unisys   or
 ___) |  | |_| | (_| | | | |  __/\__ \ | | |Nationwide    Ins.
|____(_)  \____|\__,_|_| |_|\___||___/_| |_|------------------




| Вернуться в корень Архива |