[Version 1.1]
CheckObject
The CheckObject checks whether the OLE object can be drawn.
CheckObject
oleObject,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.
-
objWidth
-
Output. Variable to return proposed object width. If an object can not
be drawn, the value is negative. If the object can be drawn, but can
not provide information about it's size, the variable is zero. If the
returned variable is positive, it's the object width.
-
objHeight
-
Output. Variable to return proposed object height. If an object can not
be drawn, the value is negative. If the object can be drawn, but can
not provide information about it's size, the variable is zero. If the
returned variable is positive, it's the object height.
Remarks
Use this function to check the size of OLE object for future drawing.
The function returns the "optimal" size for OLE object. If you will
specify later values calling the DrawObject function, the
object will be shrinked. In the opposite case, the object will be enlarged.
See too
DrawObject,
OLE support chapter.
Example
See OLE support chapter.