OLE control related definitions in sculptor.h¶
The following values related to OLE controls are defined in <sculptor.h>:
Values for the OLE picture object “Type” property. (Prefix PICTYPE_.) OLE picture objects are assigned to Sculptor graphics by means of the picture = clause. The load_picture() function returns a pointer to an OLE picture object.
PICTYPE_UNINITIALIZED |
The picture object is currently uninitialised. This value is only valid as a return value from IPicture::get_Type and is not valid with the PICTDESC structure. |
PICTYPE_NONE |
A new picture object is to be created without an initialised state. This value is valid only in the PICTDESC structure. |
PICTYPE_BITMAP |
The picture type is a bitmap. When this value occurs in the PICTDESC structure, it means that the bmp field of that structure contains the relevant initialisation parameters. |
PICTYPE_METAFILE |
The picture type is a metafile. When this value occurs in the PICTDESC structure, it means that the wmf field of that structure contains the relevant initialisation parameters. |
PICTYPE_ICON |
The picture type is an icon. When this value occurs in the PICTDESC structure, it means that the icon field of that structure contains the relevant initialisation parameters. |
PICTYPE_ENHMETAFILE |
The picture type is a Win32-enhanced metafile. When this value occurs in the PICTDESC structure, it means that the emf field of that structure contains the relevant initialisation parameters. |
Values for the OLE picture object “Attribute” property. (Prefix PICTURE_.)
PICTURE_SCALABLE |
The picture object is scalable, such that it can be redrawn with a different size than was used to create the picture originally. Metafile-based pictures are considered scalable; icon and bitmap pictures, while they can be scaled, do not express this attribute because both involve bitmap stretching instead of true scaling. |
PICTURE_TRANSPARENT |
The picture object contains an image that has transparent areas, such that drawing the picture will not necessarily fill in all the spaces in the rectangle it occupies. Metafile and icon pictures have this attribute; bitmap pictures do not. |
RELATED TOPICS |