PRB: Dotted Line Displays as Solid Line (24179)



The information in this article applies to:

  • Microsoft Windows Software Development Kit (SDK) 3.1
  • Microsoft Windows Software Development Kit (SDK) 3.0
  • Microsoft Win32 Application Programming Interface (API), when used with:
    • the operating system: Microsoft Windows NT 3.5
    • the operating system: Microsoft Windows NT 3.51
    • Microsoft Windows 95

This article was previously published under Q24179

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.

Modification Type:MajorLast Reviewed:4/12/2004
Keywords:KB24179