Microsoft Windows CE 3.0  

Positioning 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.

After initially displaying an overlay by calling the IDirectDrawSurface5::UpdateOverlaymethod, you can update the destination rectangle's by calling the IDirectDrawSurface5::SetOverlayPositionmethod.

Make sure that the positions you specify comply with any boundary alignment restrictions enforced by the hardware. For more information, see Boundary and Size Alignment. Also remember that SetOverlayPositiondoesn't perform clipping for you; using coordinates that would potentially make the overlay run off the edge of the target surface will cause the method to fail, returning DDERR_INVALIDPOSITION.



 Last updated on Tuesday, May 18, 2004

© 2004 Microsoft Corporation. All rights reserved.