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

📄 mainframe.h

📁 vc++网络程序设计实例详解 人民邮电出版社1-2章源码
💻 H
字号:
#ifndef MAINFRAME_H
#define MAINFRAME_H

#include <afxext.h>

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

class CRemoteAdminView;

class CMainFrame : public CFrameWnd
{
	DECLARE_DYNCREATE(CMainFrame)
    DECLARE_MESSAGE_MAP()
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMainFrame)
	public:
	virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	virtual void ActivateFrame(int nCmdShow = -1);
	//}}AFX_VIRTUAL

    afx_msg void OnAddMachine();
	afx_msg void OnDeleteMachine();
	
	virtual ~CMainFrame();
	CRemoteAdminView* GetRightPane();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:  
	CMainFrame(); // create from serialization only

	CStatusBar  m_wndStatusBar;
	CToolBar    m_wndToolBar;
	CReBar      m_wndReBar;
    BOOL        m_bWindowOnTop;
	

    // Commented by Prateek Kaul on May 21, 2003
    // Currently no dialog bar required
	//CDialogBar  m_wndDlgBar;
    CSplitterWnd m_wndSplitter;

	//{{AFX_MSG(CMainFrame)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnClose();
	afx_msg void OnSettingsTimers();
	afx_msg void OnWindowAlwaysOnTop();
    afx_msg void OnUpdateWindowAlwaysOnTop(CCmdUI* pCmdUI);
    afx_msg void OnUpdateViewStyles(CCmdUI* pCmdUI);
	//}}AFX_MSG
	afx_msg void OnViewStyle(UINT nCommandID);
};

#endif // MAINFRAME_H

⌨️ 快捷键说明

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