SAMPLE: Sample Code Demonstrates an Owner-Draw Combo BoxLast reviewed: February 15, 1996Article ID: Q81706 |
The information in this article applies to:
When Windows creates an owner-draw combo box, it sends WM_DRAWITEM messages to the parent window of the combo box. To respond to this message, the parent window must perform the steps necessary to draw the items in the owner-draw combo box. OWNCOMBO is a sample in the Microsoft Software Library that contains an example of a fixed-height owner-draw combo box that contains strings. The combo box also demonstrates painting bitmaps, changing the text color, and storing data associated with each item using the CB_SETITEMDATA message. All of the relevant code is contained within the ODDLG.C module. Download OWNCOMBO.EXE, a self-extracting file, from the Microsoft Software Library (MSL) on the following services:
|
Additional reference words: 3.00 3.10 softlib OWNCOMBO.EXE
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |