IFMDraw::ReleaseDC

This method releases the device context (DC).

Syntax

HRESULT ReleaseDC( OLE_HANDLE hDC );

Parameters

hDC
Handle to the DC to be released.

Return Values

NOERROR indicates success. If an error occurs, the appropriate HRESULT value is returned.

Remarks

This method fails if the DC is not one that was retrieved by a call to IFMDraw::GetDC. Every call to IFMDraw::GetDC must be matched by a call to IFMDraw::ReleaseDC.

See Also

IFMDraw::GetDC