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

📄 mainfrm.h

📁 类似Linux操作系统0.11版文件系统的文件系统设计和Windows下的操作程序
💻 H
字号:
// MainFrm.h : interface of the CMainFrame class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_MAINFRM_H__9D907276_5C73_4B62_A824_6E2EF45A3300__INCLUDED_)
#define AFX_MAINFRM_H__9D907276_5C73_4B62_A824_6E2EF45A3300__INCLUDED_

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

class CSplitterWndEx : public CXTSplitterWnd
{
public:
	CSplitterWndEx()
	{
		m_cyBorder = m_cxBorder = 2;
		m_cxSplitter = m_cySplitter = 4;
		m_cySplitterGap = m_cxSplitterGap = 4;
		m_cxBorderShare = m_cyBorderShare = 0;
		m_bFlatSplit = TRUE;
		m_dwxStyle = XT_SPLIT_NOFULLDRAG|XT_SPLIT_NOBORDER;
		m_bFullDrag = FALSE;
	}
};


#include "ShortcutPaneFolders.h"
#include "ShortcutPaneSystemInfo.h"
#include "ShortcutPaneBlocksInfo.h"

class CSystemInfoView;
class CBlockInfoView;
class CULExplorerView;

class CMainFrame : public CXTPFrameWnd
{
public:
	CMainFrame();
protected: // create from serialization only

	DECLARE_DYNCREATE(CMainFrame)

// Attributes
public:
	CSplitterWndEx m_wndSplitter;

	CXTPShortcutBar m_wndShortcutBar;

	CImageList m_ilSmallShortcuts;
	CImageList m_ilLargeShortcuts;

	BOOL m_bClientPane;

	CShortcutPaneFolders m_paneFolders;
	CShortcutPaneSystemInfo m_paneSystemInfo;
	CShortcutPaneBlocksInfo m_paneBlocksInfo;

	// 
	CULExplorerView* m_pFoldersView;
	CBlockInfoView* m_pBlocksInfoView;
	CSystemInfoView* m_pSystemInfoView;

	CString m_strCurPath;
// Operations
public:
	void CreateShortcutBar();

	CString GetCurPath();
	int SetCurPath(CString Path);

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMainFrame)
	public:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CMainFrame();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:  // control bar embedded members
	CXTPStatusBar  m_wndStatusBar;
	CBitmap m_BtnBitmap;
	BOOL m_bAddressBarLoaded;

// Generated message map functions
protected:
	//{{AFX_MSG(CMainFrame)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnThemeOffice2000();
	afx_msg void OnUpdateThemeOffice2000(CCmdUI* pCmdUI);
	afx_msg void OnThemeOfficexp();
	afx_msg void OnUpdateThemeOfficexp(CCmdUI* pCmdUI);
	afx_msg void OnThemeOffice2003();
	afx_msg void OnUpdateThemeOffice2003(CCmdUI* pCmdUI);
	afx_msg void OnThemeNativexp();
	afx_msg void OnUpdateThemeNativexp(CCmdUI* pCmdUI);
	afx_msg void OnClose();
	//afx_msg void OnThemeClientpane();
	afx_msg void OnGotoBtn();
	afx_msg void OnUpdateThemeClientpane(CCmdUI* pCmdUI);
	//////////////////////////////////////////////////////////////////////////
	afx_msg void OnLoadVDisk();
	afx_msg void OnUnLoadVDisk();
	afx_msg void OnDentryUp();
	afx_msg void OnDelete();
	afx_msg void OnSecurity();

	//}}AFX_MSG
	//afx_msg void OnCustomize();
	afx_msg LRESULT OnShortcutBarNotify(WPARAM wParam, LPARAM lParam);
	afx_msg void OnAddressBarEnter(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg int OnCreateControl(LPCREATECONTROLSTRUCT lpCreateControl);
	afx_msg void OnSize(UINT nType, int cx, int cy);


	int OpenFile(CString strPath);
	void SwitchToFoldersView();
	void SwitchToSystemInfoView();
	void SwitchToBlockInfoView();

 	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnCreateVdisk();
	afx_msg void OnGetMinMaxInfo(MINMAXINFO* lpMMI);
	afx_msg void OnHelpChm();
};

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

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

#endif // !defined(AFX_MAINFRM_H__9D907276_5C73_4B62_A824_6E2EF45A3300__INCLUDED_)

⌨️ 快捷键说明

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