Copying and Creating Bitmaps

Use the following methods for Clipboard input and output:

Copy method

Paste method

Use the following methods to copy the bitmap to or from a DIB or DDB:

GetDDB method

GetDIB method

SetDDB method

SetDIB method

Use the following property to create a bitmap from scratch:

CreateBitmap method

You can copy a control's entire list of bitmaps by assigning the BitmapList property from one control to another. You can free all of the bitmaps in the list by setting the property to 0.

You can copy one control's current bitmap to another control's current bitmap by assigning the Bitmap property from one control to the other. You can remove the current bitmap from the list (freeing the bitmap) by setting the Bitmap property to 0. When a control has only one bitmap, you do not have to set the BitmapListIndex property to specify the current bitmap.