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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top