PRB: Dotted Line Displays as Solid Line

ID Number: Q24179

2.00 3.00

WINDOWS

Summary:

SYMPTOMS

When an application creates a dotted line using a dotted pen and

the R2_NOT mode, a solid line is drawn on the screen.

CAUSE

The background mode is OPAQUE. This is the default background mode.

In this mode, the line is painted with the background color first,

followed by the pen.

RESOLUTION

Use the SetBkMode() function to set the mode to TRANSPARENT. In

this mode, only the pen is used; the background is not disturbed.