The information in this article applies to:
SUMMARYA General Protection Fault (GPF) or Application Error occurs when attempting to display a dialog box or FormView that contains a list box with both the multicolumn (LBS_MULTICOLUMN) and ownerdraw, variable height (LBS_OWNERDRAWVARIABLE) styles. CAUSEThis is expected behavior. Windows, Windows NT, and Windows 95 do not support multicolumn, ownerdraw, variable height list boxes. RESOLUTION
For list boxes that are owner drawn and multicolumn, use the fixed height
style (LBS_OWNERDRAWFIXED). MORE INFORMATIONThe Dialog Editor that ships with all versions of Visual C++ prior to version 4.0 incorrectly allow these incompatible styles to be combined using the check boxes on the property page for the list box control. (Visual C++, 32-bit Edition, version 4.0 disables the Multi-column check box when Variable is the setting selected for Owner draw.) These styles, LBS_MULTICOLUMN and LBS_OWNERDRAWVARIABLE, may also be combined incorrectly if the dialog box resource file (.RC) is edited directly. Steps to Reproduce ProblemThe problem can be reproduced by modifying the CTRLTEST sample:
Additional query words: listbox
Keywords : kbVC100 kbVC150 kbVC151 kbVC152 kbVC200 kbVC210 kbVC400 kbGrpDSTools |
Last Reviewed: July 29, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |