tabsheetview.h

来自「电脑编程技巧和源码。很不错的。」· C头文件 代码 · 共 81 行

H
81
字号
// MyTabDemoView.h : interface of the CTabSheetView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_MYTABDEMOVIEW_H__314EA45D_C89A_11D3_B1F0_00104B13D514__INCLUDED_)
#define AFX_MYTABDEMOVIEW_H__314EA45D_C89A_11D3_B1F0_00104B13D514__INCLUDED_

#include "SHEETSWND.H"	// Added by ClassView
#include <afxtempl.h>

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000


#define WM_TABCHANGED WM_USER+1


class CTabSheetView : public CView
{
protected: // create from serialization only
	CTabSheetView();
	DECLARE_DYNCREATE(CTabSheetView)

// Attributes
public:
	CTabSheetDoc* GetDocument();
    BOOL AddView(LPCTSTR lpszLabel, CRuntimeClass *pViewClass, CCreateContext *pContext);

	//-------------------------------------------
    void OnTabChanged(LPVOID pParam);
	//-------------------------------------------

// Operations
public:

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

	//}}AFX_VIRTUAL

// Implementation
public:
	BOOL m_bIsFirstView;
	CView * m_pActiveView;
	unsigned char m_ucViewNo;
	CSheetsWnd m_Sheet;
	virtual ~CTabSheetView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CTabSheetView)
		// NOTE - the ClassWizard will add and remove member functions here.
		//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in MyTabDemoView.cpp
inline CTabSheetDoc* CTabSheetView::GetDocument()
   { return (CTabSheetDoc*)m_pDocument; }
#endif

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

//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MYTABDEMOVIEW_H__314EA45D_C89A_11D3_B1F0_00104B13D514__INCLUDED_)

⌨️ 快捷键说明

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