Microsoft KB Archive/82169

{|
 * width="100%"|

PRB: PaintRgn Fills Incorrectly with Hatched Brushes

 * }

Q82169

-

The information in this article applies to:


 * Microsoft Windows Software Development Kit (SDK) 3.1
 * Microsoft Win32 Application Programming Interface (API), used with:
 * Microsoft Windows 95
 * Microsoft Windows NT Server version 4.0
 * Microsoft Windows NT Workstation version 4.0

-

SYMPTOMS
When the TRANSPARENT background mode and a mapping mode other than MM_TEXT are selected and an application calls the PaintRgn API to fill a complex region with a hatched brush, a disconnected pattern results.

CAUSE
The Windows Graphics Device Interface (GDI) draws a complex region by filling the individual rectangles that make up the region. The code to compute the position of each rectangle on the screen fails when the screen coordinates are not in units of pixels. The error is visible when a hatched brush style is used in TRANSPARENT mode.

RESOLUTION
When a hatched brush and TRANSPARENT background mode are required, use the MM_TEXT mapping mode.

STATUS
This behavior is by design.

Additional query words: 3.10 4.00 win16sdk

Keywords : kbOSWinNT400 kbSDKWin32 kbOSWin95

Issue type : kbprb

Technology : kbAudDeveloper kbSDKSearch kbWin32sSearch kbWin32API kbWinSDKSearch