⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vegaview.h

📁 MFC的vega驱动程序
💻 H
字号:
#if !defined(AFX_VEGAVIEW_H__B3F623FD_6EC4_4D46_8DCE_FEEE34BC5F8A__INCLUDED_)
#define AFX_VEGAVIEW_H__B3F623FD_6EC4_4D46_8DCE_FEEE34BC5F8A__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Vegaview.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// Vegaview view
#ifndef _ZSVEGAVIEW_H
#define _ZSVEGAVIEW_H


class vgWindow;
class vgGfx;
class vgChannel;
class vgObserver;
class vgScene;

class Vegaview : public CView
{
	BOOL		vegaInitted;
	BOOL		vegaDefined;
	BOOL		vegaConfiged;
	BOOL		continueRunning;
	CWinThread*	vegaThread;
protected:
	Vegaview();           // protected constructor used by dynamic creation
	DECLARE_DYNCREATE(Vegaview)
		vgWindow*	win;
	vgGfx*		gfx;
	vgChannel*	chan;
	vgObserver*	obs;
	vgScene*	scene;

// Attributes
public:

// Operations
public:
	virtual ~Vegaview();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif
BOOL		create( const RECT& rect, CWnd* parent );

	void		runVega( void );
	void		stopVega( void );

	void		pauseVega( void );
	void		unPauseVega( void );

	HWND		getSafeHwnd( void );

	BOOL		getContinueRunning( void ) const { return continueRunning; }

	BOOL		getVegaInitted( void ) const { return vegaInitted; }
	void		setVegaInitted( BOOL i ) { vegaInitted = i; }
	BOOL		getVegaDefined( void ) const { return vegaDefined; }
	void		setVegaDefined( BOOL i ) { vegaDefined = i; }
	BOOL		getVegaConfiged( void ) const { return vegaConfiged; }
	void		setVegaConfiged( BOOL i ) { vegaConfiged = i; }


	vgWindow*	getVGWin( void ) const { return win; }
	vgGfx*		getVGGfx( void ) const { return gfx; }
	vgChannel*	getVGChannel( void ) const { return chan; }
	vgObserver*	getVGObserver( void ) const { return obs; }
	vgScene*	getVGScene( void ) const { return scene; }

	void toggleGfx( int what );


	virtual const char*	getAdfName( void );

	virtual void	postInit( void );
	virtual void	postDefine( void );
	virtual void	postConfig( void );

	virtual void	postSync( void );
	virtual void	postFrame( void );
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(Vegaview)
	public:
	virtual void OnFinalRelease();
	protected:
	virtual void OnDraw(CDC* pDC);      // overridden to draw this view
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
protected:
	//{{AFX_MSG(Vegaview)
	afx_msg void OnSize(UINT nType, int cx, int cy);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
	// Generated OLE dispatch map functions
	//{{AFX_DISPATCH(Vegaview)
		// NOTE - the ClassWizard will add and remove member functions here.
	//}}AFX_DISPATCH
	DECLARE_DISPATCH_MAP()
	DECLARE_INTERFACE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_VEGAVIEW_H__B3F623FD_6EC4_4D46_8DCE_FEEE34BC5F8A__INCLUDED_)
#endif 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -