Author | Message | Time |
---|---|---|
warz | When an item longer than the width of the listview of mine is added to it - scroll bars appear at the bottom. I've scourged MSDN with no luck. Anyone know how to disable these horizontal scroll bars? | July 28, 2005, 8:35 PM |
Myndfyr | Does calling ShowScrollBar with the parameters of your listview's HWND, SB_HORZ, and FALSE work? | July 28, 2005, 9:43 PM |
warz | Well, it returns non-zero meaning it worked - but the scroll bar still appears. | July 28, 2005, 11:34 PM |
Yegg | At one time I came across this problem with Visual Basic 6, and could not solve the problem. Had you been using a library such as wxWidgets, you could fix such a problem. | July 29, 2005, 12:25 AM |
Quarantine | [quote author=Yegg link=topic=12355.msg122358#msg122358 date=1122596747] At one time I came across this problem with Visual Basic 6, and could not solve the problem. Had you been using a library such as wxWidgets, you could fix such a problem. [/quote] ..wow. | July 29, 2005, 12:59 AM |
Yegg | See? Even Warrior agrees. | July 29, 2005, 1:08 AM |
Quarantine | You can easily disable that in VB6. | July 29, 2005, 2:21 AM |
Yegg | Actually, I believe I asked how to fix the problem in either these forums or in forums.devshed.com, and no one could provide adequate help for the problem. PS. I'm not going to respond to this thread any more since I do not want it to get too off-topic. | July 29, 2005, 2:41 AM |
Myndfyr | How about using FindWindowEx to find the child window of your ListView, specifying the SBS_HORZ class name, then call ShowWindow, with the SW_HIDE message? You might need to do hide it each time the ListView is updated. | July 29, 2005, 3:01 AM |
DarkMinion | Or you could just not use a ListView :P | August 6, 2005, 1:49 AM |
warz | And us a.. ? :-\ | August 6, 2005, 5:27 PM |
Myndfyr | [quote author=warz link=topic=12355.msg123331#msg123331 date=1123349246] And us a.. ? :-\ [/quote] I assume you mean "And as a replacement?" Try subclassing a ListBox. | August 6, 2005, 6:32 PM |