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

window caption

Scheduled Pinned Locked Moved C / C++ / MFC
comgraphicshelpquestion
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.
  • N Offline
    N Offline
    Neeraj Sinha
    wrote on last edited by
    #1

    I am trying to create a custom window caption for SDI application.I have taken help from http://www.codeproject.com/gdi/customcaption.asp The project on the above link use WM_NCPAINT,WM_NCACTIVATE and WM_SETTEXT handlers in the window procedure to draw and paint the caption bar.In this project whole caption bar has been customized. In my application,I don't want to draw and paint minimize,maximize and close buttons and let them be like the system's created default buttons.Actually these default buttons are getting drawn and painted but are not visible when the mainframe window gets activated.When I move the mouse on that region, then only those buttons are visible and work fine on clicking them.So, Can you please suggest me why those buttons may not be getting visible when the mainframe window gets activated?

    With Regards Neeraj Sinha

    N 1 Reply Last reply
    0
    • N Neeraj Sinha

      I am trying to create a custom window caption for SDI application.I have taken help from http://www.codeproject.com/gdi/customcaption.asp The project on the above link use WM_NCPAINT,WM_NCACTIVATE and WM_SETTEXT handlers in the window procedure to draw and paint the caption bar.In this project whole caption bar has been customized. In my application,I don't want to draw and paint minimize,maximize and close buttons and let them be like the system's created default buttons.Actually these default buttons are getting drawn and painted but are not visible when the mainframe window gets activated.When I move the mouse on that region, then only those buttons are visible and work fine on clicking them.So, Can you please suggest me why those buttons may not be getting visible when the mainframe window gets activated?

      With Regards Neeraj Sinha

      N Offline
      N Offline
      Nelek
      wrote on last edited by
      #2

      Have you checked out if button->ShowWindow (TRUE) works? It would help if you post a bit of your code.

      Greetings. -------- M.D.V. If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?

      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