Re: why a modal dialog prevent view to redraw?



Hi Guido, as usual you are right.
I consider it luck to meet you here, making an allowance for small
probability of reading the same post at approximately the same time.

"Guido Stercken-Sorrenti [MVP VC++]" wrote:

> > Maybe I have found the bug.
> > I use the code
> > // if (!pDC->RectVisible(&rc))
> > // return;
> > but in MM_ANISOTROPIC and MM_TEXT map mode, function RectVisible() return
> > different value.
>
> Yes, looks like it could be the problem. Note that the rect you pass to
> RectVisible() has to be in locical units, so you'll have to call DPtoLP() if
> your rc is in device units.
>
> --
> Guido Stercken-Sorrenti
> MVP - Visual Developer / Visual C++
>
>
>
.