Win32 API ListBox Control
Posted on 2007-11-15
I need a listbox control that has multiple, variable width columns. MSDN's documentation shows that the listbox control has a LBS_MULTICOLUMN style flag. It even has messages you can send to the control to size the columns. But nowhere in the documentation do I see how to specify the number of columns, or even how to address a specific column to either size it or get its data. I'd be willing to accept having to do it on a row-by-row basis, but I don't even see documentation on how to do that. All I see are basic LBS_ADDSTRING and LBS_GETSEL messages.
How do I control a listbox with the LBS_MULTICOLUMN style?