Print Page | Close Window

how to get skin names?

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=9716
Printed Date: 28 September 2024 at 5:23pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: how to get skin names?
Posted By: soteris
Subject: how to get skin names?
Date 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?
 
 



Replies:
Posted By: Oleg
Date 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


Posted By: soteris
Date 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.



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