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. Dialog toolbar problem

Dialog toolbar problem

Scheduled Pinned Locked Moved C / C++ / MFC
graphicshelpquestion
4 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.
  • F Offline
    F Offline
    followait
    wrote on last edited by
    #1

    After adding a toolbar, when drawing the client, I need to adjust the rect which is returned in GetClientRect. Is there any way to make it transparent?

    logics

    P 1 Reply Last reply
    0
    • F followait

      After adding a toolbar, when drawing the client, I need to adjust the rect which is returned in GetClientRect. Is there any way to make it transparent?

      logics

      P Offline
      P Offline
      PravinSingh
      wrote on last edited by
      #2

      Hope this helps.


      It's better to know some of the questions than all of the answers.
      Pravin.

      F 1 Reply Last reply
      0
      • P PravinSingh

        Hope this helps.


        It's better to know some of the questions than all of the answers.
        Pravin.

        F Offline
        F Offline
        followait
        wrote on last edited by
        #3

        I mean that make GetClientRect return the client rect exclude the toolbar rect.

        logics

        P 1 Reply Last reply
        0
        • F followait

          I mean that make GetClientRect return the client rect exclude the toolbar rect.

          logics

          P Offline
          P Offline
          PravinSingh
          wrote on last edited by
          #4

          But your question spoke about making it transparent :^) ...anyway, to get the actual client area (drawing area), you can create it as a child window that covers the entire space except the toolbars etc. and put all your controls inside that child window. Then a call to GetClientRect with child window as a parameter will give you the desired rect (you can take a look at this[^]example). I am not aware of any other more sophisticated way to achieve this.


          It's better to know some of the questions than all of the answers.
          Pravin.

          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