Archived

This topic is now archived and is closed to further replies.

listboxes created with LBS_MULTICOLUMN

This topic is 5112 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have a listbox that I made with LBS_MULTICOLUMN so I could have entries side by side, but I can''t get it to behave the way I want it to. It makes the vertical scrollbar on the right disappear that otherwise exists. Also, I can''t find a way to add items directly to the second column. It just waits until it fills up the first until moving on to the second. The MSDN has been useless so far in trying to figure this out. Can anyone help me?

Share this post


Link to post
Share on other sites
I''m not sure but I think you might want a list-view control with LVS_REPORT style instead of a listbox control with LBS_MULTICOLUMN. (A listbox control with LBS_MULTICOLUMN is a listbox that scrolls horizontally, which explains why your veritcal scroll bar disappears.)

Share this post


Link to post
Share on other sites
Thanks, that looks like it is what I want too. Unfortunately, MinGW doesn''t feel like compiling anything once I use the necessary defines/functions . It just gives undeclared identifier errors, even though they are included in the header...

Share this post


Link to post
Share on other sites
I got it to somewhat work but it isn't what I want . I just need 3 columns that I can add text to, and going through all the trouble of getting a list-view control working doesn't seem worth it.

[edit] Oh well, I went ahead and did it anyway. Does anyone know how to add items to anything other than the first column?

[edited by - Raloth on December 13, 2003 10:33:28 PM]

Share this post


Link to post
Share on other sites