• Welcome to Valhalla Legends Archive.
 

Disable listview horizontal scroll

Started by warz, July 28, 2005, 03:35 PM

Previous topic - Next topic

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?

MyndFyre

Does calling ShowScrollBar with the parameters of your listview's HWND, SB_HORZ, and FALSE work?
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

warz

Well, it returns non-zero meaning it worked - but the scroll bar still appears.

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.

Warrior

Quote from: Yegg on July 28, 2005, 07:25 PM
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.

..wow.
Quote from: effect on March 09, 2006, 11:52 PM
Islam is a steaming pile of fucking dog shit. Everything about it is flawed, anybody who believes in it is a terrorist, if you disagree with me, then im sorry your wrong.

Quote from: Rule on May 07, 2006, 01:30 PM
Why don't you stop being American and start acting like a decent human?

Yegg


Warrior

You can easily disable that in VB6.
Quote from: effect on March 09, 2006, 11:52 PM
Islam is a steaming pile of fucking dog shit. Everything about it is flawed, anybody who believes in it is a terrorist, if you disagree with me, then im sorry your wrong.

Quote from: Rule on May 07, 2006, 01:30 PM
Why don't you stop being American and start acting like a decent human?

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.

MyndFyre

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.
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

DarkMinion

Or you could just not use a ListView  :P


MyndFyre

Quote from: warz on August 06, 2005, 12:27 PM
And us a.. ? :-\

I assume you mean "And as a replacement?"

Try subclassing a ListBox.
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.