Vertical scroll bar in a list control
-
Hi all, I have made a simple dialog box application, in that i have made a list control. In that list control items are being displayed one by one. My problem is as the number of items increases my list control shows a horizontal scroll bar. But i want that instead of horizontal scroll bar a vertical scroll bar should be displayed. How to do it... Thanks in advance
-
Hi all, I have made a simple dialog box application, in that i have made a list control. In that list control items are being displayed one by one. My problem is as the number of items increases my list control shows a horizontal scroll bar. But i want that instead of horizontal scroll bar a vertical scroll bar should be displayed. How to do it... Thanks in advance
I'm assuming this is a List View control. Have you tried setting the LVS_ALIGNLEFT style, instead of the LVS_ALIGNTOP style? Just a guess, but not a bad one. Or try using LVM_SETITEMPOSITION and position the items yourself. You'd need to do this after adding each one, and do it for all when the control's size changes. Iain.
Iain Clarke appears because CPallini still cares.
-
Hi all, I have made a simple dialog box application, in that i have made a list control. In that list control items are being displayed one by one. My problem is as the number of items increases my list control shows a horizontal scroll bar. But i want that instead of horizontal scroll bar a vertical scroll bar should be displayed. How to do it... Thanks in advance
What do you need exactly,can you be more specific.