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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. draw a combobox

draw a combobox

Scheduled Pinned Locked Moved C / C++ / MFC
question
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.
  • S Offline
    S Offline
    SBellieres
    wrote on last edited by
    #1

    Hi, I need to change a dropdown list button so that its arrow points to right rather than down... Any advice please????? :(( Thanks, Sandrine

    M 1 Reply Last reply
    0
    • S SBellieres

      Hi, I need to change a dropdown list button so that its arrow points to right rather than down... Any advice please????? :(( Thanks, Sandrine

      M Offline
      M Offline
      Maksim Lepikhin
      wrote on last edited by
      #2

      I guess, the easiest way to do it is to process WM_PAINT, WM_MOUSEMOVE, WM_LBUTTONDOWN, and WM_LBUTTONUP in a CComboBox derived class. Mouse messages are needed to get button state (pressed/depressed). In WM_PAINT you are free to draw whatever button you like. The hardest part in the process outlined is to draw all the shadows correctly. Note that the button is not an actual child window, it's drawn in WM_PAINT processing. And, finally you will need to subclass your dialog item if combo-box is created via a dialog template. Enjoy! Maksim Lepikhin www.softforpros.com

      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