[Version 1.1]
DrawObject
The DrawObject function draws an OLE object.
DrawObject
oleObject,style,startX,startY,objWidth,objHeight
Parameters
-
oleObject
-
Specifies the OLE object to draw. It can be either OLE object previously
returned by function GetObject, CreateObject etc. or string file name
to create an object from.
-
style
-
The string specifying how to draw the object. The possible values are:
String | Meaning |
"CONTENT" |
Draws the object itself. As rule all objects which can be drawn support this. |
"THUMBNAIL" |
Draws the thumbnail (approx. 120x120) representation of object. The object must support this kind of drawing. |
"ICON" |
Draws the iconized representation of object. The object must support this kind of drawing. |
-
startX
-
The X-coordinate of upper left corner of bounding rectangle.
-
startY
-
The Y-coordinate of upper left corner of bounding rectangle.
-
objWidth
-
OLE object will be drawn with this width.
-
objHeight
-
OLE object will be drawn with this height.
Return value
This function returns True if the object was successfully drawn.
Otherwise the function returns False.
Remarks
If you use Advanced graphics mode (see SetGraphicsMode),
this function does not work. If you need to rotate on OLE object, first
draw it on the local clipboard and then place to the main picture.
See too
CheckObject,
OLE support chapter.
Example
See OLE support chapter.