Export (0) Print
Expand All
Expand Minimize

DrawDibGetPalette function

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

Syntax


HPALETTE DrawDibGetPalette(
  HDRAWDIB hdd
);

Parameters

hdd

Handle to a DrawDib DC.

Return value

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

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Vfw.h

Library

Vfw32.lib

DLL

Msvfw32.dll

See also

DrawDib Functions

 

 

Community Additions

ADD
Show:
© 2014 Microsoft