The information in this article applies to:
SYMPTOMSWhen text is painted into a window, an area around the text is a different color than the remainder of the window. CAUSEThe area around the text is painted with a solid color while the remainder of the window is painted using a dithered color. RESOLUTIONTo make the area around the text and the remainder of the window have the same color, perform one of the following two steps:
STATUSThis behavior is by design. MORE INFORMATION
By default, when an application paints text into its window, Windows
fills the area around the character with the current background color.
Windows always uses a solid color for this purpose.
The following code specifies the color used to paint around text and
draws some text into a device context:
The color used to paint the area around the text has a yellow cast,
which gives it a slightly different appearance than the window
background color.
A brush may be able to represent a wider color range than the solid colors because a brush covers an area while a solid color may be used to paint nominal-width lines (for example, lines that are one device unit wide) that must be the same color at all locations and angles. Therefore, the device-driver writer has the option of providing dithered colors for brushes, but has no such freedom when it comes to the solid colors for drawing lines. Additional query words: 3.00 3.10 3.50 4.00 win16sdk
Keywords : kbNTOS350 kbNTOS351 kbNTOS400 kbWinOS95 kbSDKWin16 |
Last Reviewed: June 16, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |