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. How to find - which area of Window made "invalid" ?

How to find - which area of Window made "invalid" ?

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

    How to find - which area of Window made "invalid" ? When else window moves over my CDialog, I need to find which area is declared as "invalid", to redraw background of appropiate childs, but nt All each time. - in OnEreaseBackground(CDC* pDC) Thanks.

    P M 2 Replies Last reply
    0
    • V vgrigor

      How to find - which area of Window made "invalid" ? When else window moves over my CDialog, I need to find which area is declared as "invalid", to redraw background of appropiate childs, but nt All each time. - in OnEreaseBackground(CDC* pDC) Thanks.

      P Offline
      P Offline
      Prakash Nadar
      wrote on last edited by
      #2

      GetUpdateRect(..); might be of some help to you.


      MSN Messenger. prakashnadar@msn.com "If history isn't good, just burn it." - Sidhuism.

      V 1 Reply Last reply
      0
      • P Prakash Nadar

        GetUpdateRect(..); might be of some help to you.


        MSN Messenger. prakashnadar@msn.com "If history isn't good, just burn it." - Sidhuism.

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

        Thanks. How to set for control another Client area ?

        P 1 Reply Last reply
        0
        • V vgrigor

          Thanks. How to set for control another Client area ?

          P Offline
          P Offline
          Prakash Nadar
          wrote on last edited by
          #4

          vgrigor wrote: How to set for control another Client area ? I didnt get your question.


          MSN Messenger. prakashnadar@msn.com "If history isn't good, just burn it." - Sidhuism.

          V 1 Reply Last reply
          0
          • P Prakash Nadar

            vgrigor wrote: How to set for control another Client area ? I didnt get your question.


            MSN Messenger. prakashnadar@msn.com "If history isn't good, just burn it." - Sidhuism.

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

            Need to enlarge child window area, ao hay react according to event on that other area.

            P 1 Reply Last reply
            0
            • V vgrigor

              Need to enlarge child window area, ao hay react according to event on that other area.

              P Offline
              P Offline
              Prakash Nadar
              wrote on last edited by
              #6

              If you have the pointer to the child window or a window handle to that child window then you can use SetWindowRect(...) to resize the window.


              MSN Messenger. prakashnadar@msn.com "If history isn't good, just burn it." - Sidhuism.

              V 1 Reply Last reply
              0
              • P Prakash Nadar

                If you have the pointer to the child window or a window handle to that child window then you can use SetWindowRect(...) to resize the window.


                MSN Messenger. prakashnadar@msn.com "If history isn't good, just burn it." - Sidhuism.

                V Offline
                V Offline
                vgrigor
                wrote on last edited by
                #7

                thanks, but it is need to get size to draw as previously. But react as bigger thing. some clipRect function does not that ?

                P 1 Reply Last reply
                0
                • V vgrigor

                  thanks, but it is need to get size to draw as previously. But react as bigger thing. some clipRect function does not that ?

                  P Offline
                  P Offline
                  Prakash Nadar
                  wrote on last edited by
                  #8

                  Sorry i am out of ideas :-(


                  MSN Messenger. prakashnadar@msn.com "If history isn't good, just burn it." - Sidhuism.

                  V 1 Reply Last reply
                  0
                  • P Prakash Nadar

                    Sorry i am out of ideas :-(


                    MSN Messenger. prakashnadar@msn.com "If history isn't good, just burn it." - Sidhuism.

                    V Offline
                    V Offline
                    vgrigor
                    wrote on last edited by
                    #9

                    No problem - not all people here have ones.

                    1 Reply Last reply
                    0
                    • V vgrigor

                      How to find - which area of Window made "invalid" ? When else window moves over my CDialog, I need to find which area is declared as "invalid", to redraw background of appropiate childs, but nt All each time. - in OnEreaseBackground(CDC* pDC) Thanks.

                      M Offline
                      M Offline
                      Mike Dimmick
                      wrote on last edited by
                      #10

                      GetUpdateRect / GetUpdateRgn, depending on whether you want to deal with the full complexity of a region, or just the rectangle that contains all the invalid parts. Stability. What an interesting concept. -- Chris Maunder

                      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