<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Load Style without cjstyles-Files?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Skin Framework : Load Style without cjstyles-Files?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 05 Apr 2026 16:44:39 +0000</pubDate>
  <lastBuildDate>Tue, 11 Mar 2008 03:41:57 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=9783</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Load Style without cjstyles-Files? : Great, thank you Oleg!!! ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9783&amp;PID=32116&amp;title=load-style-without-cjstylesfiles#32116</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1999">FSauer</a><br /><strong>Subject:</strong> 9783<br /><strong>Posted:</strong> 11 March 2008 at 3:41am<br /><br />Great, thank you Oleg!!!]]>
   </description>
   <pubDate>Tue, 11 Mar 2008 03:41:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9783&amp;PID=32116&amp;title=load-style-without-cjstylesfiles#32116</guid>
  </item> 
  <item>
   <title><![CDATA[Load Style without cjstyles-Files? : Hi,  Add XTPColorManager()-&amp;...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9783&amp;PID=32106&amp;title=load-style-without-cjstylesfiles#32106</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 9783<br /><strong>Posted:</strong> 10 March 2008 at 4:10pm<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Add XTPColorManager()-&gt;SetLunaTheme(xtpSystemThemeBlue);</DIV>]]>
   </description>
   <pubDate>Mon, 10 Mar 2008 16:10:14 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9783&amp;PID=32106&amp;title=load-style-without-cjstylesfiles#32106</guid>
  </item> 
  <item>
   <title><![CDATA[Load Style without cjstyles-Files? : Hi.  I have updated to Xtreme...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9783&amp;PID=32097&amp;title=load-style-without-cjstylesfiles#32097</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1999">FSauer</a><br /><strong>Subject:</strong> 9783<br /><strong>Posted:</strong> 10 March 2008 at 12:51pm<br /><br /><P>Hi. </P><DIV>I have updated to Xtreme ToolkitPro v11.2.2. Now i can use CXTPSkinManagerResourceFile::SetModuleHandle. The result is not as expected.</DIV><DIV>If i try it like below the skin is set for each control (CXTPCommandBars):</DIV><DIV>&nbsp;&nbsp;XTPColorManager()-&gt;m_bEnableLunaBlueForRoyaleTheme = TRUE;<BR>&nbsp;&nbsp;XTPSkinManager()-&gt;LoadSkin(strStylesPath, _T("NormalBlue.INI"));<BR>&nbsp;&nbsp;XTPSkinManager()-&gt;SetApplyOptions(xtpSkinApplyFrame | xtpSkinApplyMetrics | xtpSkinApplyColors);</DIV><DIV>&nbsp;</DIV><DIV><DIV style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 10px; PADDING-TOP: 10px">If I make it as described, CXTPCommandBars is not drawn with the Skin.</DIV></DIV><DIV>&nbsp;&nbsp;XTPColorManager()-&gt;m_bEnableLunaBlueForRoyaleTheme = TRUE;<BR>&nbsp;&nbsp;XTPSkinManager()-&gt;GetResourceFile()-&gt;SetModuleHandle(AfxGetInstanceHandle());<BR>&nbsp;&nbsp;XTPSkinManager()-&gt;LoadSkin(NULL, _T("NORMALBLUE.ini"));<BR>&nbsp;&nbsp;XTPSkinManager()-&gt;SetApplyOptions(xtpSkinApplyFrame | xtpSkinApplyMetrics | xtpSkinApplyColors);</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>my .rc2 File:</DIV><DIV>#include &lt;XTToolkitPro.rc&gt;<BR>#include "Styles\WinXP.Luna\WinXP.Luna.rc"</DIV><DIV>&nbsp;</DIV><DIV><BR>Any idee?</DIV><DIV>&nbsp;</DIV><DIV>Best Regards</DIV><DIV>Fabian</DIV>]]>
   </description>
   <pubDate>Mon, 10 Mar 2008 12:51:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9783&amp;PID=32097&amp;title=load-style-without-cjstylesfiles#32097</guid>
  </item> 
  <item>
   <title><![CDATA[Load Style without cjstyles-Files? : Hi Oleg.  I&amp;#039;m using Xtreme...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9783&amp;PID=32090&amp;title=load-style-without-cjstylesfiles#32090</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1999">FSauer</a><br /><strong>Subject:</strong> 9783<br /><strong>Posted:</strong> 10 March 2008 at 10:59am<br /><br />Hi Oleg.<DIV>&nbsp;</DIV><DIV>I'm using Xtreme ToolkitPro v10.10. In this version CXTPSkinManagerResourceFile::SetModuleHandle isn't available.</DIV><DIV>&nbsp;</DIV><DIV>Regards</DIV>]]>
   </description>
   <pubDate>Mon, 10 Mar 2008 10:59:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9783&amp;PID=32090&amp;title=load-style-without-cjstylesfiles#32090</guid>
  </item> 
  <item>
   <title><![CDATA[Load Style without cjstyles-Files? : Hi You don&amp;#039;t need additional...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9783&amp;PID=32023&amp;title=load-style-without-cjstylesfiles#32023</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 9783<br /><strong>Posted:</strong> 07 March 2008 at 3:29pm<br /><br /><P>Hi</P><DIV>You don't need additional class. Replace</DIV><DIV>&nbsp;</DIV><DIV>XTPSkinManager()-&gt;SetResourceFile(new CMYXTPSkinManagerResourceFile);<BR>&nbsp;((CMYXTPSkinManagerResourceFile*)XTPSkinManager()-&gt;GetResourceFile())-&gt;SetModuleHandle(AfxGetInstanceHandle());<BR></DIV><DIV>to XTPSkinManager()-&gt;GetResourceFile()-&gt;SetModuleHandle(AfxGetInstanceHandle());</DIV><DIV>&nbsp;</DIV><DIV>think it will work.<BR></DIV>]]>
   </description>
   <pubDate>Fri, 07 Mar 2008 15:29:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9783&amp;PID=32023&amp;title=load-style-without-cjstylesfiles#32023</guid>
  </item> 
  <item>
   <title><![CDATA[Load Style without cjstyles-Files? : Hi.  I add the rc files like...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9783&amp;PID=31991&amp;title=load-style-without-cjstylesfiles#31991</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1999">FSauer</a><br /><strong>Subject:</strong> 9783<br /><strong>Posted:</strong> 07 March 2008 at 5:06am<br /><br /><DIV>Hi.</DIV><DIV>&nbsp;</DIV><DIV>I add the rc files like this:</DIV><DIV><img src="https://forum.codejock.com/uploads/20080307_045421_Unbenannt.jpg" border="0"></DIV><DIV>&nbsp;</DIV><DIV>class CMYXTPSkinManagerResourceFile : public CXTPSkinManagerResourceFile<BR>{<BR>public:<BR>&nbsp;void SetModuleHandle(HMODULE hModule)<BR>&nbsp;{<BR>&nbsp; m_hModule = hModule;<BR>&nbsp;}<BR>};</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;XTPSkinManager()-&gt;SetResourceFile(new CMYXTPSkinManagerResourceFile);<BR>&nbsp;((CMYXTPSkinManagerResourceFile*)XTPSkinManager()-&gt;GetResourceFile())-&gt;SetModuleHandle(AfxGetInstanceHandle());<BR>&nbsp;XTPColorManager()-&gt;m_bEnableLunaBlueForRoyaleTheme = TRUE;<BR>&nbsp;XTPSkinManager()-&gt;LoadSkin(NULL, _T("NORMALBLUE.INI"));<BR>&nbsp;XTPSkinManager()-&gt;SetApplyOptions(xtpSkinApplyFrame | xtpSkinApplyMetrics | xtpSkinApplyColors);</DIV><DIV>&nbsp;</DIV><DIV>I copied the WinXP.Luna.rc File and the res Folder to my project:</DIV><DIV>MyProjectPath\Styles\WinXP.Luna.rc</DIV><DIV><DIV>MyProjectPath\Styles\res\...(ini's and bmp fpr the style)</DIV><DIV>&nbsp;</DIV><DIV>I modified the WinXP.Luna.rc like this:</DIV><DIV>I replace the Path in WinXP.Luna.rc:</DIV><DIV><FONT size=2><P>EXTRALARGEBLUE_INI TEXTFILE MOVEABLE PURE </P><DIV>"res\\Blue_ExtraLarge.ini" to </DIV><DIV>"MyProjectPath\\Styles\\res\\Blue_ExtraLarge.ini"</DIV><DIV>... and save it.</DIV><DIV>&nbsp;</DIV><DIV>But the result isn't with the style.</DIV><DIV>What is wrong?</DIV><DIV>&nbsp;</DIV><DIV>Nice Regards</DIV><DIV>Fabian</DIV></FONT></DIV></DIV>]]>
   </description>
   <pubDate>Fri, 07 Mar 2008 05:06:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9783&amp;PID=31991&amp;title=load-style-without-cjstylesfiles#31991</guid>
  </item> 
  <item>
   <title><![CDATA[Load Style without cjstyles-Files? : Hi znakeeye.  Thanks for your...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9783&amp;PID=31988&amp;title=load-style-without-cjstylesfiles#31988</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1999">FSauer</a><br /><strong>Subject:</strong> 9783<br /><strong>Posted:</strong> 07 March 2008 at 4:06am<br /><br /><DIV>Hi znakeeye.</DIV><DIV>&nbsp;</DIV><DIV>Thanks for your tipp.</DIV><DIV>Should i set my own class delivered by CXTPSkinManagerResourceFile to use the function SetModuleHandle. This function isn't available in this class and the module handle is protected to set the handle like this: XTPSkinManager()-&gt;GetResourceFile()-&gt;SetModuleHandle(AfxGetInstanceHandle());</DIV><DIV>&nbsp;</DIV><DIV><DIV>Best&nbsp;Regards</DIV><DIV>Fabian</DIV></DIV>]]>
   </description>
   <pubDate>Fri, 07 Mar 2008 04:06:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9783&amp;PID=31988&amp;title=load-style-without-cjstylesfiles#31988</guid>
  </item> 
  <item>
   <title><![CDATA[Load Style without cjstyles-Files? : LoadSkin(NULL, ...);  Put the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9783&amp;PID=31987&amp;title=load-style-without-cjstylesfiles#31987</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 9783<br /><strong>Posted:</strong> 07 March 2008 at 2:58am<br /><br />LoadSkin(NULL, ...);<DIV>&nbsp;</DIV><DIV>Put the needed rc-files in your rc2-file. Search this forum! People (including me) have asked this before.</DIV>]]>
   </description>
   <pubDate>Fri, 07 Mar 2008 02:58:45 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9783&amp;PID=31987&amp;title=load-style-without-cjstylesfiles#31987</guid>
  </item> 
  <item>
   <title><![CDATA[Load Style without cjstyles-Files? : Hi.  An question to skins: Is...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9783&amp;PID=31870&amp;title=load-style-without-cjstylesfiles#31870</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1999">FSauer</a><br /><strong>Subject:</strong> 9783<br /><strong>Posted:</strong> 04 March 2008 at 4:27am<br /><br /><P>Hi. </P><DIV>An question to skins:</DIV><DIV>Is it possible to use the "WinXP.Luna" (Blue)&nbsp;style without loading the WinXP.Luna.cjstyles? Our clients should get only an exe without outher Files! Is this option in the newest Version of Codejock included?</DIV><DIV>&nbsp;</DIV><DIV>Nice Regards</DIV><DIV>Fabian</DIV>]]>
   </description>
   <pubDate>Tue, 04 Mar 2008 04:27:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9783&amp;PID=31870&amp;title=load-style-without-cjstylesfiles#31870</guid>
  </item> 
 </channel>
</rss>