Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Controls
  New Posts New Posts RSS Feed - CXTPControlComboBox with images for list items
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPControlComboBox with images for list items

 Post Reply Post Reply
Author
Message
rdhd View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 August 2007
Location: United States
Status: Offline
Points: 867
Post Options Post Options   Thanks (0) Thanks(0)   Quote rdhd Quote  Post ReplyReply Direct Link To This Post Topic: CXTPControlComboBox with images for list items
    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?
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.188 seconds.