mainframe.h

来自「TransferFiles_demo对话框程序」· C头文件 代码 · 共 63 行

H
63
字号
#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 + =
减小字号Ctrl + -
显示快捷键?