CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 1999
    Posts
    4

    Invalidate question

    Sometimes only a small rectangle is invalidated,
    and only this part is redrawn. I want invalidate
    always the whole window. How can I inforce this
    at the beginning of OnDraw(CDC *pDC) ?!?

    Any help is appreciated!
    Herb,
    Cheers.


    -~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
    [email protected]
    http://stud2.tuwien.ac.at/~e8827684/home.html

  2. #2
    Join Date
    Apr 1999
    Location
    NJ, USA
    Posts
    25

    Re: Invalidate question

    Hi
    you should not do any invalidation in OnDraw() because Invalidation will again call OnDraw() so program
    will be in infinite loop.
    Best way to do is in any other operation like mouse messages or menu operations.
    Call Invalidate(NULL) this would invalidate whole client area.
    Praveen


  3. #3
    Join Date
    Apr 1999
    Location
    NJ, USA
    Posts
    25

    Re: Invalidate question

    Hi
    you should not do any invalidation in OnDraw() because Invalidation will again call OnDraw() so program
    will be in infinite loop.
    Best way to do is in any other operation like mouse messages or menu operations.
    Call Invalidate(NULL) this would invalidate whole client area.
    Praveen


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured