Document/View architecture support
BestView package comes with a special base class which is intended for
Document/View architecture support. The class, CBasePreviewView
is declared in two files: BasePreviewView.h and BasePreviewView.cpp
. Most of its functionality it inherits from the
CorePreviewCallbackWrapper class. The class is declared as:
namespace BESTVIEW
{
class CBasePreviewView : public CView, public BESTVIEW::CCorepreviewCallbackWrapper
{
public:
DECLARE_DYNCREATE(CBasePreviewView)
CBasePreviewView();
virtual ~CBasePreviewView();
BOOL PreCreateWindow(CREATESTRUCT&);
void OnSize(UINT,int,int);
int OnCreate(LPCREATESTRUCT);
BOOL OnEraseBkgnd(CDC *);
void InitCorePreview();
protected:
void OnDraw(CDC* pDC);
DECLARE_MESSAGE_MAP()
};
}
There is only function which is not inherited from MFC CView
class: void InitCorePreview(); This function just makes
DoInitCorePreview call of the CorePreviewCallbackWrapper
class.