IOleInPlaceSiteWindowless::ReleaseDC method (ocidl.h)

Releases the device context previously obtained by a call to IOleInPlaceSiteWindowless::GetDC.

Syntax

HRESULT ReleaseDC(
  [in] HDC hDC
);

Parameters

[in] hDC

The device context to be released.

Return value

This method returns S_OK on success.

Remarks

An object calls this method to notify its container that the object is done with the device context. If the device context was used for drawing, the container should ensure that all overlapping objects are repainted correctly. If the device context was an offscreen device context, its content should also be copied to the screen in the rectangle originally passed to IOleInPlaceSiteWindowless::GetDC. See IOleInPlaceSiteWindowless::GetDC for implementation notes relevant to IOleInPlaceSiteWindowless::ReleaseDC.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header ocidl.h

See also

IOleInPlaceSiteWindowless

IOleInPlaceSiteWindowless::GetDC