viewmanview.h

来自「波子浏览器」· C头文件 代码 · 共 67 行

H
67
字号
#if !defined(AFX_VIEWMANVIEW_H__9047A36C_E8D3_403F_BA4D_3BF8CA17A965__INCLUDED_)
#define AFX_VIEWMANVIEW_H__9047A36C_E8D3_403F_BA4D_3BF8CA17A965__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CViewManView view

class CViewManView : public CView
{
protected:
	CViewManView();           // protected constructor used by dynamic creation
	DECLARE_DYNCREATE(CViewManView)

// Attributes
public:

// Operations
public:
	CView* GetActiveView();
	BOOL SetActiveView(int nView);
	int GetViewCount();
	CView* AddView(CRuntimeClass *pViewClass);
	BOOL DeleteView(int nIndex);
	BOOL CreateView(CRuntimeClass *pViewClass);

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CViewManView)
	protected:
	virtual void OnDraw(CDC* pDC);      // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	//}}AFX_VIRTUAL

// Implementation
protected:
	virtual ~CViewManView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

	// Generated message map functions
protected:
	//{{AFX_MSG(CViewManView)
	afx_msg void OnSize(UINT nType, int cx, int cy);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
protected:
	void RemoveListItem(POSITION pos);
	CView* m_pNewView;
	CView* m_pActiveView;
	CList <CView*,CView*> m_viewList;
	int m_nActiveView;
};

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

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

#endif // !defined(AFX_VIEWMANVIEW_H__9047A36C_E8D3_403F_BA4D_3BF8CA17A965__INCLUDED_)

⌨️ 快捷键说明

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