Re: Having trouble with pens and brushes
- From: "Paul Baker [MVP, Windows - Networking]" <paulb@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 1 Jun 2006 10:26:15 -0400
Jeffrey,
""Jeffrey Tan[MSFT]"" <jetan@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:4QaxyTVhGHA.4688@xxxxxxxxxxxxxxxxxxxxxxxx
Based on my review, it seems you drawed the rectangles in the OnMouseUp
method, this may be the problem.
I feel dumb for missing that! Yes, painting other than in response to a
WM_PAINT or WM_ERASEBKGND message is usually not a good idea. I think it is
a problem that many people forget ths basics when they are faced with layer
upon layer of abstraction (events, .net, MFC, etc.).
The solution Schemer chose is unclear, but it sounds like it might involved
forcing it to repaint when it really doesn't need to.
Paul
.
- Follow-Ups:
- Re: Having trouble with pens and brushes
- From: "Jeffrey Tan[MSFT]"
- Re: Having trouble with pens and brushes
- References:
- Re: Having trouble with pens and brushes
- From: "Jeffrey Tan[MSFT]"
- Re: Having trouble with pens and brushes
- Prev by Date: Re: Dynamic replacement of metafiles records not possible when playing back with GDI
- Next by Date: Getting 1bpp with GDI
- Previous by thread: Re: Having trouble with pens and brushes
- Next by thread: Re: Having trouble with pens and brushes
- Index(es):
Relevant Pages
|