Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - How i can skin CPropertySheet
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How i can skin CPropertySheet

 Post Reply Post Reply
Author
Message
andrew2008 View Drop Down
Newbie
Newbie
Avatar

Joined: 06 March 2008
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote andrew2008 Quote  Post ReplyReply Direct Link To This Post Topic: How i can skin CPropertySheet
    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

Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post 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...
Back to Top
andrew2008 View Drop Down
Newbie
Newbie
Avatar

Joined: 06 March 2008
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote andrew2008 Quote  Post ReplyReply Direct Link To This Post 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!
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.063 seconds.