<?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 : Skin and menu font problem, need help!</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Skin Framework : Skin and menu font problem, need help!]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 25 May 2026 21:17:32 +0000</pubDate>
  <lastBuildDate>Thu, 11 Dec 2008 22:01:24 +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=12890</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[Skin and menu font problem, need help! : Thanks, but after changing the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12890&amp;PID=43591&amp;title=skin-and-menu-font-problem-need-help#43591</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4790">hamvui2005</a><br /><strong>Subject:</strong> 12890<br /><strong>Posted:</strong> 11 December 2008 at 10:01pm<br /><br /><P>Thanks, but after changing the skin I called</P><P>void CMainFrame::OnSkinChanged()<BR>{<BR>&nbsp;XTPPaintManager()-&gt;RefreshMetrics();</P><P>&nbsp;OnSysColorChange();<BR>&nbsp;RedrawWindow(0, 0, RDW_INVALIDATE|RDW_UPDATENOW|RDW_ERASE|RDW_ALLCHILDREN);&nbsp;&nbsp;<BR>&nbsp;<BR>&nbsp;GetCommandBars()-&gt;GetPaintManager()-&gt;RefreshMetrics();</P><P>&nbsp;GetCommandBars()-&gt;RedrawCommandBars();&nbsp;</P><DIV>}</DIV>]]>
   </description>
   <pubDate>Thu, 11 Dec 2008 22:01:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12890&amp;PID=43591&amp;title=skin-and-menu-font-problem-need-help#43591</guid>
  </item> 
  <item>
   <title><![CDATA[Skin and menu font problem, need help! : Hi, Try add  pCommandBars-&amp;g...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12890&amp;PID=43556&amp;title=skin-and-menu-font-problem-need-help#43556</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 12890<br /><strong>Posted:</strong> 11 December 2008 at 1:08am<br /><br />Hi,<DIV><BR>Try add </DIV><DIV>pCommandBars-&gt;GetPaintManager()-&gt;RefreshMetrics();</DIV>]]>
   </description>
   <pubDate>Thu, 11 Dec 2008 01:08:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12890&amp;PID=43556&amp;title=skin-and-menu-font-problem-need-help#43556</guid>
  </item> 
  <item>
   <title><![CDATA[Skin and menu font problem, need help! : I changed menu font in a skin...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12890&amp;PID=43551&amp;title=skin-and-menu-font-problem-need-help#43551</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4790">hamvui2005</a><br /><strong>Subject:</strong> 12890<br /><strong>Posted:</strong> 10 December 2008 at 8:41pm<br /><br />I changed menu font in a skin file. When I use the skin in CMainFrame::CMainFrame, the menu font is displayed correctly.<DIV>&nbsp;</DIV><DIV>CMainFrame::CMainFrame()<BR>{<BR>&nbsp;// TODO: add member initialization code here<BR>&nbsp;TCHAR szStylesPath&#091;_MAX_PATH&#093;;</DIV><DIV>&nbsp;VERIFY(::GetModuleFileName(<BR>&nbsp;&nbsp;AfxGetApp()-&gt;m_hInstance, szStylesPath, _MAX_PATH));&nbsp;&nbsp;<BR>&nbsp;<BR>&nbsp;CString csStylesPath(szStylesPath);<BR>&nbsp;int nIndex&nbsp; = csStylesPath.ReverseFind(_T('\\'));<BR>&nbsp;if (nIndex &gt; 0) {<BR>&nbsp;&nbsp;csStylesPath = csStylesPath.Left(nIndex);<BR>&nbsp;}<BR>&nbsp;else {<BR>&nbsp;&nbsp;csStylesPath.Empty();<BR>&nbsp;}<BR>&nbsp;<BR>&nbsp;m_strStylesPath = csStylesPath + _T("<a href="file://\\Styles\\" target="_blank">\\Styles\\</A>");</DIV><DIV>&nbsp;<BR>&nbsp;XTPSkinManager()-&gt;SetApplyOptions(xtpSkinApplyFrame | xtpSkinApplyColors | xtpSkinApplyMetrics);</DIV><DIV>&nbsp;LoadSkin(1);<BR>&nbsp;<BR>}</DIV><DIV>&nbsp;</DIV><DIV>But when I change to other skin and changed back to this skin, menu font is not update (it is not display correctly)</DIV><DIV>I use LoadSkin and OnSkinChanged as SkinSDISample.</DIV><DIV>Please help me. Thanks very much.</DIV>]]>
   </description>
   <pubDate>Wed, 10 Dec 2008 20:41:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12890&amp;PID=43551&amp;title=skin-and-menu-font-problem-need-help#43551</guid>
  </item> 
 </channel>
</rss>