Microsoft KB Archive/24179

{|
 * width="100%"|

PRB: Dotted Line Displays as Solid Line

 * }

Q24179

-

The information in this article applies to:


 * Microsoft Windows Software Development Kit (SDK) versions 3.1, 3.0
 * Microsoft Win32 Application Programming Interface (API), on platform(s):
 * the operating system: Microsoft Windows NT, versions 3.5, 3.51
 * Microsoft Windows 4.0
 * Microsoft Windows 95

-

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.

Additional query words: 3.00 3.10 3.50 4.00 win16sdk

Keywords :

Issue type :

Technology : kbAudDeveloper kbSDKSearch kbWin32sSearch kbWin32API kbWinSDKSearch