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

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


ScrollBars

Fred Wright -- FRED@bpadvert.demon.co.uk
Friday, June 14, 1996

Hi
VC4.0 Win95
I've got scrollbar troubles. My application uses a CScrollView class 
and basically I cannot get a page image centered within the display. 

Even though i've mapped the scrollpos "correctly". Does anyone have 
any ideas or seen anything similar?

My code worked fine under 3.1 so its a porting problem..maybe

Best Regards
Fred Wright






rick cameron -- rick_cameron@msn.com
Saturday, July 20, 1996

> Hi
> VC4.0 Win95
> I've got scrollbar troubles. My application uses a CScrollView class 
> and basically I cannot get a page image centered within the display. 
> 
> Even though i've mapped the scrollpos "correctly". Does anyone have 
> any ideas or seen anything similar?
> 
> My code worked fine under 3.1 so its a porting problem..maybe
> 
> Best Regards
> Fred Wright
> 

Hi, Fred

Are you trying to centre the 'document area' within the CScrollView, when it's 
smaller than the size of the view? If so, there's a very easy way to do this: 
in the constructor of your CScrollView derivative, set m_bCenter to TRUE. This 
works in MFC 2.52 and 4.x

- rick




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