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

📄 mainfrm.h

📁 混乱竞技场的全套代码,客户端资源可以网上搜
💻 H
字号:
// MainFrm.h : interface of the CMainFrame class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_MAINFRM_H__4A5511B0_170B_4D7D_BF4A_B9A1683356C7__INCLUDED_)
#define AFX_MAINFRM_H__4A5511B0_170B_4D7D_BF4A_B9A1683356C7__INCLUDED_

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

#include "WizardWnd.h"

#include "DialogToolsBar.h"

#include "WorkSpace.h"
#include "LSTViewFolder.h"
#include "myhelper.h"

#define		ID_TOOLBAR_GENERAL		AFX_IDW_TOOLBAR
#define		ID_TOOLBAR_LIST_VIEW	AFX_IDW_TOOLBAR+5
#define		ID_TOOLBAR_ANIMATION	AFX_IDW_TOOLBAR+6
#define		ID_TOOLBAR_MAP			AFX_IDW_TOOLBAR+7

class CMainFrame : public SECFrameWnd
{
	
public:
	CMainFrame();
protected: 
	DECLARE_DYNAMIC(CMainFrame)

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMainFrame)
	public:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	virtual BOOL OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo);
	protected:
	virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
	//}}AFX_VIRTUAL

// Implementation
public:
	void ResetState();
	BOOL IsWorkspaceValid();
	void UpdateTitle();
	VOID InitWorkSpace();
	virtual ~CMainFrame();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:  // control bar embedded members
	UINT*	m_pDefButtonGroup;	// toolbar default button group
	UINT	m_nDefButtonCount;	// the number of elements in m_pDefaultButtons
	UINT*	m_pLVButtonGroup;	
	UINT	m_nLVButtonCount;	
	SECStatusBar  m_wndStatusBar;
	CWizardWnd m_wndDock;
	CWorkSpace    m_wndView;

	CMyHelper helper;

	// Advanced Docking Windows Participants
	SECLayoutDockFactory m_LFactory;
	SECFrameDockingFeature m_dockFeat;
	void InitAdvDocking();
	CDialog m_wndDockDlg1;
	// Cached value for show/hide toggle
	SECLayoutNode* m_pDock1;

// Generated message map functions
protected:
	VOID _OpenFile(LPCSTR strFile);
	//{{AFX_MSG(CMainFrame)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnSetFocus(CWnd *pOldWnd);
	afx_msg void OnViewManager();
	afx_msg void OnUpdateViewManager(CCmdUI* pCmdUI);
	afx_msg void OnFileOpen();
	afx_msg void OnFileSave();
	afx_msg void OnFileSaveAs();
	afx_msg void OnManagerNew();
	afx_msg void OnFileClose();
	afx_msg void OnUpdateFileClose(CCmdUI* pCmdUI);
	afx_msg void OnUpdateFileSave(CCmdUI* pCmdUI);
	afx_msg void OnUpdateFileSaveAs(CCmdUI* pCmdUI);
	afx_msg void OnUpdateManagerNew(CCmdUI* pCmdUI);
	afx_msg void OnUpdateManagerDelete(CCmdUI* pCmdUI);
	afx_msg void OnFileNew();
	afx_msg void OnUpdateFileNew(CCmdUI* pCmdUI);
	afx_msg void OnManagerImport();
	afx_msg void OnUpdateManagerImport(CCmdUI* pCmdUI);
	afx_msg void OnUpdateManagerExport(CCmdUI* pCmdUI);
	afx_msg void OnViewEditTools();
	afx_msg void OnUpdateViewEditTools(CCmdUI* pCmdUI);		// NOTE - the ClassWizard will add and remove member functions here.
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnHelper();
	afx_msg void OnUpdateHelper(CCmdUI* pCmdUI);
	afx_msg void OnSetBkColor();
	afx_msg void OnUpdateSetBkColor(CCmdUI* pCmdUI);
	afx_msg void OnSetBkTexture();
	afx_msg void OnUpdateSetBkTexture(CCmdUI* pCmdUI);
	afx_msg void OnUpdateRunConfig(CCmdUI* pCmdUI);
	afx_msg void OnRunConfig();
	afx_msg void OnUpdateShowFps(CCmdUI* pCmdUI);
	afx_msg void OnShowFps();
	afx_msg void OnManagerExport();
	afx_msg void OnChangeFormat();
	afx_msg void OnUpdateChangeFormat(CCmdUI* pCmdUI);
	afx_msg void OnDropFiles(HDROP hDropInfo);
	//}}AFX_MSG
	void OnToolsCustomize() ;
	DECLARE_MESSAGE_MAP()
};

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

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MAINFRM_H__4A5511B0_170B_4D7D_BF4A_B9A1683356C7__INCLUDED_)

⌨️ 快捷键说明

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