Microsoft KB Archive/68580

{|
 * width="100%"|

HOWTO: Change a List Box from Single-Column to Multicolumn

 * }

Q68580

-

The information in this article applies to:


 * Microsoft Windows Software Development Kit (SDK)
 * Microsoft Win32 Software Development Kit (SDK)

-

SUMMARY
A list box cannot be changed from single column to multicolumn by altering the list box's style bits &quot;on the fly.&quot;

The effect of switching a single-column list box to multicolumn can be achieved by creating one single column and one multicolumn list box. Initially, hide the multicolumn list box. To switch the list boxes, hide the single-column list box and show the multicolumn list box.

MORE INFORMATION
In general, programmatically changing the style bits of a window usually leads to unstable results. The method of switching between two windows (hiding one and showing the other) can safely switch window styles.

Additional query words: WIN16SDK

Keywords : kbCtrl kbListBox kbOSWinNT kbOSWin2000 kbSDKWin32 kbGrpDSUser kbOSWin

Issue type : kbhowto

Technology : kbWin32SDKSearch kbAudDeveloper kbSDKSearch kbWin32sSearch kbWinSDKSearch