OwnCombo.exe Demonstrates an Owner-Draw Combo Box

ID: Q81706


The information in this article applies to:
  • Microsoft Windows Software Development Kit (SDK) versions 3.0, 3.1


SUMMARY

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.exe 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.


MORE INFORMATION

The following files are available for download from the Microsoft Download Center. Click the file names below to download the files:


OwnCombo.exe

For more information about how to download files from the Microsoft Download Center, please visit the Download Center at the following Web address

http://www.microsoft.com/downloads/search.asp
and then click How to use the Microsoft Download Center.

Additional query words:

Keywords : kbfile kbsample kb16bitonly kbComboBox kbCtrl kbGrpUser kbWinOS310 kbWinOS300
Version : WINDOWS:3.0,3.1
Platform : WINDOWS
Issue type :


Last Reviewed: December 8, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.