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

📄 mainfrm.h

📁 个人电子图书管理系统.提供电子书的书名和其他信息.检查电子书信息的合法性(E-1) .为这本电子书生成 id.使用分类id
💻 H
字号:
// GUI/MainFrm.h : CMainFrame 类的接口
//


#pragma once
class CBookListView;
class CBookInfoView;
class CBookTreeView;

// CKingBookToolBar

class CKingBookToolBar : public CToolBar
{
	DECLARE_DYNAMIC(CKingBookToolBar)

public:
	CKingBookToolBar();
	virtual ~CKingBookToolBar();

protected:
	DECLARE_MESSAGE_MAP()
public:
    virtual BOOL CreateEx(CWnd* pParentWnd, DWORD dwCtrlStyle = TBSTYLE_FLAT, DWORD dwStyle = WS_CHILD | WS_VISIBLE | CBRS_ALIGN_TOP, CRect rcBorders = CRect(0, 0, 0, 0), UINT nID = AFX_IDW_TOOLBAR);
};


/// <summary>CMainFrame框架类</summary>
/// <remarks></remarks>
class CMainFrame : public CFrameWnd
{
	
protected: // 仅从序列化创建
	CMainFrame();
	DECLARE_DYNCREATE(CMainFrame)

// 属性
public:

// 操作
public:

// 重写
public:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);

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

protected:  // 控件条嵌入成员
    CStatusBar          m_wndStatusBar;
    CKingBookToolBar    m_wndToolBar;
    CReBar      m_wndReBar;


//    CToolBarCtrl        m_wndToolBarCtrl;

    // 分割视图
    CSplitterWnd    m_wndLeft;
    CSplitterWnd    m_wndRight;

    // 三个视图
    CBookListView*  m_pWndList;
    CBookInfoView*  m_pWndInfo;
    CBookTreeView*  m_pWndTree;

// 生成的消息映射函数
protected:
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	DECLARE_MESSAGE_MAP()
    virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
    //BOOL CreateToolBar();
public:
    afx_msg void OnUpdateDeleteBook(CCmdUI *pCmdUI);
    afx_msg void OnUpdateAddtoFavorite(CCmdUI *pCmdUI);
    afx_msg void OnUpdateAddBook(CCmdUI *pCmdUI);
    afx_msg void OnUpdateEditBook(CCmdUI *pCmdUI);
};







⌨️ 快捷键说明

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