IASClassMsgSink::HandleMessage

This method enables a control to notify its sink when a message is received.

Syntax

HRESULT HandleMessage( IDispatch *pdispControl, long uMsg, long wParam, long lParam );

Parameters

pdispControl
Pointer to the control that is calling the method.
uMsg
Specifies the message to process.
wParam
Long integer that contains the wParam of the message.
lParam
Long integer that contains the lParam of the message.

Return Values

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

Remarks

A control invokes this method when its own IASControl::ReceiveMsg method is invoked.

See Also

IASControl::ReceiveMsg