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

📄 worksbar.h

📁 一个完整的编辑器的代码(很值得参考
💻 H
字号:

#ifndef __WORKSBAR_H__INCLUDED__
#define __WORKSBAR_H__INCLUDED__

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

#include "appbar.h"
#include "apptabc.h"
#include "explplg.h"
#include "prjtreec.h"

/////////////////////////////////////////////////////////////////////////////
// CWorkspaceBar window

#pragma warning ( disable : 4512 )
class CWorkspaceBar : public CAppBar
  {
    // Construction
public :
    CWorkspaceBar ();

    // Attributes
public :
    CAppTabCtrl m_wndTabCtrl;
    CExplorePlug *m_pwndExplorer;
    CProjectTreeCtrl *m_pwndProject;

protected :

    // Overridables
public :

    // Operations
public :
    bool IsExplorer ();
    bool CreateExplorer ();
    void DestroyExplorer ();
    bool ToggleExplorer ();
    bool IsProject ();
    bool CreateProject ();
    void DestroyProject ();
    bool ToggleProject ();
    void EmptyProject ();
    void PopulateProject ();

    // Overrides
    // ClassWizard generated virtual function overrides
    //{{AFX_VIRTUAL(CWorkspaceBar)
    //}}AFX_VIRTUAL
    virtual CString GetName ();

    // Implementation
public :
    virtual ~CWorkspaceBar ();

    // Generated message map functions
protected :
    //{{AFX_MSG(CWorkspaceBar)
    afx_msg int OnCreate (LPCREATESTRUCT lpCreateStruct);
    //}}AFX_MSG
    DECLARE_MESSAGE_MAP ()
  };
#pragma warning ( default : 4512 )

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

//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.

#endif // __WORKSBAR_H__INCLUDED__

⌨️ 快捷键说明

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