BUG:SelectPalette in Metafile Ignores Force-to-Background Flag
PSS ID Number: Q111583
Article last modified on 05-07-1994

3.10

WINDOWS


---------------------------------------------------------------------
The information in this article applies to:

 - Microsoft Windows Software Development Kit (SDK) for Windows
   version 3.1
---------------------------------------------------------------------

SYMPTOMS
========

During the playback of two metafiles containing palette-based information,
the first metafile will display correctly until the second one is played.
The result is that the second metafile's colors look correct, but the first
metafile's does not. Ideally, the first metafile should get the correct
palette with the second metafile mapping its colors to the first metafile's
colors.

CAUSE
=====

When recording a SelectPalette() call in a metafile, the record stored
actually ignores the fPalBack flag that is passed to the function. During
playback of the SelectPalette() record, the fPalBack flag is forced to be 0
(zero).

RESOLUTION
==========

To avoid this problem, an application should enumerate the records in the
metafile and manually play the SelectPalette() record, setting the fPalBack
flag itself.

STATUS
======

Microsoft has confirmed this to be a problem in Windows version 3.1. We are
researching this problem and will post new information here in the
Microsoft Knowledge Base as it becomes available.

Additional reference words: 3.10 bForceBackground
KBCategory: Prg
KBSubcategory: GdiMeta

=============================================================================

Copyright Microsoft Corporation 1994.
