Surfaces and Device Contexts
It is often convenient to mix-and-match DirectDraw and GDI services to manipulate the contents of DirectDraw surfaces. DirectDraw offers methods to enable GDI to access DirectDraw surfaces through device contexts, and to retrieve a surface given the surface's device context.
The following topics describe this functionality in detail:
Send Feedback on this topic to the authors