Problem:
The easiest is to use a BITMAP as a background, having previously used the MS Api SetBkMode with the TRANSPARENT option...
see MF KB 21852 http://supportline.microfocus.com/mf_kb_display.asp?kbnumber=21852...
Another way is to use the Microsoft API Rectangle as done in the demo attached to this KB
Resolution:
The easiest is to use a BITMAP as a background, having previously use the MS Api SetBkMode with the TRANSPARENT option...
see MF KB 21852 http://supportline.microfocus.com/mf_kb_display.asp?kbnumber=21852...
Another way is to use the Microsoft API Rectangle as done in the demo attached to this KB
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/fillshap_6kth.asp
Rectangle
The Rectangle function draws a rectangle. The rectangle is outlined by using the current pen and filled by using the current brush.
BOOL Rectangle(
HDC hdc, // handle to DC
int nLeftRect, // x-coord of upper-left corner of rectangle
int nTopRect, // y-coord of upper-left corner of rectangle
int nRightRect, // x-coord of lower-right corner of rectangle
int nBottomRect // y-coord of lower-right corner of rectangle
);
Parameters
hdc
[in] Handle to the device context.
nLeftRect
[in] Specifies the x-coordinate, in logical coordinates, of the upper-left corner of the rectangle.
nTopRect
[in] Specifies the y-coordinate, in logical coordinates, of the upper-left corner of the rectangle.
nRightRect
[in] Specifies the x-coordinate, in logical coordinates, of the lower-right corner of the rectangle.
nBottomRect
[in] Specifies the y-coordinate, in logical coordinates, of the lower-right corner of the rectangle.
Return Values
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.