![]() |
how to get skin names? |
Post Reply
|
| Author | |
soteris
Newbie
Joined: 27 February 2008 Status: Offline Points: 2 |
Post Options
Thanks(0)
Quote Reply
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?
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
soteris
Newbie
Joined: 27 February 2008 Status: Offline Points: 2 |
Post Options
Thanks(0)
Quote Reply
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.
|
|
![]() |
|
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 |