|
// OXSkinnedTabCtrl.cpp : implementation file
//
// Version: 9.3
#include "stdafx.h"
// v93 update 03 - 64-bit
#include "UTB64Bit.h"
#include "OXSkinnedTabCtrl.h"
#include "OXSkins.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// COXSkinnedTabCtrl
IMPLEMENT_DYNAMIC(COXSkinnedTabCtrl, CTabCtrl)
COXSkinnedTabCtrl::COXSkinnedTabCtrl() :
m_pTabSkin(NULL)
{
}
COXSkinnedTabCtrl::~COXSkinnedTabCtrl()
{
if (m_pTabSkin != NULL)
delete m_pTabSkin;
}
BEGIN_MESSAGE_MAP(COXSkinnedTabCtrl, CTabCtrl)
//{{AFX_MSG_MAP(COXSkinnedTabCtrl)
ON_WM_PAINT()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// COXSkinnedTabCtrl message handlers
COXTabSkin* COXSkinnedTabCtrl::GetTabSkin()
{
// Check if the app is derived from COXSkinnedApp
COXSkinnedApp* pSkinnedApp = DYNAMIC_DOWNCAST(COXSkinnedApp, AfxGetApp());
if (pSkinnedApp != NULL && pSkinnedApp->GetCurrentSkin() != NULL)
return pSkinnedApp->GetCurrentSkin()->GetTabSkin();
else
{
// Create a classic skin for this class if not created already
if (m_pTabSkin == NULL)
m_pTabSkin = new COXTabSkinClassic();
return m_pTabSkin;
}
}
void COXSkinnedTabCtrl::OnPaint()
{
GetTabSkin()->OnPaintTabCtrl(this);
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
In January 2005, David Cunningham and Chris Maunder created TheUltimateToolbox.com, a new group dedicated to the continued development, support and growth of Dundas Software’s award winning line of MFC, C++ and ActiveX control products.
Ultimate Grid for MFC, Ultimate Toolbox for MFC, and Ultimate TCP/IP have been stalwarts of C++/MFC development for a decade. Thousands of developers have used these products to speed their time to market, improve the quality of their finished products, and enhance the reliability and flexibility of their software.