PRB: Area Around Text and Remainder of Window Different Colors (22242)
The information in this article applies to:
- Microsoft Windows Software Development Kit (SDK) 3.1
- Microsoft Win32 Application Programming Interface (API), when used with:
- Microsoft Windows NT Server 3.5
- Microsoft Windows NT Server 3.51
- Microsoft Windows NT Server 4.0
- Microsoft Windows NT Workstation 3.5
- Microsoft Windows NT Workstation 3.51
- Microsoft Windows NT Workstation 4.0
This article was previously published under Q22242 SYMPTOMS
When text is painted into a window, an area around the text is a
different color than the remainder of the window.
CAUSE
The area around the text is painted with a solid color while the
remainder of the window is painted using a dithered color.
RESOLUTION
To make the area around the text and the remainder of the window
have the same color, perform one of the following two steps:
- Use a solid color for the window background, and use the same
color for the text background. To ensure that a color is a solid
color, use the GetNearestColor function. This function returns
the nearest solid color available to represent the specified
color.
-or-
- Call the SetBkMode function to specify TRANSPARENT mode for the text. Doing so prevents Windows from painting the area behind
the text. The window background color shows through instead.
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 12/1/2003 |
---|
Keywords: | kbprb KB22242 |
---|
|