CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 1999
    Posts
    4

    How to get a left-aligned scrollbar in CScrollView?

    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

  2. #2
    Guest

    Re: How to get a left-aligned scrollbar in CScrollView?

    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.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured