Print Page | Close Window

How i can skin CPropertySheet

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=9806
Printed Date: 10 February 2025 at 4:30pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How i can skin CPropertySheet
Posted By: andrew2008
Subject: How i can skin CPropertySheet
Date Posted: 06 March 2008 at 5:35am
I have MFC CPropertySheet based SDI  application.
How I can  skin PropertySheet?

If i do next

class CPSSomeName : public CPropertySheet
{
    ....
protected:  
    virtual BOOL OnInitDialog();
    ...
}

BOOL CPSSomeName ::OnInitDialog()
{
    ....

    XTPSkinManager()->LoadSkin(csStylesPath + _T("Vista.cjstyles"));   

    RedrawWindow( 0, 0,  RDW_INVALIDATE|RDW_UPDATENOW|RDW_ERASE|RDW_ALLCHILDREN);

}


After that i have skined PropertyPage's but not PropertySheet.
How I can  skin PropertyPage?

P.S.
I use Xtreme ToolkitPro v11.1.3




Replies:
Posted By: znakeeye
Date Posted: 06 March 2008 at 7:06am
Not sure if this will help, but try putting the call to LoadSkin in the constructor instead. This is how it is done in all the samples...


Posted By: andrew2008
Date Posted: 06 March 2008 at 7:37am
Originally posted by znakeeye znakeeye wrote:

Not sure if this will help, but try putting the call to LoadSkin in the constructor instead. This is how it is done in all the samples...


Thank you! It's work!



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