I have a fairly simple MFC app that just defines its own sub-classes of CDocument
, CView
and CFrameWnd
and uses them via a CSingleDocTemplate
to display the read-only contents of the document in a tree on the view. All very standard MFC MVC.
I now need to convert this app so that it works as an ActiveX control that I can then embed it within a larger application.
How should I go about this?
Is it possible to use the COleControl
sub-class in place of the CFrameWnd
sub-class in the CSingleDocTemplate
? Or do I need to place the CFrameWnd
sub-class within the COleControl
some how?
Failing that, how can I use my existing CDocument\CView
sub-classes within an ActiveX control?