📄 bcgptabview.h
字号:
//*******************************************************************************
// COPYRIGHT NOTES
// ---------------
// This is a part of the BCGControlBar Library
// Copyright (C) 1998-2000 BCGSoft Ltd.
// All rights reserved.
//
// This source code can be used, distributed or modified
// only under terms and conditions
// of the accompanying license agreement.
//*******************************************************************************
#if !defined(AFX_BCGPTABVIEW_H__78A92E9C_04DB_11D5_95C8_00A0C9289F1B__INCLUDED_)
#define AFX_BCGPTABVIEW_H__78A92E9C_04DB_11D5_95C8_00A0C9289F1B__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// BCGTabView.h : header file
//
#ifndef BCG_NO_TABCTRL
#include "BCGCBPro.h"
#include "BCGPTabWnd.h"
/////////////////////////////////////////////////////////////////////////////
// CBCGPTabView view
class BCGCBPRODLLEXPORT CBCGPTabView : public CView
{
protected:
CBCGPTabView(); // protected constructor used by dynamic creation
DECLARE_DYNCREATE(CBCGPTabView)
// Attributes
public:
CBCGPTabWnd& GetTabControl ()
{
return m_wndTabs;
}
protected:
CBCGPTabWnd m_wndTabs;
// Operations
public:
int AddView (CRuntimeClass* pViewClass, const CString& strViewLabel,
int iIndex = -1, CCreateContext* pContext = NULL);
int FindTab (HWND hWndView) const;
BOOL RemoveView (int iTabNum);
BOOL SetActiveView (int iTabNum);
CView* GetActiveView () const; // active view or NULL
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CBCGPTabView)
protected:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
//}}AFX_VIRTUAL
virtual void OnActivateView (CView* /*pView*/) {}
virtual BOOL IsScrollBar () const
{
return FALSE;
}
// Implementation
protected:
virtual ~CBCGPTabView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
// Generated message map functions
protected:
//{{AFX_MSG(CBCGPTabView)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg int OnMouseActivate(CWnd* pDesktopWnd, UINT nHitTest, UINT message);
//}}AFX_MSG
afx_msg LRESULT OnChangeActiveTab(WPARAM,LPARAM);
DECLARE_MESSAGE_MAP()
};
#endif // !BCG_NO_TABCTRL
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_BCGPTABVIEW_H__78A92E9C_04DB_11D5_95C8_00A0C9289F1B__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -