Microsoft Windows CE 3.0  

Creating Overlay Surfaces

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.

Like all surfaces, you create an overlay surface by calling the IDirectDraw4::CreateSurfacemethod. To create an overlay, include the DDSCAPS_OVERLAY flag in the associated DDSCAPS2structure.

Overlay support varies widely across display devices. As a result, you cannot be sure that a given pixel format will be supported by most drivers and must therefore be prepared to work with a variety of pixel formats. You can request information about the non-RGB formats that a driver supports by calling the IDirectDraw4::GetFourCCCodesmethod.

When you attempt to create an overlay surface, it is advantageous to try creating a surface with the most desirable pixel format, falling back on other pixel formats if a given pixel format isn't supported.

You can create overlay surface flipping chains. For more information, see Creating Complex Surfaces and Flipping Chains.



 Last updated on Tuesday, May 18, 2004

© 2004 Microsoft Corporation. All rights reserved.