Home|Download|Buy online|Affiliates|Search|Feedback|Site Map|ReviewsUse our online RSS & XML news feeds to get the latest news about our products delivered to your desktop... RSS feed    04.02.2012
Home»BestView preview library»SDK
Find out more how to use BestView...
Doc/View support

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()
	};

} // end namespace BESTVIEW	
		
		

There is only function which is not inherited from MFC CView class: void InitCorePreview(); This function just makes DoInitCorePreview call of the CorePreviewCallbackWrapper class.

Valid HTML 4.01 Transitional© PVL team, 2004-2012, all rights reserved. This Web site and its entire contents are for personal use only and may not be copied, reproduced, modified, published or distributed in any way,without PVL team's prior written permission.