Microsoft Windows CE 3.0  

CAggDirectDraw Class

This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

This class aggregates an IDirectDrawinterface. Although Microsoft DirectDraw interfaces ( IDirectDrawand IDirectDrawSurface) potentially have the ability to be aggregated, this feature is not yet implemented. Various parts of Microsoft DirectShow require aggregation of the DirectDraw interfaces. In particular, the video renderer passes out media samples that expose IDirectDrawand IDirectDrawSurface. This class and the CAggDrawSurfaceclass republish the methods of the DirectDraw class so that they can be aggregated.

Each member function in this class, with the exception of the constructor, SetDirectDraw, and NonDelegatingQueryInterface, simply calls the corresponding method on the IDirectDrawinterface with the parameters passed to it.

Protected Data Members

m_pDirectDraw DirectDraw object.

Member Functions

CAggDirectDraw Constructs a CAggDirectDrawobject.
SetDirectDraw Sets the DirectDraw object to be aggregated by this class.

Overridable Member Functions

NonDelegatingQueryInterface Retrieves an interface and increments the reference count.

Implemented IDirectDraw Methods

Compact Moves all the pieces of surface memory on the video card to a contiguous block to make the largest chunk of free memory available.
CreateClipper Creates a DirectDrawClipper object.
CreatePalette Creates a DirectDrawPalette object for this DirectDraw object.
CreateSurface Creates a DirectDrawSurface object for this DirectDraw object.
DuplicateSurface Duplicates a DirectDrawSurface object.
EnumDisplayModes Enumerates all the display modes the hardware exposes through the DirectDraw object that are compatible with a provided surface description.
EnumSurfaces Enumerates all the existing or possible surfaces that meet the search criterion specified.
FlipToGDISurface Makes the surface that GDI writes to the primary surface.
GetCaps Fills in the raw (not remaining) capabilities of the device driver (the hardware) and/or the Hardware Emulation Layer (HEL).
GetDisplayMode Retrieves the current display mode.
GetFourCCCodes Gets the FOURCCcodes supported by the DirectDraw object.
GetGDISurface Retrieves the DirectDrawSurface object that currently represents the surface memory that GDI treats as the primary surface.
GetMonitorFrequency Points to a DirectDrawSurface pointer that will be made to point to the DirectDrawSurface object currently controlling GDI's primary surface memory.
GetScanLine Retrieves the scan line that the monitor is currently updating to the display.
GetVerticalBlankStatus Retrieves the status of the vertical blank.
Initialize Initializes the DirectDraw object.
RestoreDisplayMode Resets the mode of the display device hardware for the primary surface to what it was before the SetDisplayModemethod was called.
SetCooperativeLevel Determines the top-level behavior of the application.
SetDisplayMode Sets the mode of the display device hardware.
WaitForVerticalBlank Helps the caller synchronize itself with the vertical blank interval.