IFMDraw::ClipAndCommit

This method takes a clipping region and blits that portion of the offscreen bitmap to the screen.

Syntax

HRESULT ClipAndCommit( OLE_HANDLE hDC, OLE_HANDLE hRgnClip );

Parameters

hDC
Handle to the screen device context (DC), as returned by IFMDraw::GetDC.
hRgnClip
Handle to a clipping region.

Return Values

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

Remarks

The form must have focus for blitting to take place. If not, no errors are generated, but the image does not appear on the screen. This method fails if the DC passed to the method is not the one returned by a previous call to IFMDraw::GetDC. It also fails if the DC has been released by IFMDraw::ReleaseDC.

See Also

IFMDraw::GetDC, IFMDraw::Commit, IFMDraw::ReleaseDC