Click to See Complete Forum and Search --> : How to get a left-aligned scrollbar in CScrollView?


Ralf Mekle
May 7th, 1999, 10:30 AM
Hi,

Is it possible to have a left-aligned scrollbar in an object of CScrollView? My object of class CScrollView is a pane in a splitter window.
Does this make a difference?

Which parameter has to be set for that?

Thanks a lot,



- Ralf

May 7th, 1999, 07:51 PM
To create a left aligned scrollbar is easy. The first arg of CScrollBar::Create() is a style. Add SBS_LEFTALIGN to your style. See the VC++ help on CScrollBar, class members, Create, scroll-bar styles.

The second part is harder. In fact, it is the reason I am looking for help in this forum. CSplitterWnd likes to handle its own scrollbars, and prevents any scrollbars you add to panes from working. I will post a question about this as soon as the sysop assigns me a password.