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

📄 mainfrm.h

📁 一个源代码管理工具,支持悬浮框拖曳,后台数据库管理,代码高亮显示灯功能
💻 H
字号:
// MainFrm.h : interface of the CMainFrame class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_MAINFRM_H__CD39AAAA_8736_4BBA_A501_C995E153B285__INCLUDED_)
#define AFX_MAINFRM_H__CD39AAAA_8736_4BBA_A501_C995E153B285__INCLUDED_

#include "SIZECBAR.H"	// Added by ClassView
#include "CoolTabCtrl.h"	// Added by ClassView
#include "CoolTreeCtrl.h"
#include "CoolListCtrl.h"
#include "FloatDlg.h"	// Added by ClassView
#include "SelectDlg.h"	// Added by ClassView
#include "DbOperate.h"	// Added by ClassView
#include "Find.h"
#include "Replace1.h"
#include "TrayIcon.h"	// Added by ClassView

extern CString FileExp[];
//extern CTypedPtrArray<CString, CString> FileExp;
#define WM_ICON_NOTIFY WM_USER+10
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

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

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMainFrame)
	public:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
	//}}AFX_VIRTUAL

// Implementation
public:
//	CTypedPtrArray<CString,CString> FileExp;
	int m_nFileNum;
	CString *NewFileExp;//可以到如到库的文件类型
	BOOL m_bStyle;//表明标签控件方向是否朝上
	BOOL m_bCloseRe;//表明引起关闭的是否是系统图标
	BOOL m_bClose;//表明是否关闭到系统图标
	BOOL m_bMini;//表明是否最小化到系统图标
	BOOL m_bIcon;//表明是否显示系统栏图标
	CTrayIcon m_tIcon;
	BOOL m_bChange;//表明本对话框内容是否发生改变;true表示发生
	BOOL m_bdType;//false为外在文件,true为数据库文件
	CReplace * m_pReplaceDialog;
	CFind * m_pFindDialog;
	int ImportDir();
	int ImportFile();
	CImageList m_TreeImage;
	void AddSubDir(HTREEITEM hParent);
	int TakeDirDialog(CString &str);
	CDbOperate m_DbObject;
	void BrowseDir(CString strDir,CCoolTreeCtrl& m_wndTree,HTREEITEM hti);
	int m_NewFlag;//新建节点标记;0为子节点;1为同级节点
	int m_SelectFlag;//是否显示选择新建节点标记
	CSelectDlg SelectDlg;
	CFloatDlg *dlg;
	void SaveContext();
	CString m_strFileName;//当前文件名(包含完整路径)
	CCoolListCtrl m_wndList;
	CCoolTreeCtrl m_wndTree;
	CCoolTabCtrl m_TabCtrl;
	CCoolBar m_DownBar;
	CCoolBar m_LeftBar;
	_ConnectionPtr m_pConnection;
	virtual ~CMainFrame();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:  // control bar embedded members
	CStatusBar  m_wndStatusBar;
	CToolBar    m_wndToolBar;
	BOOL m_Fs;


// Generated message map functions
protected:
	//{{AFX_MSG(CMainFrame)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnClose();
	afx_msg void OnViewSet();
	afx_msg void OnFileOpen();
	afx_msg void OnFileMysave();
	afx_msg void OnViewList();
	afx_msg void OnUpdateViewList(CCmdUI* pCmdUI);
	afx_msg void OnViewFile();
	afx_msg void OnUpdateViewFile(CCmdUI* pCmdUI);
	afx_msg void OnDbView();
	afx_msg void OnTestGet();
	afx_msg void OnFileFileimport();
	afx_msg void OnFileNew();
	afx_msg void OnTestRead();
	afx_msg void OnFileDirimport();
	afx_msg void OnEditcut();
	afx_msg void OnEditundo();
	afx_msg void OnViewdo();
	afx_msg void OnEditcopy();
	afx_msg void OnEditpaste();
	afx_msg void OnEditSelectall();
	afx_msg void OnEditfind();
	afx_msg void OnEditrepeat();
	afx_msg void OnEditrepeatnext();
	afx_msg void OnEditselectall();
	afx_msg void OnEditreplace();
	afx_msg void OnFileMysaveAs();
	afx_msg void OnViewFloat();
	afx_msg void OnUpdateViewFloat(CCmdUI* pCmdUI);
	afx_msg void OnViewFont();
	afx_msg void OnShow();
	afx_msg void OnAppExit();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	int ReadConfigure();//读取配置
	int SaveConfigure();//保存配置
	LRESULT OnTrayNotification(WPARAM wParam,LPARAM lParam);
};

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

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

#endif // !defined(AFX_MAINFRM_H__CD39AAAA_8736_4BBA_A501_C995E153B285__INCLUDED_)

⌨️ 快捷键说明

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