Paste method (Main Control)

Visual Basic example
Visual C++ 4.0 example

Access 2.0 example

Access 95, 97 example
Visual J++ example

Syntax short Paste (short iFlags);

Overview:  Refer to Copying and Creating Bitmaps.

Remarks

Pastes image data from the clipboard to a specified bitmap. The image on the clipboard must be a DIB or DDB raster image.

Before attempting to paste the data, you can test to see if the clipboard contains valid image data by calling this method with the iFlags parameter set to PASTE_ISREADY. If the method does not return 0, the data is valid. You can then paste the image data into the Main Control by calling this method with the iFlags parameter set to 0.

The bitmap will contain the same width, height, and bits per pixel as the image on the clipboard.

See Also

Topics:  Raster Images: Exchanging Imgages with Other Objects
Raster Images: Using the Clipboard