How to know which parts need invalidating? - DOTNET

This is a discussion on How to know which parts need invalidating? - DOTNET ; I have an application where for performance reasons I am Invalidating parts of a Panel depending which part of the Panel has been modified. I am doing fine until I have the application covered by other Windows applications. When another ...

+ Reply to Thread
Results 1 to 2 of 2

How to know which parts need invalidating?

  1. Default How to know which parts need invalidating?

    I have an application where for performance reasons I am Invalidating parts
    of a Panel depending which part of the Panel has been modified.

    I am doing fine until I have the application covered by other Windows
    applications. When another application covers my app, getting my
    application back into focus by clicking its title bar or Alt-Tab works fine
    as somehow Windows knows how to restore the previously hidden parts.

    However, if I click some part of my Panel to get the application into focus,
    and where that particular click action would normally Invalidate only
    certain parts of the Panel, then only those certain parts would be repainted
    when my application gets back focus. Windows does not restore the parts of
    my application which was previously covered by another window.

    What are you recommendations for handling such a situation? Thanks.



  2. Default Re: How to know which parts need invalidating?

    I solved it. I put an handler in Form.Activated to repaint everything
    everytime the form gets focus.

    Thanks for reading.

    "Chris Y" <chris@cursespam.com> wrote in message
    news:uJQ$46oIGHA.524@TK2MSFTNGP09.phx.gbl...
    >I have an application where for performance reasons I am Invalidating parts
    >of a Panel depending which part of the Panel has been modified.
    >
    > I am doing fine until I have the application covered by other Windows
    > applications. When another application covers my app, getting my
    > application back into focus by clicking its title bar or Alt-Tab works
    > fine as somehow Windows knows how to restore the previously hidden parts.
    >
    > However, if I click some part of my Panel to get the application into
    > focus, and where that particular click action would normally Invalidate
    > only certain parts of the Panel, then only those certain parts would be
    > repainted when my application gets back focus. Windows does not restore
    > the parts of my application which was previously covered by another
    > window.
    >
    > What are you recommendations for handling such a situation? Thanks.
    >




+ Reply to Thread

Similar Threads

  1. AD Web Parts
    By Application Development in forum Sharepoint
    Replies: 2
    Last Post: 09-20-2007, 08:21 PM
  2. WSS 3.0 Web parts out-of-the-box
    By Application Development in forum Sharepoint
    Replies: 4
    Last Post: 09-05-2007, 03:04 PM
  3. Invalidating iterators after insertion/removal
    By Application Development in forum c++
    Replies: 6
    Last Post: 06-08-2007, 02:07 AM
  4. invalidating multiple rectangles
    By Application Development in forum DOTNET
    Replies: 3
    Last Post: 03-26-2006, 01:17 AM
  5. Invalidating: rectangles or regions
    By Application Development in forum DOTNET
    Replies: 2
    Last Post: 02-15-2006, 04:21 PM