PRB: GPF When MultiColumn & LBS_OWNERDRAWVARIABLE in List BoxLast reviewed: July 10, 1997Article ID: Q129494 |
1.00 1.50 1.51 1.52 | 1.00 2.00 2.10 4.00
WINDOWS | WINDOWS NTkbtool kbprb The information in this article applies to:
SUMMARYA General Protection Fault (GPF) or Application Error will occur when attempting to display a dialog 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.
RESOLUTIONFor listboxes that are owner drawn and multicolumn, use the fixed height style (LBS_OWNERDRAWFIXED). For listboxes that are owner drawn and use the variable height style (LBS_OWNERDRAWVARIABLE), do not use the multicolumn style (LBS_MULTICOLUMN).
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 reference words: GPF 1.00 1.50 1.51 1.52 2.10 2.00 2.50 2.51
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |