INFO: Multicolumn List Boxes in Microsoft WindowsID: Q64504
|
In the Microsoft Windows environment, a multicolumn list box is designed to contain homogeneous data. For example, all the data might be "first names." These first names could logically fall into the same column or be in multiple columns. This feature was added to Windows at version 3.0 to enable a list box to be shorter vertically by splitting the data into two or three columns.
To create a multicolumn list box, specify the LBS_MULTICOLUMN style
when creating the list box. Then the application calls the SendMessage
function to send an LB_SETCOLUMNWIDTH message to the list box to set
the column width.
When an application sends an LB_SETCOLUMNWIDTH message to a
multicolumn list box, Windows does not update the horizontal scroll
bar until the a string is added to or deleted from the list box. An
application can work around this situation by performing the following
six steps when the column width changes:
Additional query words: WIN16SDK
Keywords : kbCtrl kbListBox kbNTOS kbGrpUser kbWinOS
Version :
Platform :
Issue type : kbinfo
Last Reviewed: March 5, 1999