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
| Вернуться в корень Архива |