Microsoft Knowledge Base Email Alertz

DIB colors may not display correctly when either the

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 273019 - Last Review: February 12, 2007 - Revision: 1.6

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

System TipThis article applies to a different version of Windows than the one you are using. Content in this article may not be relevant to you. Visit the Windows Vista Solution Center
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.

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.

APPLIES TO
  • Microsoft Platform Software Development Kit-January 2000 Edition, when used with:
    • Microsoft Windows 95
    • Microsoft Windows 98 Standard Edition
    • Microsoft Windows 98 Second Edition
  • Microsoft Windows Millennium Edition
Keywords: 
kbdswgdi2003swept kbcolor kbgdi kbpalettes kbprb KB273019
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate