April 6th, 2005, 04:01 AM
CListCtrl alignment of items & vertical scroll
I've used a CListCtrl controller in my app, which works fine, except that I cannot figure out how to list all the items vertically.
By default the controller displays all items by adding a horizontal scrollbar.
I've removed the horizontal scrollbar by adding and removing the styles of the controller, however, for some reason I'm not able to get the items listed underneath each other when the list is long. When exceeding the height of the controller, it adds another column...and so on.
How can I change this?
I've tried using
pListColumn->ModifyStyle(WS_HSCROLL , WS_VSCROLL | LVS_AUTOARRANGE| LVS_LIST );
in multiple ways, but cant figure out the correct way to set the style to use!
Any help would be greatly appreciated!
Click Here to Expand Forum to Full Width