PRB: Bad Colors or GPF Using Logical Palettes w/ DIB Sections (137232)
The information in this article applies to:
- Microsoft Platform Software Development Kit (SDK) 1.0
This article was previously published under Q137232 SYMPTOMS
The program displays the wrong colors or causes a general protection (GP)
fault when using a DIB section and a custom palette in a memory DC.
CAUSE
There is a problem in Windows 95 where an internal palette structure is not
set up until the palette is selected into a screen DC.
RESOLUTION
If you use logical palettes with bitmaps created by CreateDIBSection,
select the palette into a screen DC when the palette is created. Then the
palette can be used normally with Screen DCs as well as with
DIB sections.
STATUS
Microsoft is researching this behavior and will post new information here
in the Microsoft Knowledge Base when it becomes available.
Modification Type: | Minor | Last Reviewed: | 7/11/2005 |
---|
Keywords: | KB137232 |
---|
|