19.3 Creating and Using a Logical Palette

To use a logical palette, your application must first perform four steps:

1.Create a LOGPALETTE structure that describes the palette.

2.Create the palette itself.

3.Select the palette into a device context.

4.Realize the palette.