DDGPESurf::SetDirectDrawSurface (Windows CE 5.0)
This method associates the specified DirectDraw surface with the current DDGPESurf object.
virtual void SetDirectDrawSurface(LPDDRAWI_DDRAWSURFACE_LCLlpDDSurface);
Parameters
- lpDDSurface
A pointer to an existing DirectDraw surface. The DirectDraw surface is associated with the current GPE surface. Any existing DirectDraw surface associated with this surface is replaced. The driver is responsible for managing surfaces replaced in this manner.
Return Values
The return value is S_OK if the method is successful. Otherwise, an error code is returned.
Remarks
Use this method to associate a known DirectDraw surface with a known DDGPESurf object, after setting up each of them to be complete surfaces referencing bits at the same memory location. This method associates the two structures, but does not adjust memory locations or any other elements of them.
Requirements
OS Versions: Windows CE 2.12 and later. Version 2.12 requires DXPAK 1.0 or later.
Header: Ddgpe.h.
Link Library: Ddgpe.lib.
See Also
DDGPESurf Class | DDGPESurf Class Definition
Send Feedback on this topic to the authors