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. caption bar

caption bar

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

    Can i add both bitmap buttons and background color to a caption bar.As a whole can i customize the caption bar.

    G 1 Reply Last reply
    0
    • R radhika28

      Can i add both bitmap buttons and background color to a caption bar.As a whole can i customize the caption bar.

      G Offline
      G Offline
      Galatei
      wrote on last edited by
      #2

      Hi, Yes you can. You can do any painting in non-client area with help of WM_NCPAINT (MFC's OnNcPaint) message. Regards

      R 1 Reply Last reply
      0
      • G Galatei

        Hi, Yes you can. You can do any painting in non-client area with help of WM_NCPAINT (MFC's OnNcPaint) message. Regards

        R Offline
        R Offline
        radhika28
        wrote on last edited by
        #3

        ya i have no doubt with adding back ground color to the title bar.But i am not able to add bitmap button to the title bar(coding).Can you help me out in this?

        J 1 Reply Last reply
        0
        • R radhika28

          ya i have no doubt with adding back ground color to the title bar.But i am not able to add bitmap button to the title bar(coding).Can you help me out in this?

          J Offline
          J Offline
          James R Twine
          wrote on last edited by
          #4

          Instead of creating a button control, you can use DrawFrameControl(...) to draw a button in its various states and react to the cursor position to determine if the user is attempting to click that button.    Peace!

          -=- James


          If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
          Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
          DeleteFXPFiles & CheckFavorites (Please rate this post!)

          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