Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. OwnerDraw Combox

OwnerDraw Combox

Scheduled Pinned Locked Moved C / C++ / MFC
2 Posts 2 Posters 5 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    ForNow
    wrote on last edited by
    #1

    Hi with the combobox it seems that drawitem function is only called after I click the icon of drop down. My combobox displays with the first entry in the editbox (unformatted i.e. font and color). Is there any to have drawitem invoked before it displays as I would like to format the entry in the edit control Thanks

    V 1 Reply Last reply
    0
    • F ForNow

      Hi with the combobox it seems that drawitem function is only called after I click the icon of drop down. My combobox displays with the first entry in the editbox (unformatted i.e. font and color). Is there any to have drawitem invoked before it displays as I would like to format the entry in the edit control Thanks

      V Offline
      V Offline
      Victor Nijegorodov
      wrote on last edited by
      #2

      Perhaps your implementation/override of DrawItem is not complete? Have a look at some of the CP articles describing the ownerdraw comboboxe, like this one: [Group Combo Box](https://www.codeproject.com/Articles/489189/Group-Combo-Box#OwnerDrawnComboBoxes)

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups