IOleInPlaceSiteWindowless::ReleaseDC method

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

Syntax


HRESULT ReleaseDC(
  [in] HDC hDC
);

Parameters

hDC [in]

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

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

OCIdl.h

IDL

OCIdl.idl

IID

IID_IOleInPlaceSiteWindowless is defined as 922EADA0-3424-11CF-B670-00AA004CD6D8

See also

IOleInPlaceSiteWindowless
IOleInPlaceSiteWindowless::GetDC

 

 

Show: