The information in this article applies to:
SYMPTOMSIn the Resource Editor, you can specify styles for a list view control (CListCtrl) in a dialog template. Therefore, you should be able to set the owner draw fixed (LVS_OWNERDRAWFIXED) style by selecting the corresponding check box. However, the LVS_OWNERDRAWFIXED style is not saved in the resource file. CAUSEThe problem is caused by the fact that the LVS_OWNERDRAWFIXED and LVS_ALIGNBOTTOM styles have the same value, 0x0400. Similar problems may occur if you use LVS_ALIGNMASK. Note that LVS_ALIGNBOTTOM is not used or defined in later versions of the common control header files. RESOLUTIONAdd the style manually in the resource file by opening it as a text file and adding the hexadecimal value 0x400 (a constant for LVS_OWNERDRAWFIXED as defined in the commctrl.h file) to the styles already present. Note that once you add the style, it is shown correctly as checked in the Resource Editor, but you are not able to remove it by clearing the check box. If you need to remove it, you must remove it manually. STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug was corrected in Visual C++ 4.0 and 4.1. Additional query words: 2.10 3.10 4.00 4.10
Keywords : kbResourceEd kbVC kbVC210bug kbVC400fix kbVC410fix kbGrpDSTools |
Last Reviewed: August 2, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |