-
February 18th, 2011, 12:50 PM
#1
MFC: Invisible Scroll
Dear experts,
I have a ListBox. I would like to show line numbers of all items in it. I am thinking of adding another Listbox containing only numbers and synchronize it with the main ListBox. But is there a way not to show any scroll in the additional ListBox, and still make its contents move synchronously with the main ListBox's scroll? Thanks.
-
February 18th, 2011, 01:25 PM
#2
Re: MFC: Invisible Scroll
You will be better off with a two-column list view control.
Vlad - MS MVP [2007 - 2012] - www.FeinSoftware.com
Convenience and productivity tools for Microsoft Visual Studio:
FeinWindows - replacement windows manager for Visual Studio, and more...
-
February 18th, 2011, 01:28 PM
#3
Re: MFC: Invisible Scroll
No, I tried CListCtrl. First of all, it has string length limitation of max 260 characters. Also, as I have long strings, when I scrolled to the right, the numbers on the left where not seen.
-
February 18th, 2011, 03:47 PM
#4
Re: MFC: Invisible Scroll
If you just want to hide the scroll bar, call CWnd’s function ShowScrollBar().
Vlad - MS MVP [2007 - 2012] - www.FeinSoftware.com
Convenience and productivity tools for Microsoft Visual Studio:
FeinWindows - replacement windows manager for Visual Studio, and more...
-
February 22nd, 2011, 08:53 AM
#5
Re: MFC: Invisible Scroll
Originally Posted by VladimirF
If you just want to hide the scroll bar, call CWnd’s function ShowScrollBar().
Thank you for your answer. But because of some reason, I still see both vertical and horizontal scrollbars after I added this:
m_lstOldData.ShowScrollBar(SB_VERT, FALSE);
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|