Important: |
---|
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. |
Applications use the methods of the IDirectDrawSurfaceinterface to create DirectDrawSurfaceobjects and work with system-level variables.
IDirectDraw::CreateSurfacewill return a fully supported IDirectDrawSurfaceinterface pointer.
You cannot obtain the IDirectDrawSurfaceinterface directly from CreateSurface; use the QueryInterfacemethod to retrieve it.
The methods of the IDirectDrawSurfaceinterface can be organized into the following groups:
Allocating memory |
|
|
|
Attaching surfaces |
|
Blitting |
|
|
|
|
|
Color keying |
|
|
|
Device capabilities |
|
Device contexts |
|
|
|
Flipping |
|
|
|
Locking surfaces |
|
|
|
Miscellaneous |
|
Overlays |
|
|
|
|
|
|
|
|
|
Surface clipper |
|
|
|
Surface characteristics |
|
|
|
Surface palettes |
|
|
The IDirectDrawSurfaceinterface, like all COM interfaces, inherits the IUnknowninterface methods.
The IUnknowninterface supports the following three methods:
IUnknown |
|
|
|
|
You can use the LPDIRECTDRAWSURFACEdata type to declare variables that point to various DirectDrawSurfaceobject interfaces.
The Ddraw.h header file declares this data type with the following code.
Copy Code | |
---|---|
typedef struct IDirectDrawSurface FAR *LPDIRECTDRAWSURFACE; |
Requirements
Header | ddraw.h |
Library | ddraw.lib |
Windows Embedded CE | Windows Embedded CE 6.0 and later |
Windows Mobile | Pocket PC for Windows Mobile Version 5.0 and later, Smartphone for Windows Mobile Version 5.0 and later |