Print Page | Close Window

Different schemes

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Skin Framework
Forum Description: Topics Related to Codejock Skin Framework
URL: http://forum.codejock.com/forum_posts.asp?TID=12922
Printed Date: 22 November 2024 at 10:02pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Different schemes
Posted By: gmail
Subject: Different schemes
Date Posted: 14 December 2008 at 12:24pm
In your sample 'Skin Controls' (DialogSample.cpp file) there is a section which states:

CDialog::OnInitDialog();
   
    CXTPSkinManager* pSkinManager = XTPSkinManager();

    CXTPSkinManagerSchema* pSchema = pSkinManager->CreateSchema(m_strStylesPath + _T("WinXP.Luna.cjstyles"), _T("NormalHomestead.ini"));
    pSkinManager->SetWindowTheme(GetSafeHwnd(), pSchema);
    CMDTARGET_RELEASE(pSchema);

    pSchema = pSkinManager->CreateSchema(m_strStylesPath + _T("WinXP.Royale.cjstyles"), _T("NormalRoyale.ini"));
    pSkinManager->SetWindowTheme(GetDlgItem(IDC_BUTTON_BLUE)->GetSafeHwnd(), pSchema);
    CMDTARGET_RELEASE(pSchema);

    pSchema = pSkinManager->CreateSchema(m_strStylesPath + _T("Vista.cjstyles"), _T("NormalBlue.ini"));
    pSkinManager->SetWindowTheme(button.GetSafeHwnd(), pSchema);
    CMDTARGET_RELEASE(pSchema);
}

If we replace GetDlgItem(IDC_BUTTON_BLUE) with b_Button (CXTPButton variable), those schemes doesn't work anymore (it loads application default theme)? How can we overcome this so every CXTPButton has different scheme (like your example with ordinary CButton)? Thanks for replying...



Replies:
Posted By: Oleg
Date Posted: 15 December 2008 at 1:45am
Hi,
Sorry only CButton can catch new skin  :( CXTPButton can't


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Moritz
Date Posted: 05 January 2009 at 1:05pm

Hello Oleg,

what can I do to enable CXTButton to show the new theme? What kind of sense makes such a function if it is not fully supported?

Greetings, Moritz Leutenecker




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net