DrawDibGetPalette

The DrawDibGetPalette function retrieves the palette used by a DrawDib DC.

HPALETTE DrawDibGetPalette(
  HDRAWDIB hdd  
);

Parameters

hdd

Handle to a DrawDib DC.

Return Values

Returns a handle to the palette if successful or NULL otherwise.

Remarks

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.

Requirements

**  Windows NT/2000/XP:** Included in Windows NT 3.1 and later.
**  Windows 95/98/Me:** Included in Windows 95 and later.
**  Header:** Declared in Vfw.h.
**  Library:** Use Vfw32.lib.

See Also

DrawDib, DrawDib Functions, DrawDibDraw, DrawDibBegin, DrawDibRealize