OnNSCWinEvent method
Dispatches a message to the object.
![]() |
Syntax
HRESULT retVal = object.OnNSCWinEvent(hwnd, dwMsg, wParam, lParam, plres);
Parameters
hwnd [in]
Type: HWNDA handle to the window.
dwMsg [in]
Type: UINTThe message identifier.
wParam [in]
Type: WPARAMAdditional message information. The contents of this parameter depend on the value of dwMsg.
lParam [in]
Type: LPARAMAdditional message information. The contents of this parameter depend on the value of dwMsg.
plres [out]
Type: LRESULTAddress 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
Other Resources