CGXPluginComponent::Plugin
virtual BOOL PlugIn(CWnd* pParentWnd);
pParentWnd
Pointer to the parent window.
Return Value
Nonzero if method was successful; otherwise 0.
Remarks
Call this method to attach the component to a window object. The method assigns the windows handle to the plug-in component's m_hWnd attribute.
Example
This example shows how to call Plugin from OnInitialUpdate:
// m_pPlugin is declared as
// CGXPluginComponent* m_pPlugin;
//
void CMyView::OnInitialUpdate()
{
m_pPlugin = new CGXIntelliMousePlugin;
m_pPlugin->PlugIn(this);
CScrollView::OnInitialUpdate();
CSize sizeTotal;
sizeTotal.cx = sizeTotal.cy = 15000;
SetScrollSizes(MM_TEXT, sizeTotal);
}