CXTPControlComboBox with images for list items |
Post Reply |
Author | |
rdhd
Senior Member Joined: 13 August 2007 Location: United States Status: Offline Points: 886 |
Post Options
Thanks(0)
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? |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |