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 force paint a view in MFC.

how to force paint a view in MFC.

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorialquestion
9 Posts 7 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
    VC Maniac
    wrote on last edited by
    #1

    Invalidate does not work for me. Any other way?

    S CPalliniC P H 4 Replies Last reply
    0
    • V VC Maniac

      Invalidate does not work for me. Any other way?

      S Offline
      S Offline
      SandipG
      wrote on last edited by
      #2

      ThisIsMeRon wrote:

      Invalidate does not work for me.

      Reason??

      Regards, Sandip.

      1 Reply Last reply
      0
      • V VC Maniac

        Invalidate does not work for me. Any other way?

        CPalliniC Offline
        CPalliniC Offline
        CPallini
        wrote on last edited by
        #3

        ThisIsMeRon wrote:

        Invalidate does not work for me.

        You should ask Microsoft for a custom Invalidate, working for you. :)

        If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
        This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
        [My articles]

        In testa che avete, signor di Ceprano?

        N H 2 Replies Last reply
        0
        • CPalliniC CPallini

          ThisIsMeRon wrote:

          Invalidate does not work for me.

          You should ask Microsoft for a custom Invalidate, working for you. :)

          If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
          This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
          [My articles]

          N Offline
          N Offline
          nitin3
          wrote on last edited by
          #4

          ThisIsMeRon wrote:

          Invalidate does not work for me.

          i dont know what his problem is, but i have similar issue with InvalidateRect when when i was creating a control in win32, i tried RedrawWindow also but not worked. I solved issue by using the following code. HWND hParent = GetParent( hChildControl ) ; InvalidateRect( hParent , &rChildRect , TRUE ) ;

          N 1 Reply Last reply
          0
          • N nitin3

            ThisIsMeRon wrote:

            Invalidate does not work for me.

            i dont know what his problem is, but i have similar issue with InvalidateRect when when i was creating a control in win32, i tried RedrawWindow also but not worked. I solved issue by using the following code. HWND hParent = GetParent( hChildControl ) ; InvalidateRect( hParent , &rChildRect , TRUE ) ;

            N Offline
            N Offline
            Nishad S
            wrote on last edited by
            #5

            What kind of child was that? I mean was it a static control? What was its class styles?

            - ns ami -

            1 Reply Last reply
            0
            • V VC Maniac

              Invalidate does not work for me. Any other way?

              P Offline
              P Offline
              prasad_som
              wrote on last edited by
              #6

              ThisIsMeRon wrote:

              Invalidate does not work for me.

              You must be using this API on wrong object. There is no way Microsoft has put some switch condition, not to work on your machine.

              1 Reply Last reply
              0
              • CPalliniC CPallini

                ThisIsMeRon wrote:

                Invalidate does not work for me.

                You should ask Microsoft for a custom Invalidate, working for you. :)

                If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
                This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
                [My articles]

                H Offline
                H Offline
                Hamid Taebi
                wrote on last edited by
                #7

                Your site is better I think it has a function Invalidatemyrequest(very urgent); :)

                Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )

                CPalliniC 1 Reply Last reply
                0
                • V VC Maniac

                  Invalidate does not work for me. Any other way?

                  H Offline
                  H Offline
                  Hamid Taebi
                  wrote on last edited by
                  #8

                  Did you use like this? Invalidate(); UpdateWindow();

                  Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )

                  1 Reply Last reply
                  0
                  • H Hamid Taebi

                    Your site is better I think it has a function Invalidatemyrequest(very urgent); :)

                    Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )

                    CPalliniC Offline
                    CPalliniC Offline
                    CPallini
                    wrote on last edited by
                    #9

                    :-D

                    If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
                    This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
                    [My articles]

                    In testa che avete, signor di Ceprano?

                    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