Enable theming in CXTPResizePropertySheet' TabCtrl |
Post Reply |
Author | |
JoseAngel
Groupie Joined: 21 March 2006 Location: Spain Status: Offline Points: 35 |
Post Options
Thanks(0)
Posted: 04 April 2016 at 7:45am |
I'm working in adding Visual Studio 2015's theming support for TabCtrl. Doing my tests I realized that CXTPResizePropertySheet's TabCtrl is actually a CTabCtrl and not a CXTPTabCtrl. Modifying the definition of m_tabCtrl (line 94 of XTPResizePropertySheet.h) from: CXTPNoFlickerWnd <CTabCtrl> m_tabCtrl; to CXTPNoFlickerWnd <CXTPTabCtrl> m_tabCtrl; is not the solution, because CXTPNoFlickerWnd hides all the theming support of CXTPTabCtrl, so I decided to change it to: CXTPTabCtrl m_tabCtrl; To avoid errors, you've to add this lines in XTPResizePropertySheet.cpp: #include "Controls/Util/XTPGlobal.h" #include "Controls/Util/XTPControlTheme.h" #include "Controls/Tab/XTPTabBase.h" #include "Controls/Tab/XTPTabCtrl.h" before the call to #include "Controls/Resize/XTPResizePropertySheet.h" and all is done. If your TabCtrl has theming support, your PropertySheet's TabCtrl will shows it correctly. Here the Controls Sample showing dark theme: |
|
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 |