📄 skintab.h
字号:
/************************************************************************
* 文件名: SkinTab.h
* 文件描述: 图片TAB
* 创建人: 黄锐坤(Nuk), 2006年08月28日
* 版本号: 1.0
************************************************************************/
#pragma once
#define WM_TAB_SELECT WM_USER+100
#define D_TOP 2
#define D_LEFT 4
// CSkinTab
class CSkinTab : public CStatic
{
DECLARE_DYNAMIC(CSkinTab)
public:
CSkinTab();
virtual ~CSkinTab();
protected:
DECLARE_MESSAGE_MAP()
virtual void PreSubclassWindow();
protected:
CRect *m_pTabRect;
int m_nTabCount;
int m_nCurDownIndex;
int m_nCurOverIndex;
LPTRACKMOUSEEVENT lpET;
CBitmap *m_pTabBmpNormal;
CBitmap *m_pTabBmpOver;
CBitmap *m_pTabBmpDown;
HICON *m_phIcon;
bool m_bDCStored;
CDC m_memDC;
protected:
int GetBitmapWidth (HBITMAP hBitmap);
int GetBitmapHeight (HBITMAP hBitmap);
void DrawBitmap(CDC* dc, HBITMAP hbmp, CRect rect);
void DrawIcon(CDC* dc, HICON hIcon, CRect rect, UINT align);
public:
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
afx_msg void OnPaint();
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
virtual BOOL PreTranslateMessage(MSG* pMsg);
public:
void SetCount(int nCount);
void SetRect(int nIndex, CRect rc);
void SetSkin(int nIndex, UINT nNormalID, UINT nOverID, UINT nDownID);
void SetSkin(int nIndex, CString strNormal, CString strOver, CString strDown);
void SetIcon(int nIndex, CString strIcon);
void SetIcon(int nIndex, UINT nIconID);
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -