CGXPluginComponent::HandleMessage
BOOL HandleMessage(UINT message, WPARAM wParam, LPARAM lParam, LRESULT* pResult);
message
Specifies the Windows message to be processed.
wParam
Provides additional information used in processing the message. The parameter value depends on the message.
lParam
Provides additional information used in processing the message. The parameter value depends on the message.
pResult
The return value of WindowProc. Depends on the message; may be NULL.
Return Value
Nonzero if message was handled; otherwise 0.
Remarks
Call this method from the WindowProc method of the parent window. HandleMessage will dispatch the window message and call the correct message handler in the plug-in component using the MFC message map mechanism.
Example
This example shows how to override WindowProc in your parent window and call HandleMessage:
LRESULT CMyView::WindowProc(UINT message, WPARAM wParam, LPARAM lParam)
{
if (m_pPlugin)
{
LRESULT lResult;
m_pPlugin->HandleMessage(message, wParam, lParam, &lResult);
if (m_pPlugin->m_bExitMesssage)
return lResult;
}
return CScrollView::WindowProc(message, wParam, lParam);
}