The IDXDCLock interface is used to lock a surface and to obtain a device context (DC) that can be used with Graphics Device Interface (GDI) calls. You can use IDXDCLock by calling the IDXSurface::LockSurface method and by specifying IID_IDXDCLock as the desired interface, or by calling the IDXSurface::LockSurfaceDC method. When the IDXDCLock interface is finally released, the underlying GDI DC will be released.
IDXDCLock can be used by any transform that enables you to specify the desired output bounds.
IDXDCLock Method
GetDC Retrieves the current DC.
Retrieves the current DC.
Syntax
HDC GetDC(void);
Return Value
Returns a handle to a device context.
Top of Page
© 2000 Microsoft and/or its suppliers. All rights reserved. Terms of Use.