• 大小: 56KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-01-01
  • 标签: MFC  

资源简介

MFC tabctrl控件重载, 实现标签加载BMP图片, 美化标签. 找了N久终于找到了, 不容易啊!

资源截图

代码片段和文件信息

// baseTabCtrl.cpp : implementation file
//

#include “stdafx.h“
#include “baseTabCtrl.h“
#include “.\basetabctrl.h“

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CbaseTabCtrl

CbaseTabCtrl::CbaseTabCtrl(int nType)
{
m_crBack = (COLORREF)-1; // use default color
m_nDrawType = BTC_NONE;
    m_bImg=false;
m_nCstrMaxLen=18;
EnableDraw(nType);
}

CbaseTabCtrl::~CbaseTabCtrl()
{
}


BEGIN_MESSAGE_MAP(CbaseTabCtrl CTabCtrl)
//{{AFX_MSG_MAP(CbaseTabCtrl)
// NOTE - the ClassWizard will add and remove mapping macros here.
//}}AFX_MSG_MAP
// ON_WM_ERASEBKGND()
ON_WM_PAINT()
ON_WM_LBUTTONDBLCLK()
ON_WM_MOUSEMOVE()
END_ME

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2012-05-31 16:54  tabcontrol_demo1\
     文件        6635  2012-05-31 16:53  tabcontrol_demo1\baseTabCtrl.cpp
     文件        2231  2012-05-31 16:45  tabcontrol_demo1\baseTabCtrl.h
     目录           0  2012-05-31 16:54  tabcontrol_demo1\Debug\
     文件        7425  2002-07-01 10:32  tabcontrol_demo1\EnTabCtrl.cpp
     文件        2089  2012-05-31 15:12  tabcontrol_demo1\EnTabCtrl.h
     文件        3651  2001-12-01 11:03  tabcontrol_demo1\ReadMe.txt
     目录           0  2012-05-31 15:54  tabcontrol_demo1\res\
     文件        1274  2012-05-31 15:54  tabcontrol_demo1\resource.h
     文件        5494  2012-05-31 15:17  tabcontrol_demo1\res\bitmap_i.bmp
     文件        5494  2012-05-31 15:17  tabcontrol_demo1\res\ss.bmp
     文件        5494  2012-05-31 15:18  tabcontrol_demo1\res\ssSel.bmp
     文件        1078  2012-05-31 15:54  tabcontrol_demo1\res\TabControl.ico
     文件         402  2001-12-01 11:03  tabcontrol_demo1\res\TabControl.rc2
     文件       16896  2012-05-31 15:54  tabcontrol_demo1\res\Thumbs.db
     文件        1078  2002-07-01 10:27  tabcontrol_demo1\res\Toolbar.bmp
     文件         212  2001-12-01 11:03  tabcontrol_demo1\StdAfx.cpp
     文件         999  2001-12-01 11:03  tabcontrol_demo1\StdAfx.h
     文件       56280  2012-05-31 15:54  tabcontrol_demo1\TabControl.aps
     文件        1553  2002-02-01 11:47  tabcontrol_demo1\TabControl.clw
     文件        2086  2001-12-01 11:03  tabcontrol_demo1\TabControl.cpp
     文件        4599  2002-07-01 10:38  tabcontrol_demo1\TabControl.dsp
     文件         765  2002-07-01 10:38  tabcontrol_demo1\TabControl.dsw
     文件        1368  2001-12-01 11:03  tabcontrol_demo1\TabControl.h
     文件        6548  2012-05-31 15:54  tabcontrol_demo1\TabControl.rc
     文件         880  2012-05-31 15:00  tabcontrol_demo1\TabControl.sln
     文件       14336  2012-05-31 16:53  tabcontrol_demo1\TabControl.suo
     文件        9216  2005-12-20 16:44  tabcontrol_demo1\TabControl.suo.old
     文件        7933  2012-05-31 15:17  tabcontrol_demo1\TabControl.vcproj
     文件        1427  2012-05-31 16:53  tabcontrol_demo1\TabControl.vcproj.T37JKQGEELZP0X9.Administrator.user
     文件        4620  2012-05-31 16:08  tabcontrol_demo1\TabControlDlg.cpp
............此处省略3个文件信息

评论

共有 条评论