Microsoft KB Archive/273019

{|
 * width="100%"|

PRB: AnimatePalette Does Not Animate in 16+ Bit-Per-Pixel Modes on Windows 95 and Windows 98 and Windows Me

 * }

Q273019

-

The information in this article applies to:


 * Microsoft Win32 Software Development Kit (SDK), on platform(s):
 * Microsoft Windows 95
 * Microsoft Windows 98
 * Microsoft Windows 98 Second Edition
 * Microsoft Windows Millennium Edition

-

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.

CAUSE
AnimatePalette 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.

Additional query words:

Keywords : kbColor kbGDI kbPalettes kbSDKWin32 kbDSupport kbGrpDSGDI

Issue type : kbprb

Technology : kbWin32SDKSearch kbAudDeveloper kbSDKSearch kbWin32sSearch