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.
See Also