IASClassMsgSink::HandleClose

This method enables a control to notify its sink when a form closes the control.

Syntax

HRESULT HandleClose( IDispatch *pdispControl );

Parameters

pdispControl
Pointer to the control that is calling the method.

Return Values

NOERROR indicates that the sink handled the message to close the control. S_FALSE indicates that the sink did not handle the message to close the control. If an error occurs, the appropriate HRESULT value is returned.

Remarks

A control invokes this method when its own IASControl::Close method is invoked. This takes place when a form shuts down a control. Processing subsequently stops and any needed shutdown procedures are performed.

See Also

IASControl::Close, IASClassMsgSink::HandleStart