mainfrm.h

来自「《面向对象程序设计实用教程》一书的源码」· C头文件 代码 · 共 79 行

H
79
字号
// MainFrm.h : interface of the CMainFrame class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_MAINFRM_H__D9F73F4A_313A_11D3_A324_DC37BD699B39__INCLUDED_)
#define AFX_MAINFRM_H__D9F73F4A_313A_11D3_A324_DC37BD699B39__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
#include "mySplitterwnd.h"
class CMainFrame : public CFrameWnd
{
protected: // create from serialization only
	CMainFrame();
	DECLARE_DYNCREATE(CMainFrame)

// Attributes
public:

// Operations
public:
		CDialogBar m_wndMyDialogBar;
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMainFrame)
	public:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	//}}AFX_VIRTUAL

// Implementation
public:
	CDialogBar& GetDlgBar();
	BOOL m_standardstretchKey;
	BOOL m_HVstretchKey;
	bool m_standard;
	CString Strbil;
	CString m_strhvbil;
	int m_hvbil;
	virtual ~CMainFrame();
protected:
	WINDOWPLACEMENT m_Oldwndpl;
	BOOL m_bFullScreen;
	CRect m_FullScreenRect;
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:  // control bar embedded members
	CStatusBar  m_wndStatusBar;
	CToolBar    m_wndToolBar;

// Generated message map functions
protected:
	CmySplitterwnd m_wndSplitter;
	virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
	//CDialogBar m_wndMyDialogBar;
	//{{AFX_MSG(CMainFrame)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnViewFullscr();
	afx_msg void OnViewStandard();
	afx_msg void OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI);
	afx_msg void OnTdbar();
	afx_msg void OnUpdateTdbar(CCmdUI* pCmdUI);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
public:
	bool dtKey;
	void DockControlBarLeftOf(CDialogBar* Bar,CToolBar* LeftOf);
};

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

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

#endif // !defined(AFX_MAINFRM_H__D9F73F4A_313A_11D3_A324_DC37BD699B39__INCLUDED_)

⌨️ 快捷键说明

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