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. C / C++ / MFC
  3. list box item emphasis

list box item emphasis

Scheduled Pinned Locked Moved C / C++ / MFC
2 Posts 2 Posters 0 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.
  • W Offline
    W Offline
    Wayne Janaway
    wrote on last edited by
    #1

    Hi. Does anyone know of a way to emphasize or highlight specific items in a list box, and/or in the list portion of a combo box? eg: The list box contains a number of items, all of which must be visible, but only some of which are "valid" selections for the user (invalid items can be selected, but have different effects). I need a visible difference between valid & invalid choices within the box (different text color, check mark, etc). I would rather not get into owner drawn, since that is completely new to me. Thanks. :) Wayne Janaway

    M 1 Reply Last reply
    0
    • W Wayne Janaway

      Hi. Does anyone know of a way to emphasize or highlight specific items in a list box, and/or in the list portion of a combo box? eg: The list box contains a number of items, all of which must be visible, but only some of which are "valid" selections for the user (invalid items can be selected, but have different effects). I need a visible difference between valid & invalid choices within the box (different text color, check mark, etc). I would rather not get into owner drawn, since that is completely new to me. Thanks. :) Wayne Janaway

      M Offline
      M Offline
      Michael Dunn
      wrote on last edited by
      #2

      That would be cake to do with a list view control - see my article on custom draw. If you must stick with the old-style list box, you'll have to owner-draw it, sorry. --Mike-- http://home.inreach.com/mdunn/ Push the button, Frank.

      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