Visit Gigasoft's Web Site
 ProEssentials v9 Help

PEcopyoletoclipboard (16 Bit Only)

BOOL PEcopyoletoclipboard (hObject, lpPoint)

 

HWND 

hObject

The handle returned from PEcreate.

POINT* 

lpPoint

Pointer to POINT struct holding size.

 

This function places the current image, in the form of an OLE object, into the clipboard. This function is only available for 16 bit projects.

 

Parameter

Description

lpPoint

Pointer to a POINT struct where POINT.x stores the width and POINT.y stores the height. The dimensions are in 1/100th of a millimeter. The dimensions must not equal zero. To insure image quality, the aspect ratio (width/height) must be between 0.333 and 10.0.

 

Returns

NonZero if the function was successful, otherwise Zero.

 

Comments

Ocx|Vcl developers, see the PEactions property.

 

Within Visual Basic 3 / VB4-16, you can call this function as follows...

Pego1.PEnarg1 = 'width in pixels

Pego1.PEnarg2 = 'height in pixels

Pego1.PEactions = 16 ' Calls PEcopyoletoclipboard

 

In Delphi 1, use...

PEGraph1.PEnarg1 := {width in pixels};

PEGraph1.PEnarg2 := {height in pixels};

PEGraph1.PEactions := gOleToClip; {Calls PEcopyoletoclipboard}