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 ...
-
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.
-
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.
>
Similar Threads
-
By Application Development in forum Sharepoint
Replies: 2
Last Post: 09-20-2007, 08:21 PM
-
By Application Development in forum Sharepoint
Replies: 4
Last Post: 09-05-2007, 03:04 PM
-
By Application Development in forum c++
Replies: 6
Last Post: 06-08-2007, 02:07 AM
-
By Application Development in forum DOTNET
Replies: 3
Last Post: 03-26-2006, 01:17 AM
-
By Application Development in forum DOTNET
Replies: 2
Last Post: 02-15-2006, 04:21 PM