|
DrawDibRealize
The DrawDibRealize function realizes the palette of the DrawDib DC for use with the specified DC.
UINT DrawDibRealize(
HDRAWDIB hdd,
|
| HDC hdc,
|
| BOOL fBackground
|
| );
|
|
Parameters
hdd
Handle of a DrawDib DC.
hdc
Handle of the DC containing the palette.
fBackground
Background palette flag. If this value is nonzero, the palette is a background
palette. If this value is zero and the DC is attached to a window, the logical
palette becomes the foreground palette when the window has the input focus. (A
DC is attached to a window when the window class style is CS_OWNDC or when the
DC is obtained by using the GetDC function.)
Return Values
Returns the number of entries in the logical palette mapped to different
values in the system palette. If an error occurs or no colors were updated, it
returns zero.
Remarks
To select the palette of the DrawDib DC as a background palette, use the DrawDibDraw function and specify the DDF_BACKGROUNDPAL flag.
See Also
GetDC, DrawDibDraw
Related Links
Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
More Online Helps
Win32 Programmer's Reference (win32.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages
|