Print Page | Close Window

CXTPControlComboBox with images for list items

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=22704
Printed Date: 03 May 2024 at 7:36pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPControlComboBox with images for list items
Posted By: rdhd
Subject: CXTPControlComboBox with images for list items
Date Posted: 29 August 2015 at 11:23am
I have a control combobox on my ribbon. We add a list of strings to the control and now I want to add an image next to each string as I can do with a Windows ComboBoxEx control on a dialog. So far I have not figured out how to do this. I have been able to set the m_nEditIconId of the control combobox itself and whichever string I choose from the dropdown draws in the box with that icon in the DrawEditText method. But associating and icon with each string in the list eludes me. I found CXTPControLComboBox::DrawItem but that is never called when I click the dropdown. I haven't managed to ever break in that routine.

Does anyone know how to do this?



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net