SetDDB method (Main Control)

Visual Basic example
Visual C++ 4.0 example

Visual J++ example

Syntax short SetDDB (OLE_HANDLE hDC, OLE_HANDLE hBitmap, OLE_HANDLE hPalette);

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 hPalette parameter, you can use the GetPalette method to get the palette handle.

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

See Also

Elements:  GetDIB method, SetDIB method, GetDDB method

Topics:  Raster Images: Exchanging Imgages with Other Objects