IFMDraw::Commit

This method blits the entire offscreen bitmap to the screen.

Syntax

HRESULT Commit( OLE_HANDLE hDC );

Parameters

hDC
Handle to a device context (DC), as returned by IFMDraw::GetDC.

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::ClipAndCommit, IFMDraw::ReleaseDC