ICDRAWBEGIN

The ICDRAWBEGIN structure contains decompression parameters used with the ICM_DRAW_BEGIN message.

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; 
 

Members

dwFlags
Applicable flags. The following values are defined:
ICDRAW_ANIMATE
Application can animate the palette.
ICDRAW_BUFFER
Buffers this data off-screen; it will need to be updated.
ICDRAW_CONTINUE
Drawing is a continuation of the previous frame.
ICDRAW_FULLSCREEN
Draws the decompressed data on the full screen.
ICDRAW_HDC
Draws the decompressed data to a window or a DC.
ICDRAW_MEMORYDC
DC is off-screen.
ICDRAW_QUERY
Determines if the decompressor can handle the decompression. The driver does not actually decompress the data.
ICDRAW_RENDER
Renders but does not draw the data.
ICDRAW_UPDATING
Current frame is being updated rather than played.
hpal
Handle of the palette used for drawing.
hwnd
Handle of the window used for drawing.
hdc
Handle of the DC used for drawing. Specify NULL to use a DC associated with the specified window.
xDst, yDst
The x- and y-coordinates of the destination rectangle.
dxDst, dyDst
Width and height of the destination rectangle.
lpbi
Address of a BITMAPINFOHEADER structure containing the input format.
xSrc, ySrc
The x- and y-coordinates of the source rectangle.
dxSrc, dySrc
Width and height of the source rectangle.
dwRate
Decompression rate in an integer format. To obtain the rate in frames per second, divide this value by the value in dwScale.
dwScale
Value used to scale dwRate to frames per second.

QuickInfo

  Windows NT: Requires version 3.1 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in vfw.h.
  Import Library: Use vfw32.lib.

See Also

Video Compression Manager Overview, Video Compression Structures, BITMAPINFOHEADER, ICM_DRAW_BEGIN