R.Wieser
2022-01-21 10:50:43 UTC
Hello all,
I'm using GDIPlus to display an image in a controls WM_PAINT event
(BeginPaint, GdipCreateFromHDC, GdipDraw, GdipDeleteGraphics, EndPaint).
This works.
The problem occurs when I move another window over the control : I get a
mish-mash of the origional image interleaved with gray areas following
moved-over window.
Although I've found some ham-fisted solution by calling 'InvalidateRect'
just before 'BeginPaint' (causing a second paint event which covers op the
gray areas) I would like to know what correct way is to handle the problem.
Remark: I'm using the "flat api" set of GDI+ functions - on XPsp3.
Regards,
Rudy Wieser
I'm using GDIPlus to display an image in a controls WM_PAINT event
(BeginPaint, GdipCreateFromHDC, GdipDraw, GdipDeleteGraphics, EndPaint).
This works.
The problem occurs when I move another window over the control : I get a
mish-mash of the origional image interleaved with gray areas following
moved-over window.
Although I've found some ham-fisted solution by calling 'InvalidateRect'
just before 'BeginPaint' (causing a second paint event which covers op the
gray areas) I would like to know what correct way is to handle the problem.
Remark: I'm using the "flat api" set of GDI+ functions - on XPsp3.
Regards,
Rudy Wieser