📄 mainfrm.h
字号:
// MainFrm.h : interface of the CMainFrame class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_MAINFRM_H__C3455E3B_7FBF_11D2_929A_0080C8E7F1DB__INCLUDED_)
#define AFX_MAINFRM_H__C3455E3B_7FBF_11D2_929A_0080C8E7F1DB__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "DetailView.h"
#include "GfxSplitterWnd.h"
#include "Common/GfxOutBarCtrl.h"
#include "Common/XStatusBar.h"
#include "Common/FlatButton.h"
#include "Common/CoolMenu.h"
class CMainFrame : public CFrameWnd
{
public:
CMainFrame();
protected:
DECLARE_DYNAMIC(CMainFrame)
// Attributes
public:
CCoolMenuManager m_menuManager; // manages button menus
// Operations
public:
class CMainToolBar; //nested class
// 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 BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
//}}AFX_VIRTUAL
// Implementation
public:
void EnableSwitchButton(BOOL);
void UpdateBarStatus(WPARAM wParam, LPARAM lParam);
void SetCurrentFolder(CString& str);
void DoSwitch(BOOL bShow);
long OnOutbarNotify(WPARAM wParam, LPARAM lParam);
void AddFolderToBar(CString str);
void AddDriveToBar(CString str, int nImage);
void UpdateShortCutBar();
void OnOptionChanged();
//void ReCreateViews();
virtual ~CMainFrame();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected: // control bar embedded members
XStatusBar m_wndStatusBar;
CFlatButton m_wndSwitchButton;
CToolBarEx m_wndToolBar;
CDetailView* m_pwndView;
CGfxSplitterWnd m_wndSplitterVer;
CStringList m_listShortcut;
CGfxOutBarCtrl m_wndBar;
CImageList m_imaLarge;
//int m_nViewType; // 0=Single view, 1=Double hor 2=Double ver
// Generated message map functions
protected:
//{{AFX_MSG(CMainFrame)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnSetFocus(CWnd *pOldWnd);
afx_msg void OnClose();
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnPaint();
afx_msg void OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI);
afx_msg void OnWebSafeclean();
afx_msg void OnEMail();
afx_msg void OnHelpHelp();
afx_msg void OnRegwizard();
//}}AFX_MSG
/*afx_msg void OnSingleView();
afx_msg void OnUpdateSingleView(CCmdUI* pCmdUI);
afx_msg void OnTwoViewHor();
afx_msg void OnUpdateTwoViewHor(CCmdUI* pCmdUI);
afx_msg void OnTwoViewVer();
afx_msg void OnUpdateTwoViewVer(CCmdUI* pCmdUI);*/
void OnScanProgressNotify(WPARAM wParam, LPARAM lParam);
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MAINFRM_H__C3455E3B_7FBF_11D2_929A_0080C8E7F1DB__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -