The information in this article applies to:
SUMMARYOn a device that supports the Windows palette management function, an application can create a logical palette, select the palette into a Device Context (DC), and realize the palette, which maps its colors into the system (hardware) palette. The GetDeviceCaps() API informs an application whether a given device is capable of performing palette manipulation and, if so, the size of the palette. This article discusses the GetDeviceCaps() API and how it is used. MORE INFORMATION
To determine whether a device can perform palette operations, call the
GetDeviceCaps() API with the RASTERCAPS parameter. If the RC_PALETTE bit of the return is set, the device supports the palette management functions.
This functionality is demonstrated in the MyPal sample code that is
included on the Windows version 3.x Software Development Kit (SDK)
Source Code 2 disk. For a demonstration, start MyPal and click the
right mouse button.
The reserved colors are entries in the system palette that are used by Windows and cannot be changed by an application [except by using SetSystemPaletteUse(), which is not recommended]. The reserved colors are used for the following purposes:
Additional query words: 3.00 3.10 3.50 4.00 win16sdk
Keywords : kbNTOS350 kbNTOS351 kbNTOS400 kbWinOS95 kbSDKWin16 |
Last Reviewed: June 17, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |