PICTDESC  1MVAQ3W

The PICTDESC structure contains parameters to create a picture object through the OleCreatePictureIndirect function.

typedef struct tagPICTDESC

    UINT cbSizeOfStruct;

    UINT picType;

    union

   

        struct

       

            HBITMAP hbitmap;

            HPALETTE hpal;

        } bmp;

        struct

       

            HMETAFILE hmeta;

            int xExt;

            int yExt;

        } wmf;

        struct

       

            HICON hicon;

        } icon;

        struct

       

            HENHMETAFILE hemf;

        } emf;

    } ;

} PICTDESC;

 

Members

cbSizeOfStruct

Size of the PICTDESC structure.

picType

Type of picture described by this structure, which can be any value from the PICTYPE enumeration.

bmp

Structure containing bitmap information if picType is PICTYPE_BITMAP.

bmp.hbitmap

The HBITMAP identifying the bitmap assigned to the picture object.

bmp.hpal

The HPALETTE identifying the color palette for the bitmap.

wmf

Structure containing metafile information if picType is PICTYPE_METAFILE.

wmf.hmeta

The HMETAFILE handle identifying the metafile assigned to the picture object.

wmf.xExt

Horizontal extent of the metafile in HIMETRIC units.

wmf.yExt

Vertical extent of the metafile in HIMETRIC units.

icon

Identifies a structure containing icon information if picType is PICTYPE_ICON.

icon.hicon

The HICON identifying the icon assigned to the picture object.

emf

Structure containing enhanced metafile information if picType is PICTYPE_ENHMETAFILE.

emf.hemf

The HENHMETAFILE identifying the enhanced metafile to assign to the picture object.

 

See Also

OleCreatePictureIndirect, PICTYPE