Skinning on Windows 2000 |
Post Reply |
Author | |
JerryEvans
Groupie Joined: 01 May 2008 Location: United Kingdom Status: Offline Points: 39 |
Post Options
Thanks(0)
Posted: 16 May 2008 at 5:59am |
I have a custom slider control that is theme aware - on Windows 2000 it correctly identifies that no theming is present and draws using the old style API.
If I have statically linked the XTP skin engine do I need to explicitly add code to my control to call the XTP skin manager when drawing? If so why? I can see that the Skin Manager is checking for calls to load UxTheme.dll - which is how the control detects the presence of theming Any thoughts or comments on this please? Skin support for Windows 2000 was a big plus for me and I'd like it to work for all the controls I use in Riffster. Thanks Jerry |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
UxTheme is partly hooked in SkinFamework. Only using our CXTPWinThemeWrapper you will get skin. YOu can change your draw to use our CXTPWinThemeWrapper class:
CXTPWinThemeWrapper m_themeButton
m_themeButton.OpenThemeData(hWnd, L"BUTTON");
if ( m_themeButton.IsAppThemed())
{ m_themeButton.DrawThemeBackground(*pDC, BP_PUSHBUTTON, !pButton->GetEnabled() ? PBS_DISABLED : pButton->IsPressed() && pButton->IsHot() ? PBS_PRESSED :
pButton->IsHot() ? PBS_HOT: pButton->IsFocused() ? PBS_DEFAULTED : PBS_NORMAL, rect, 0); }
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
JerryEvans
Groupie Joined: 01 May 2008 Location: United Kingdom Status: Offline Points: 39 |
Post Options
Thanks(0)
|
Yes, I suspected as much and have modified the code to use the XTP theme wrapper.
|
|
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 |