IASControl::Draw

This method repaints the form.

Syntax

HRESULT Draw( OLE_HANDLE hDC );

Parameters

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

Return Values

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

Remarks

This method is usually invoked by the form when some portion of the form has been invalidated, and the screen needs to be repainted. When this method is invoked, it finishes any drawing necessary in the device context that the method receives. The method then returns control to the form, which handles the actual screen repainting.

If a message sink exists, this method forwards the call to the IASClassMsgSink::Draw method.

See Also

IFMDraw::Commit, IFMDraw::ClipAndCommit, IFMDraw::GetDC, IASClassMsgSink::HandleDraw