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. How to display a color instead of text in the status bar?

How to display a color instead of text in the status bar?

Scheduled Pinned Locked Moved C / C++ / MFC
questiongraphicstutorial
4 Posts 3 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.
  • D Offline
    D Offline
    davilism
    wrote on last edited by
    #1

    Hi, my drawing application wants to display the color in-use in the status bar, how can I do that?

    N 1 Reply Last reply
    0
    • D davilism

      Hi, my drawing application wants to display the color in-use in the status bar, how can I do that?

      N Offline
      N Offline
      Nish Nishant
      wrote on last edited by
      #2

      GetStatusBarCtrl().SetBkColor( COLORREF cr ); Nish


      Regards, Nish Native CPian. Born and brought up on CP. With the CP blood in him.

      D 1 Reply Last reply
      0
      • N Nish Nishant

        GetStatusBarCtrl().SetBkColor( COLORREF cr ); Nish


        Regards, Nish Native CPian. Born and brought up on CP. With the CP blood in him.

        D Offline
        D Offline
        davilism
        wrote on last edited by
        #3

        It changes the whole status bar to the color specified. How to change a specific pane of the status bar? Thanks.

        C 1 Reply Last reply
        0
        • D davilism

          It changes the whole status bar to the color specified. How to change a specific pane of the status bar? Thanks.

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          I'm sure the status bar class I used to do this years ago came from CP so have a look on the site. You need to create a class that overloads the status bar to do this..... Christian The tragedy of cyberspace - that so much can travel so far, and yet mean so little. And you don't spend much time with the opposite sex working day and night, unless the pizza delivery person happens to be young, cute, single and female. I can assure you, I've consumed more than a programmer's allotment of pizza, and these conditions have never aligned. - Christopher Duncan - 18/04/2002

          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