IOleInPlaceSiteWindowless::ReleaseDC

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

HRESULT ReleaseDC(
  HDC hDC   //Device context to be released
);
 

Parameters

hDC
[in] Specifies the device context to be released.

Return Values

S_OK
The device context was successfully released.

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 ReleaseDC.

QuickInfo

  Windows NT: Use version 4.0 or later. New for OC96.
  Windows: Use Windows 95 or later. New for OC96.
  Windows CE: Unsupported.
  Header: Declared in ocidl.h.

See Also

IOleInPlaceSiteWindowless::GetDC