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

📄 gridfrms.h

📁 mfc internals 源码 mfc internals 源码
💻 H
字号:
// gridfrms.h : header file
//

// This is a part of the Objective Grid C++ Library.
// Copyright (C) 1995 ClassWorks, Stefan Hoenig.
// All rights reserved.
//
// This source code is only intended as a supplement to
// the Objective Grid Classes Reference and related
// electronic documentation provided with the library.
// See these sources for detailed information regarding
// the Objective Grid product.
//

#ifndef _GRIDFRMS_H_
#define _GRIDFRMS_H_

/////////////////////////////////////////////////////////////////////////////
// CMyMultiDocTemplate Template

// this derived class allows me to change the view class at runtime,
// which is usable for creating dynamic spliiter views based on the
// current ciew class.

class CMyMultiDocTemplate: public CMultiDocTemplate
{
public:
	CMyMultiDocTemplate(UINT nIDResource, CRuntimeClass* pDocClass,
		CRuntimeClass* pFrameClass, CRuntimeClass* pViewClass)
		: CMultiDocTemplate(nIDResource, pDocClass, pFrameClass, pViewClass)
		{ }

	// need access to the m_pViewClass member
	void SetViewClass(CRuntimeClass* pViewClass)
	{
		m_pViewClass = pViewClass;
	}
};

/////////////////////////////////////////////////////////////////////////////
// CSplitterMDIChildWnd frame

class CSplitterMDIChildWnd : public CMDIChildWnd
{
	DECLARE_DYNCREATE(CSplitterMDIChildWnd)
protected:
	CSplitterMDIChildWnd();            // protected constructor used by dynamic creation

// Attributes
public:
	CSplitterWnd
			m_wndSplitter;

// Operations
public:

// Implementation
protected:
	virtual ~CSplitterMDIChildWnd();
	virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);

	// Generated message map functions
	//{{AFX_MSG(CSplitterMDIChildWnd)
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#endif // _GRIDFRMS_H_
/////////////////////////////////////////////////////////////////////////////

⌨️ 快捷键说明

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