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. Can i get text color of title bar?

Can i get text color of title bar?

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

    hi all, i am DrawText on My Cdialog, i want to set color according to the Text Color of Title bar caption. so is there any option to get the color of text of Title Bar. i also chk the GetSysColor but no success is in hand.. thanks in advance.

    L 1 Reply Last reply
    0
    • V VCProgrammer

      hi all, i am DrawText on My Cdialog, i want to set color according to the Text Color of Title bar caption. so is there any option to get the color of text of Title Bar. i also chk the GetSysColor but no success is in hand.. thanks in advance.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      See http://msdn.microsoft.com/en-us/library/windows/desktop/ms724371(v=vs.85).aspx[^].

      V 1 Reply Last reply
      0
      • L Lost User

        See http://msdn.microsoft.com/en-us/library/windows/desktop/ms724371(v=vs.85).aspx[^].

        V Offline
        V Offline
        VCProgrammer
        wrote on last edited by
        #3

        i m tyring COLOR_CAPTIONTEXT and COLOR_INACTIVECAPTIONTEXT but it return some other color...

        L 1 Reply Last reply
        0
        • V VCProgrammer

          i m tyring COLOR_CAPTIONTEXT and COLOR_INACTIVECAPTIONTEXT but it return some other color...

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          I just tried the same and those colours are both correct on my system.

          V 1 Reply Last reply
          0
          • L Lost User

            I just tried the same and those colours are both correct on my system.

            V Offline
            V Offline
            VCProgrammer
            wrote on last edited by
            #5

            oops sorry its my mistake...its done now..

            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