Share via


CDynamicChain::CallChain

BOOL CallChain( DWORD dwChainID**, HWND** hWnd**, UINT** uMsg**, WPARAM** wParam**, LPARAM** lParam**, LRESULT&** lResult );

Return Value

TRUE if the message is fully processed; otherwise, FALSE.

Parameters

dwChainID

[in] The unique identifier associated with the chained object and its message map.

hWnd

[in] The handle to the window receiving the message.

uMsg

[in] The message sent to the window.

wParam

[in] Additional message-specific information.

lParam

[in] Additional message-specific information.

lResult

[out] The result of the message processing.

Remarks

Directs the Windows message to another object’s message map. In order for the window procedure to invoke CallChain, you must specify the CHAIN_MSG_MAP_DYNAMIC macro in your message map. For an example, see the CDynamicChain overview.

CallChain requires a previous call to SetChainEntry to associate the dwChainID value with an object and its message map.

CDynamicChain OverviewClass Members