Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Transparent border with themed CXTPControlCustom
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Transparent border with themed CXTPControlCustom

 Post Reply Post Reply
DoubleHammer View Drop Down

Joined: 07 March 2008
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote DoubleHammer Quote  Post ReplyReply Direct Link To This Post Topic: Transparent border with themed CXTPControlCustom
    Posted: 01 June 2012 at 4:41am

Using Xtreme ToolkitProV13.4.2,  I have added a CXTPControlCustom control containing a CXTDateTimeCtrl control, to a CXTPCommandBar . However, when using certain themes, the CXTDateTimeCtrl control has a transparent border as shown below. Is there a work around for this, as I still want to use the same theme.

// Code

CXTPCommandBars* pCommandBars = GetParentFrame()->GetCommandBars();

// Add the date restrictions command bar

pCommandBars->Add(_T("Report Date Options"), xtpBarTop); 

// Add some other controls…. 

// Create a CXTDateTimeCtrl control

if (!m_dateFrom.Create(WS_TABSTOP | WS_CHILD | WS_VISIBLE | WS_BORDER,

            CRect(0, 0, 100, 22), this, ID_DATE_FROM))


return FALSE;



// Create a new CXTPControlCustom* control from the m_date control.

CXTPControlCustom* pControlDateFrom = CXTPControlCustom::CreateControlCustom(&m_dateFrom);

m_pControl = (CXTPControlCustom*)pCommandBar->GetControls()->Add(pControlDateFrom, ID_DATE_FROM);


Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

This page was generated in 0.094 seconds.