The information in this article applies to:
SUMMARYThe owner-draw combo box styles (CBS_OWNERDRAWFIXED and CBS_OWNERDRAWVARIABLE) are incompatible with the combo box styles that contain an edit control (combo box styles CBS_SIMPLE and CBS_DROPDOWN). A combo box with either the CBS_SIMPLE or CBS_DROPDOWN style displays the currently selected item in its associated edit control. When an owner-draw style is specified for the combo box style CBS_SIMPLE or CBS_DROPDOWN, the current selection may not be displayed. Using the SetWindowText function to display the current selection in response to a CBN_SELCHANGE message may not be effective. MORE INFORMATION
An owner-draw combo box can contain bitmaps or other graphic elements
in its list box. Therefore, to correctly display the current
selection, it is necessary to display a bitmap or other graphic
element in the edit control. Because edit controls are not designed to
display graphics, there is no natural method to display the current
selection in an owner-draw combo box with an edit control.
Additional query words: WIN16SDK
Keywords : kbComboBox kbCtrl kbNTOS kbWinOS2000 kbSDKWin32 kbGrpUser kbWinOS |
Last Reviewed: January 27, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |