Transparent border with themed CXTPControlCustom |
Post Reply |
Author | |
DoubleHammer
Newbie Joined: 07 March 2008 Status: Offline Points: 5 |
Post Options
Thanks(0)
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); pControlDateFrom->SetFlags(xtpFlagManualUpdate); |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |