A question about InvalidateRect() in GDI+

  • Thread starter Thread starter Leon Chi
  • Start date Start date
L

Leon Chi

Hi, everyone.

GDI+ doesn't support raster operation. It doesn't support
InvalidateRect(), right?

If it doesn't support it. how can I implement InvalidateRect() in .NET
without calling
GDI API directly? Thanks!

Your Sincerely
Leon
 
You won't have much luck calling GDI either - InvalidateRect is no GDI
command.
You can't invalidate DC's or Graphics objects or printers or anything else
GDI deals with, you can only invalidate windows/controls/forms.

Use Control.Invalidate for that purpose.

Niki
 
Back
Top