Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Skin Framework
  New Posts New Posts RSS Feed - how to get skin names?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

how to get skin names?

 Post Reply Post Reply
Author
Message
soteris View Drop Down
Newbie
Newbie


Joined: 27 February 2008
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote soteris Quote  Post ReplyReply Direct Link To This Post Topic: how to get skin names?
    Posted: 27 February 2008 at 8:46am
Hello
How can I find the name of a skin?
( I am trying to load the names of all skin files in a list control using CFileFind ff; ... .. . .)
 
 
I have tried this:
XTPSkinManager()->SetApplyOptions(XTPSkinManager()->GetApplyOptions() | xtpSkinApplyMetrics);

// XTPSkinManager()->LoadSkin(_T(".\\styles\\Basic.cjstyles"));

XTPSkinManager()->LoadSkin(_T".\\styles\\Fresco.msstyles"));

CXTPSkinManagerResourceFile *pResFile = new CXTPSkinManagerResourceFile();

//pResFile->sem_pManager = XTPSkinManager();

CString strResourcePath = _T(".\\styles\\Fresco.msstyles");

if (!pResFile->Open(strResourcePath, _T(""))) return;

CXTPSkinManagerSchema* pSchema = pResFile->CreateSchema();

if (!pSchema) return;

if (FAILED(pSchema->ReadProperties(pResFile))) return;

CString themename = pSchema->getGetSchemaName();

UINT themecode = pSchema->GetClassCode(themename);

//SAFE_DELETE(m_pResourceFile);

pResFile->Close();
 
But all I get in schema name "Default" . . am I doing something wrong or is the name not set in the skin file?
 
 
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 27 February 2008 at 11:15am
Hi,
Open it in Studio it will show all ini files in these dlls.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
soteris View Drop Down
Newbie
Newbie


Joined: 27 February 2008
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote soteris Quote  Post ReplyReply Direct Link To This Post Posted: 28 February 2008 at 2:09am
I see, 
so I could use the version info inside the dll, like the ProductName or the FileDescription or maybe its better to just use the file name when I display the Skin names to the user to select.
 
Thanks
S.
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.156 seconds.