SetDDB method (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

int SetDDB (L_HDC hDevice, HBITMAP hBit, HPALETTE hPal);

Delphi Syntax

SetDDB (hDevice: L_HDC; hBit: HBitmap; hPal: HPalette): Integer;

Overview

Refer to Copying and Creating Bitmaps.

Remarks

Makes a copy of a device-dependent bitmap (DDB) and assigns the copy to the Main Control.

For the hPal parameter, you can use the GetBitmapPalette method to get the palette handle.

Ordinarily, you would need a DDB only if you are using Windows API functions. Nevertheless, for simplicity, the examples in this documentation get and set a DDB without using the API.

See Also

Elements:

GetDIB method, SetDIB method, GetDDB method

Topics:

Raster Images: Exchanging Imgages with Other Objects