typedef struct {
DWORD dwFlags;
HPALETTE hpal;
HWND hwnd;
HDC hdc;
int xDst;
int yDst;
int dxDst;
int dyDst;
LPBITMAPINFOHEADER lpbi;
int xSrc;
int ySrc;
int dxSrc;
int dySrc;
DWORD dwRate;
DWORD dwScale;
} ICDRAWBEGIN;
The ICDRAWBEGIN structure is used with the ICM_DRAW_BEGIN message to specify the parameters used to decompress the data.
Members
dwFlags
Specifies any of the following flags:
Flag | Meaning |
ICDRAW_QUERY | Set when an application must determine if the device driver can handle the operation. The device driver does not actually perform the operation. |
ICDRAW_FULLSCREEN | Indicates the full screen is used to draw the decompressed data. |
ICDRAW_HDC | Indicates a window or display context is used to draw the decompressed data. |
ICDRAW_ANIMATE | Indicates the palette might be animated. |
ICDRAW_CONTINUE | Indicates drawing is a continuation of the previous frame. |
ICDRAW_MEMORYDC | Indicates the display context is offscreen. |
ICDRAW_UPDATING | Indicates the frame is being updated rather than being played. |
hpal
Specifies a handle of the palette used for drawing.
hwnd
Specifies the handle of the window used for drawing.
hdc
Specifies the handle of the display context used for drawing. If NULL is specified, a display context to the specified window should be used.
xDst
Specifies the x-position of the destination rectangle.
yDst
Specifies the y-position of the destination rectangle.
dxDst
Specifies the width of the destination rectangle.
dyDst
Specifies the height of the destination rectangle.
lpbi
Specifies a pointer to a BITMAPINFOHEADER data structure containing the input format.
xSrc
Specifies the x-position of the source rectangle.
ySrc
Specifies the y-position of the source rectangle.
dxSrc
Specifies the width of the source rectangle.
dySrc
Specifies the height of the source rectangle.
dwRate
Specifies the decompression rate in an integer format. To obtain the rate in frames-per-second, divide this value by the value in dwScale.
dwScale
Specifies the value used to scale dwRate to frames-per-second.