Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

RICHEDIT_IMAGE_PARAMETERS structure

Defines the attributes of an image to be inserted by the EM_INSERTIMAGE message.

Syntax


typedef struct _RICHEDIT_IMAGE_PARAMETERS {
  LONG    xWidth;
  LONG    xHeight;
  LONG    Ascent;
  LONG    Type;
  LPCWSTR pwszAlternateText;
  IStream *pIStream;
} RICHEDIT_IMAGE_PARAMETERS;

Members

xWidth

The width, in HIMETRIC units (0.01 mm), of the image.

xHeight

The height, in HIMETRIC units, of the image.

Ascent

If Type is TA_BASELINE, this parameter is the distance, in HIMETRIC units, that the top of the image extends above the text baseline. If Type is TA_BASELINE and ascent is zero, the bottom of the image is placed at the text baseline.

Type

The vertical alignment of the image. It can be one of the following values.

ValueMeaning
TA_BASELINE

Align the image relative to the text baseline.

TA_BOTTOM

Align the bottom of the image at the bottom of the text line.

TA_TOP

Align the top of the image at the top of the text line

 

pwszAlternateText

The alternate text for the image.

pIStream

The stream that contains the image data.

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Richedit.h

See also

EM_INSERTIMAGE

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.