Click to Rate and Give Feedback
MSDN
MSDN Library
COM
Reference
Structures
 PICTDESC Structure
PICTDESC Structure

Contains parameters to create a picture object through the OleCreatePictureIndirect function.

Syntax

C++
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, *LPPICTDESC;

Members

cbSizeofstruct

The size of the structure, in bytes.

picType

Type of picture described by this structure, which can be any value from the PICTYPE enumeration. This selects the arm of the union that corresponds to one of the picture type structures below.

bmp

Structure containing bitmap information if picType is PICTYPE_BITMAP.

hbitmap

The HBITMAP handle identifying the bitmap assigned to the picture object.

hpal

The HPALETTE handle identifying the color palette for the bitmap.

wmf

Structure containing metafile information if picType is PICTYPE_METAFILE.

hmeta

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

xExt

Horizontal extent of the metafile in TWIPS units.

yExt

Vertical extent of the metafile in TWIPS units.

icon

Identifies a structure containing icon information if picType is PICTYPE_ICON.

hicon

The HICON handle identifying the icon assigned to the picture object.

emf

Structure containing enhanced metafile information if picType is PICTYPE_ENHMETAFILE.

hemf

The HENHMETAFILE handle identifying the enhanced metafile assigned to the picture object.

Requirements

Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderOlectl.h

See Also

OleCreatePictureIndirect
PICTYPE

Send comments about this topic to Microsoft

Build date: 11/12/2009

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker