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

📄 apptabc.h

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

#ifndef __APPTABC_H__INCLUDED__
#define __APPTABC_H__INCLUDED__

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

#include "sizetabc.h"
#include "orderer.h"

/////////////////////////////////////////////////////////////////////////////
// CAppTabCtrl window

#pragma warning ( disable : 4512 )
class CAppTabCtrl : public CSizedTabCtrl, public COrderer
  {
    // Construction
public :
    CAppTabCtrl ();

    // Attributes
protected :
    // CButton m_butBottom;

    // Operations
public :
    void GetTabItemOffsets (LPRECT rect);
    CWnd *GetTabWnd (int nTab);
    HWND GetTabWndHandle (int nTab);
    int GetTabWndId (CWnd *pWnd);
    int GetTabWndId (HWND hWnd);
    void ShowSelTabWnd ();
    int AddTabItem (int nId, LPCTSTR lpszTitle, HWND hChild);
    void RemoveTabItem (int nNumber);
    void RemoveTabItem (CWnd *pWnd);
    void RemoveTabItem (HWND hWnd);

    // Overrides
    // ClassWizard generated virtual function overrides
    //{{AFX_VIRTUAL(CAppTabCtrl)
    //}}AFX_VIRTUAL

    // Implementation
public :
    virtual ~CAppTabCtrl ();

    // Generated message map functions
protected :
    //{{AFX_MSG(CAppTabCtrl)
    afx_msg int OnCreate (LPCREATESTRUCT lpCreateStruct);
    afx_msg void OnSize (UINT nType, int cx, int cy);
    afx_msg void OnDestroy ();
    afx_msg void OnTabChanged (NMHDR * pNotifyStruct, LRESULT * result);
    //}}AFX_MSG
    DECLARE_MESSAGE_MAP ()
  };

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

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

#endif // __APPTABC_H__INCLUDED__

⌨️ 快捷键说明

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