INFO: Aligning Columns in a Windows 3.x List Box (66240)
The information in this article applies to:
- Microsoft Windows Software Development Kit (SDK) 3.1
This article was previously published under Q66240
3.00 3.10
WINDOWS
kbprg
SUMMARY
To align columns of text in a list box in an application running under
Windows version 3.0, the suggested approach is to use the proportional
system font and to use tab characters to align the text. For tabs to work
properly, you must specify the LBS_USETABSTOPS style when you create the
list box.
Code that depends on space characters for correct alignment of text does
not work correctly with the Windows proportional system font. This is a
common problem when migrating applications written for Windows 2.x and
earlier to Windows 3.0. This problem can be corrected by using tabs, or by
using a fixed-pitch font in the list box.
Modification Type: | Minor | Last Reviewed: | 2/11/2005 |
---|
Keywords: | kb16bitonly kbCtrl kbinfo kbListBox KB66240 |
---|
|