mainfrm.h

来自「使用vc开发的个人信息管理系统」· C头文件 代码 · 共 110 行

H
110
字号
// MainFrm.h : interface of the CMainFrame class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_MAINFRM_H__51DF6648_473A_43AF_BE68_6BC3660F17D9__INCLUDED_)
#define AFX_MAINFRM_H__51DF6648_473A_43AF_BE68_6BC3660F17D9__INCLUDED_

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

//#include "DockPageBar.h"
#include "Checkout.h"
#include "TestBar.h"
#include "MyStatusBar.h"
#include "MYTreeCtrl.h"
#include "BookList.h"
#include "MyFolder.h"
#include <vector>

using namespace std;
extern CDotNETApp theApp;
extern vector<CMyFolder> MyNodes;

class CMyToolBar : public CToolBar
{
public:
	CEdit m_Edit;
};  
class CMainFrame : public CAutoHideFrame//CFrameWnd
{
	
protected: // create from serialization only
	CMainFrame();
	DECLARE_DYNCREATE(CMainFrame)

// Attributes
public:
	CMyToolBar		m_wndToolBar;
// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMainFrame)
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	//}}AFX_VIRTUAL

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

protected:  // control bar embedded members
	CMyStatusBar	m_wndStatusBar;

	MYTreeCtrl		m_wndTree;
	CTestBar		m_wndDockPageBar;
	CEdit           m_Edit;
	//CEdit			m_wndEdit;
	CComboListCtrl	m_ListCtrl;
	CTestBar		m_wndDockPageBar1;
	//CDockPageBar	m_wndDockPageBar;

// Generated message map functions
public:
	//{{AFX_MSG(CMainFrame)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnAddnode();
	afx_msg void OnUpdateAddnode(CCmdUI* pCmdUI);
	afx_msg void OnShowleftbar();
	afx_msg void OnUpdateShowleftbar(CCmdUI* pCmdUI);
	afx_msg void OnShowbottombar();
	afx_msg void OnUpdateShowbottombar(CCmdUI* pCmdUI);
	afx_msg void OnAddfiles();
	afx_msg void OnUpdateAddfiles(CCmdUI* pCmdUI);
	afx_msg void OnDeletenode();
	afx_msg void OnUpdateDeletenode(CCmdUI* pCmdUI);
	afx_msg void OnUpdatenode();
	afx_msg void OnUpdateUpdatenode(CCmdUI* pCmdUI);
	afx_msg void OnClose();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	void DeleteNodes(CMyFolder strNodeId);//递规删除节点
	CString MySetDate();//设置添加节点时间
	int CreateMyEditToolBar();//创建文字查询编辑空间,在工具栏上
	bool InitNodeFile(HTREEITEM hti,CString strReadNode);//递规调用显示节点
	HTREEITEM hti;
	CCheckout p_Checkout;
public:
	afx_msg void OnAddbookmark();
	afx_msg void OnUpdateAddbookmark(CCmdUI *pCmdUI);
	afx_msg void OnBookmanage();
	afx_msg void OnUpdateBookmanage(CCmdUI *pCmdUI);
	// 显示书签
	void ShowBookMark(void);
	afx_msg void OnConnction();
};

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

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

#endif // !defined(AFX_MAINFRM_H__51DF6648_473A_43AF_BE68_6BC3660F17D9__INCLUDED_)

⌨️ 快捷键说明

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