The information in this article applies to:
SYMPTOMSWhen displaying an owner-drawn ListView control in report view on a 68K Macintosh, the Macintosh system crashes displaying the following message: If the program is executed under the debugger, Developer Studio displays the following message:
CAUSEA bug with the height initialization of the ListView item for the control causes the internal call to ShowWindow to perform a divide-by-zero operation. RESOLUTIONSet the height of the ListView control item to an appropriate value in the parent window's WM_MEASUREITEM handler for the ListView control. This can be done through the itemHeight field of the LPMEASUREITEMSTRUCT structure pointer provided. STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. MORE INFORMATION
The workaround involves setting the itemHeight data member of the
LPMEASUREITEMSTRUCT structure pointer before the control is displayed.
This can be done only in the parent window's WM_MEASUREITEM handler. It
is not necessary to initially create the control without the WS_VISIBLE
flag.
IDC_LIST1 is the ID of the owner-drawn ListView control.
NOTE: This problem does NOT appear on Visual C++ for the Macintosh version 4.0. REFERENCES(c) Microsoft Corporation 1999, All Rights Reserved. Contributions by Adam Kim, Microsoft Corporation. Additional query words: ownerdrawn ownerdraw CListCtrl list view WLM 4.0 4.1 4.2 owner-draw
Keywords : kbMAC kbVC kbDSupport MacPrgIss |
Last Reviewed: December 3, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |