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

📄 rttabctrl.h

📁 vc++编写的界面源代码,对C++爱好者是很发的帮助。
💻 H
字号:
#pragma once


// CRTTabCtrl

class CRTTabCtrl : public CTabCtrl
{
	DECLARE_DYNAMIC(CRTTabCtrl)

public:
	CRTTabCtrl();
	virtual ~CRTTabCtrl();

protected:
	int   m_CurSel;
	static CBitmap* m_TabBitmap[5];
	static UINT     m_TabBitmapDrawMode[5];

	static BOOL     m_IsEnableSkin;
	BOOL            m_IsShowTabItem;
	DECLARE_MESSAGE_MAP()
public:
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg void OnPaint();

public:
	afx_msg void OnSize(UINT nType, int cx, int cy);
	static void SetTabBitmap(CBitmap* TabBitamp[], UINT DrawMode[]);
	static void EnableSkin(BOOL IsEnable = TRUE);
	void GetClientRect(LPRECT lpRect);
	void ShowTabItem(BOOL IsVisable);
	LONG Add(int Position,LPCTSTR lpszItemText,int Image,CWnd* pItemWnd = NULL);
protected:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	virtual void PreSubclassWindow();
public:
	afx_msg void OnTcnSelchange();
	afx_msg void OnTcnSelchanging(int oldSel);
protected:
	virtual BOOL OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult);
};


⌨️ 快捷键说明

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