?? cooltabbar.cpp
字號:
// CoolTabBar.cpp : implementation file
//
#include "stdafx.h"
#include "resource.h"
#include "CoolTabBar.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CCoolTabBar
CCoolTabBar::CCoolTabBar()
{
}
CCoolTabBar::~CCoolTabBar()
{
}
BEGIN_MESSAGE_MAP(CCoolTabBar, CCoolControlBar)
//{{AFX_MSG_MAP(CCoolTabBar)
ON_WM_CREATE()
ON_WM_SIZE()
ON_WM_ERASEBKGND()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CCoolTabBar message handlers
int CCoolTabBar::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CCoolControlBar::OnCreate(lpCreateStruct) == -1)
return -1;
m_wndTabCtrl.SetBorderStyle(1);
m_wndTabCtrl.Create(CRect(10,10,120,340), this);
return 0;
}
void CCoolTabBar::OnSize(UINT nType, int cx, int cy)
{
CCoolControlBar::OnSize(nType, cx, cy);
CRect rc;
GetClientRect(&rc);
m_wndTabCtrl.MoveWindow(rc);
m_wndTabCtrl.AutoSize();
}
BOOL CCoolTabBar::OnEraseBkgnd(CDC* pDC)
{
// CRect rc;
// GetClientRect(&rc);
//pDC->FillSolidRect(rc, RGB(255, 255, 255));
return TRUE;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -