CLIENTCAPS Sample
This sample detects the number of colors available in the system, and displays an image with the appropriate number of colors accordingly. Thus, if >= 256 colors are detected, it displays a 256-color bitmap. Otherwise, it defaults to a lower resolution 16-color bitmap.
© 2007 Microsoft Corporation. All rights reserved. Terms of use.