.NET
mfcplug.txt
Associated article: Plug-In Components for MFC
Tags: .NET
Published source code accompanying the article by Stefan Hoenig in which he presents a technique for encapsulating user actions into separate objects that support MFC message maps. Also see MFCPLUG.ZIP.
Plug-In Components for MFC
by Stefan Hoenig
Listing One
void CMyView::OnMouseMove(UINT nFlags, CPoint point)
{
// forward this event to an attached object
m_pObject->OnMouseMove(nFlags, point);
CView::OnMouseMove(nFlags, point);
}
Listing Two
void CUserActionComponent::HandleMessage(UINT nMessage, ...


