The DrawDibGetPalette function retrieves the palette used by a DrawDib DC.
HPALETTE DrawDibGetPalette(
HDRAWDIB hdd
);
Returns a handle to the palette if successful or NULL otherwise.
This function assumes the DrawDib DC contains a valid palette entry, implying that a call to this function must follow calls to the DrawDibDraw or DrawDibBegin functions.
You should rarely need to call this function because you can realize the correct palette in response to a window message by using the DrawDibRealize function.
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in vfw.h.
Import Library: Use vfw32.lib.
DrawDib Overview, DrawDib Functions, DrawDibDraw, DrawDibBegin, DrawDibRealize