OnNSCWinEvent method

Dispatches a message to the object.

 

Syntax

HRESULT retVal = object.OnNSCWinEvent(hwnd, dwMsg, wParam, lParam, plres);

Parameters

  • hwnd [in]
    Type: HWND

    A handle to the window.

  • dwMsg [in]
    Type: UINT

    The message identifier.

  • wParam [in]
    Type: WPARAM

    Additional message information. The contents of this parameter depend on the value of dwMsg.

  • lParam [in]
    Type: LPARAM

    Additional message information. The contents of this parameter depend on the value of dwMsg.

  • plres [out]
    Type: LRESULT

    Address of LRESULT value that receives the result of processing the message.

Return value

Type: HRESULT

This method can return one of these values.

Return code Description
S_FALSE

The WindowProc Callback Function did not handle the message.

E_FAIL

The operation failed.

 

Remarks

The OnNSCWinEvent method dispatches messages to the WindowProc Callback Function of the embedded control. If the message is handled, this method returns S_OK and retrieves the message result in plres. If the message was not handled, this method returns S_FALSE.

See also

Reference

IsNSCWindowOwner

Other Resources

WindowProc Callback Function