PRB: AnimatePalette() Does Not Animate in 16+ Bit-Per-Pixel Modes on Windows 95 and Windows 98 and Windows Me (273019)
The information in this article applies to:
- Microsoft Platform Software Development Kit (SDK) 1.0, when used with:
- Microsoft Windows 98 Second Edition
- Microsoft Windows Millennium Edition
This article was previously published under Q273019 SYMPTOMS
DIB colors may not display correctly when either the SetDIBitsToDevice or StretchDIBits function is used with the DIB_PAL_COLORS flag. This problem occurs when the AnimatePalette function is used to modify the colors in the palette that is currently selected into the target HDC.
CAUSEAnimatePalette does not replace palette entries in a logical palette when the system is running in a 16, 24, or 32 bit-per-pixel video mode on computer that is running Windows 95, Windows 98, or Windows Me.
RESOLUTION
To work around this problem, re-create the palette by using the CreatePalette function with the desired palette entries. Then, select and realize the palette into the target HDC.
Modification Type: | Minor | Last Reviewed: | 4/4/2006 |
---|
Keywords: | kbDSWGDI2003Swept kbColor kbGDI kbPalettes kbprb KB273019 |
---|
|