Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Background of CXTPTabCtrl modification needed ...
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Background of CXTPTabCtrl modification needed ...

 Post Reply Post Reply
Author
Message
kiroecke View Drop Down
Groupie
Groupie


Joined: 02 July 2008
Location: Germany
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote kiroecke Quote  Post ReplyReply Direct Link To This Post Topic: Background of CXTPTabCtrl modification needed ...
    Posted: 11 hours 58 minutes ago at 5:30am
Hello,

the background behind the tab-headers in my CXTPTabCtrl remains grey whatever I try. My last check was 

 
auto* pPaintManager = m_pTabCtrl.GetPaintManager(); // exact name may vary by control type
if (pPaintManager != nullptr)
{
   auto* pColorSet = pPaintManager->GetColorSet();
   if (pColorSet != nullptr)
   {
          pColorSet->m_clrHeaderFace.clrLight.SetStandardValue(RGB(255, 255, 255));
          pColorSet->m_clrHeaderFace.clrDark.SetStandardValue(RGB(255, 255, 255));
          pColorSet->RefreshMetrics();
   }
}


The code was stepped through in the debugging, but the area remained grey.
Any suggestions are welcome! 
Best, Kai

Header background CXTPTabCtrl
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.031 seconds.