The information in this article applies to:
SYMPTOMSThe 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. CAUSEThere is a problem in Windows 95 where an internal palette structure is not set up until the palette is selected into a screen DC. RESOLUTIONIf 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. STATUSMicrosoft is researching this behavior and will post new information here in the Microsoft Knowledge Base when it becomes available. Additional query words: 4.00 win95fest Windows 95 SelectObject SelectPalette CreatePalette CreateCompatibleDC GPF
Keywords : |
Last Reviewed: March 3, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |