GetDC
Applies to

TDirectDrawSurface

Declaration

function GetDC( var DeviceContext: HDC ): Boolean;

Description

Calls the interface GetDC method to create a GDI-compatible HDC for the surface. Returns False if it gets a DDERR_WASSTILLDRAWING error code or True if it succeds (DD_OK). See IDirectDrawSurface3::GetDC for more information.

See also Lock and ReleaseDC.