<?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 : Title bar Examples</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Skin Framework : Title bar Examples]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 04 Apr 2026 11:17:55 +0000</pubDate>
  <lastBuildDate>Mon, 28 Jul 2008 13:08:20 +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=10968</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[Title bar Examples : I did not have to do anything...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10968&amp;PID=39006&amp;title=title-bar-examples#39006</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3717">Smucker</a><br /><strong>Subject:</strong> 10968<br /><strong>Posted:</strong> 28 July 2008 at 1:08pm<br /><br />I did not have to do anything special in my application to skin the color and file dialogs. The code above that you used is what I execute during startup (and whenever the skin changes).<br><br>Sorry, I can't send you my application because it is about 1 million lines of code in many projects, and is my company's property.<br><br>]]>
   </description>
   <pubDate>Mon, 28 Jul 2008 13:08:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10968&amp;PID=39006&amp;title=title-bar-examples#39006</guid>
  </item> 
  <item>
   <title><![CDATA[Title bar Examples : Actually in our application we...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10968&amp;PID=38979&amp;title=title-bar-examples#38979</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4284">Pariksh*t</a><br /><strong>Subject:</strong> 10968<br /><strong>Posted:</strong> 28 July 2008 at 4:23am<br /><br />Actually in our application we using Office2007Black style. The systems messageboxes or the Dialogboxes like CColorDialog CFileDialog's tittle bar color is not changing. We want uniformity in our application.....thats why we want this....right now i am trying on sample application.....<DIV>&nbsp;</DIV><DIV>can you send me your application?</DIV><DIV>&nbsp;</DIV><DIV>do reply</DIV>]]>
   </description>
   <pubDate>Mon, 28 Jul 2008 04:23:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10968&amp;PID=38979&amp;title=title-bar-examples#38979</guid>
  </item> 
  <item>
   <title><![CDATA[Title bar Examples : I don&amp;#039;t know. I enable skinning...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10968&amp;PID=38977&amp;title=title-bar-examples#38977</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3717">Smucker</a><br /><strong>Subject:</strong> 10968<br /><strong>Posted:</strong> 28 July 2008 at 3:41am<br /><br />I don't know. I enable skinning early in application startup (before my main window is created), rather than when a button is pressed. Is there a reason you're doing it where you are? Do you want to only skin the color dialog?<br><br>]]>
   </description>
   <pubDate>Mon, 28 Jul 2008 03:41:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10968&amp;PID=38977&amp;title=title-bar-examples#38977</guid>
  </item> 
  <item>
   <title><![CDATA[Title bar Examples : hi now my function looks like...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10968&amp;PID=38956&amp;title=title-bar-examples#38956</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4284">Pariksh*t</a><br /><strong>Subject:</strong> 10968<br /><strong>Posted:</strong> 28 July 2008 at 2:11am<br /><br /><FONT size=1>hi</FONT><DIV><FONT size=1>now my function looks like this but it is still not working</FONT></DIV><DIV><FONT size=1></FONT>&nbsp;</DIV><FONT color=#0000ff><P><FONT size=1>void</FONT></FONT><FONT size=1> CSampleDlgXDlg::OnBnClickedXButton()</FONT></P><P><FONT size=1>{</FONT></P><P><FONT color=#008000><FONT size=1>// Exclude a couple of MS DLLs that cause problems</FONT></P></FONT><P><FONT size=1>XTPSkinManager()-&gt;ExcludeModule(_T("msctf.dll"));</FONT></P><P><FONT size=1>XTPSkinManager()-&gt;ExcludeModule(_T("mshtml.dll"));</FONT></P><P><FONT color=#008000><FONT size=1>// Load the skin</FONT></P></FONT><P><FONT size=1>CString str1 = _T("C:\\Program Files\\Codejock Software\\MFC\\Xtreme ToolkitPro v12.0.0\\Bin\vc71\\styles");</FONT></P><P><FONT size=1>XTPSkinManager()-&gt;LoadSkin(str1 + _T("Vista.cjstyles"), _T("NormalBlack2.INI"));</FONT></P><P><FONT size=1>&nbsp;</FONT></P><P><FONT color=#008000><FONT size=1>// Apply skin, including metrics, coloring and frame</FONT></P></FONT><P><FONT size=1>XTPSkinManager()-&gt;SetApplyOptions(xtpSkinApplyMetrics|xtpSkinApplyColors|xtpSkinApplyFrame);</FONT></P><P><FONT color=#008000><FONT size=1>// Apply skin to all new windows and threads</FONT></P></FONT><P><FONT size=1>XTPSkinManager()-&gt;SetAutoApplyNewWindows(TRUE);</FONT></P><P><FONT size=1>XTPSkinManager()-&gt;SetAutoApplyNewThreads(TRUE);</FONT></P><P><FONT color=#008000><FONT size=1>// Apply skin to current thread and window</FONT></P></FONT><P><FONT size=1>XTPSkinManager()-&gt;EnableCurrentThread();</FONT></P><P><FONT size=1>CWnd *ptr = GetDlgItem(IDC_BUTTON2);</FONT></P><P><FONT size=1>HWND hwnd = ptr-&gt;GetSafeHwnd();</FONT></P><P><FONT size=1>XTPSkinManager()-&gt;ApplyWindow(hwnd);</FONT></P><P><FONT color=#008000><FONT size=1>// Redraw everything</FONT></P></FONT><P><FONT size=1>XTPSkinManager()-&gt;RedrawAllControls();</FONT></P><P><FONT size=1></FONT></P><P><FONT color=#008000><FONT size=1>//'/AfxMessageBox(_T("CXTPButton"));</FONT></P></FONT><FONT size=2><P><FONT size=1></FONT></P><P><FONT size=1>CColorDialog cd;</FONT></P><P><FONT size=1>cd.m_cc.hwndOwner = GetSafeHwnd();</FONT></P><P><FONT size=1>XTPSkinManager()-&gt;ApplyWindow( cd.m_cc.hwndOwner);</FONT></P><P><FONT size=1>cd.DoModal();</FONT></P><P><FONT size=1></FONT></P><P><FONT size=1></FONT></P><P><FONT size=1>}</P><DIV></DIV><P>what is wrong in this?</P><DIV>do reply....</FONT></FONT></DIV>]]>
   </description>
   <pubDate>Mon, 28 Jul 2008 02:11:48 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10968&amp;PID=38956&amp;title=title-bar-examples#38956</guid>
  </item> 
  <item>
   <title><![CDATA[Title bar Examples : The parent of the color dialog...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10968&amp;PID=38924&amp;title=title-bar-examples#38924</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3717">Smucker</a><br /><strong>Subject:</strong> 10968<br /><strong>Posted:</strong> 26 July 2008 at 5:10pm<br /><br />The parent of the color dialog may not be skinned.<br><br>Try<br><br>&nbsp; cd.m_cc.hwndOwner = GetSafeHwnd();<br><br>]]>
   </description>
   <pubDate>Sat, 26 Jul 2008 17:10:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10968&amp;PID=38924&amp;title=title-bar-examples#38924</guid>
  </item> 
  <item>
   <title><![CDATA[Title bar Examples : hello smucker, this is pariksh*t....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10968&amp;PID=38913&amp;title=title-bar-examples#38913</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4284">Pariksh*t</a><br /><strong>Subject:</strong> 10968<br /><strong>Posted:</strong> 26 July 2008 at 12:42am<br /><br /><P><FONT size=1>hello smucker,</FONT></P><P><FONT size=1>this is pariksh*t. i am trying to change titlebars color of CColorDialog , i have written this code, but its not working. Please tell me what i am missing? or what i need to write or change? This includes your code also written above....</FONT></P><FONT color=#0000ff><P><FONT size=1>void</FONT></FONT><FONT size=1> CSampleDlgXDlg::OnBnClickedXButton()</FONT></P><P><FONT size=1>{</FONT></P><P><FONT color=#008000><FONT size=1>// Exclude a couple of MS DLLs that cause problems</FONT></P></FONT><P><FONT size=1>XTPSkinManager()-&gt;ExcludeModule(_T("msctf.dll"));</FONT></P><P><FONT size=1>XTPSkinManager()-&gt;ExcludeModule(_T("mshtml.dll"));</FONT></P><FONT color=#008000 size=1><P>// Load the skin</P></FONT><P><FONT size=1>CString str1 = _T("C:\\Program Files\\Codejock Software\\MFC\\Xtreme ToolkitPro v12.0.0\\Bin\vc71\\styles");</FONT></P><P><FONT size=1>XTPSkinManager()-&gt;LoadSkin(str1 + _T("Vista.cjstyles"), _T("NormalBlack2.INI"));</FONT></P><P><FONT size=1>&nbsp;</FONT></P><FONT color=#008000 size=1><P>// Apply skin, including metrics, coloring and frame</P></FONT><P><FONT size=1>XTPSkinManager()-&gt;SetApplyOptions(xtpSkinApplyMetrics|xtpSkinApplyColors|xtpSkinApplyFrame);</FONT></P><FONT color=#008000 size=1><P>// Apply skin to all new windows and threads</P></FONT><P><FONT size=1>XTPSkinManager()-&gt;SetAutoApplyNewWindows(TRUE);</FONT></P><P><FONT size=1>XTPSkinManager()-&gt;SetAutoApplyNewThreads(TRUE);</FONT></P><FONT color=#008000 size=1><P>// Apply skin to current thread and window</P></FONT><P><FONT size=1>XTPSkinManager()-&gt;EnableCurrentThread();</FONT></P><P><FONT size=1>XTPSkinManager()-&gt;ApplyWindow(<FONT color=#0000ff>this</FONT>-&gt;GetSafeHwnd());</FONT></P><FONT color=#008000 size=1><P>// Redraw everything</P></FONT><P><FONT size=1>XTPSkinManager()-&gt;RedrawAllControls();</FONT></P><P><FONT size=1></FONT></P><P><FONT color=#008000><FONT size=1>//'/AfxMessageBox(_T("CXTPButton"));</FONT></P></FONT><FONT size=2><P><FONT size=1>CColorDialog cd;</FONT></P><P><FONT size=1>cd.DoModal();</FONT></P><P><FONT size=1>}</FONT></P></FONT>]]>
   </description>
   <pubDate>Sat, 26 Jul 2008 00:42:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10968&amp;PID=38913&amp;title=title-bar-examples#38913</guid>
  </item> 
  <item>
   <title><![CDATA[Title bar Examples : Thanks! ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10968&amp;PID=36509&amp;title=title-bar-examples#36509</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4075">dedvalson</a><br /><strong>Subject:</strong> 10968<br /><strong>Posted:</strong> 10 June 2008 at 1:05pm<br /><br />Thanks!]]>
   </description>
   <pubDate>Tue, 10 Jun 2008 13:05:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10968&amp;PID=36509&amp;title=title-bar-examples#36509</guid>
  </item> 
  <item>
   <title><![CDATA[Title bar Examples : Here&amp;#039;s the code I execute...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10968&amp;PID=36507&amp;title=title-bar-examples#36507</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3717">Smucker</a><br /><strong>Subject:</strong> 10968<br /><strong>Posted:</strong> 10 June 2008 at 12:26pm<br /><br />Here's the code I execute during startup or when the skin changes:<br><font color="#009966"><br></font><font face="Courier New, Courier, mono"><font color="#009966">// Exclude a couple of MS DLLs that cause problems</font><br>XTPSkinManager()-&gt;ExcludeModule(_T("msctf.dll"));<br>XTPSkinManager()-&gt;ExcludeModule(_T("mshtml.dll"));<br><br><font color="#009966">// Load the skin</font><br></font><font face="Courier New, Courier, mono">XTPSkinManager()-&gt;LoadSkin(skinfile, skinini);<br><br><font color="#009966">// Apply skin, including metrics, coloring and frame</font><br>XTPSkinManager()-&gt;SetApplyOptions(xtpSkinApplyMetrics|xtpSkinApplyColors|<b><font color="#990000">xtpSkinApplyFrame</font></b>);<br><br><font color="#009966">// Apply skin to all new windows and threads</font><br>XTPSkinManager()-&gt;SetAutoApplyNewWindows(TRUE);<br>XTPSkinManager()-&gt;SetAutoApplyNewThreads(TRUE);<br><font color="#009966"><br>// Apply skin to current thread and window</font><br>XTPSkinManager()-&gt;EnableCurrentThread();<br> XTPSkinManager()-&gt;ApplyWindow(this-&gt;GetSafeHwnd());<br><br><font color="#009966">// Redraw everything</font><br>XTPSkinManager()-&gt;RedrawAllControls();<br><br></font>]]>
   </description>
   <pubDate>Tue, 10 Jun 2008 12:26:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10968&amp;PID=36507&amp;title=title-bar-examples#36507</guid>
  </item> 
  <item>
   <title><![CDATA[Title bar Examples : Thanks,  That should have been...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10968&amp;PID=36490&amp;title=title-bar-examples#36490</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4075">dedvalson</a><br /><strong>Subject:</strong> 10968<br /><strong>Posted:</strong> 10 June 2008 at 7:41am<br /><br />Thanks,<DIV>&nbsp;</DIV><DIV>That should have been obvious (DUH) <img src="https://forum.codejock.com/smileys/smiley1.gif" border="0"></DIV><DIV>&nbsp;</DIV><DIV>Could you answer one more question for me though. </DIV><DIV>&nbsp;</DIV><DIV>I am using the Vista Skin supplied with the app on a Windows XP system. The color of the title bar (caption) is still being controlled by the desktop, not by my application. What do I need to do to make the Skin take precedence over the desktop theme?</DIV><DIV>&nbsp;</DIV><DIV>Thanks,</DIV><DIV>&nbsp;</DIV><DIV>Don</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 10 Jun 2008 07:41:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10968&amp;PID=36490&amp;title=title-bar-examples#36490</guid>
  </item> 
  <item>
   <title><![CDATA[Title bar Examples : Hi, See SkinBuilder tool in 12.0...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10968&amp;PID=36472&amp;title=title-bar-examples#36472</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 10968<br /><strong>Posted:</strong> 10 June 2008 at 12:43am<br /><br />Hi,<DIV>See SkinBuilder tool in 12.0 releasee.</DIV>]]>
   </description>
   <pubDate>Tue, 10 Jun 2008 00:43:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10968&amp;PID=36472&amp;title=title-bar-examples#36472</guid>
  </item> 
 </channel>
</rss>