<?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 : Main menu in different fonts</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Main menu in different fonts]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 06 Apr 2026 15:47:44 +0000</pubDate>
  <lastBuildDate>Thu, 16 Feb 2006 06:10:56 +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=3630</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[Main menu in different fonts : Hi,  I got what i needby overriding...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3630&amp;PID=11017&amp;title=main-menu-in-different-fonts#11017</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1754">kanitamildasan</a><br /><strong>Subject:</strong> 3630<br /><strong>Posted:</strong> 16 February 2006 at 6:10am<br /><br /><P>Hi,</P><P>&#091;- Hearty Thanks -&#093;&nbsp;</P><P>I got what i need&nbsp;by overriding DrawControlToolbarParent() </P><P>If i allow my application user to change the themes on the fly like Customthemes&nbsp; sample </P><P>the only way is to derive and&nbsp;override DrawControlToolbarParent() for all themes (ex CXTPOffice2003Theme,CXTPWhidbeyTheme etc) ?</P><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Thu, 16 Feb 2006 06:10:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3630&amp;PID=11017&amp;title=main-menu-in-different-fonts#11017</guid>
  </item> 
  <item>
   <title><![CDATA[Main menu in different fonts : Hello, Here sample:  class...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3630&amp;PID=10992&amp;title=main-menu-in-different-fonts#10992</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 3630<br /><strong>Posted:</strong> 15 February 2006 at 7:51am<br /><br /><P>Hello,</P><P>Here sample:</P><P>&nbsp;</P><P>class CXTPOffice2003ThemeEx : public CXTPOffice2003Theme<BR>{<BR>public:<BR>&nbsp;&nbsp;&nbsp; CXTPOffice2003ThemeEx()<BR>&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; }</P><P>&nbsp;&nbsp;&nbsp; void RefreshMetrics()<BR>&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CXTPOffice2003Theme::RefreshMetrics();</P><P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LOGFONT lf;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_fontRegular.GetLogFont(&amp;lf);</P><P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_fontItalic.DeleteObject();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_fontUnderline.DeleteObject();</P><P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lf.lfItalic = 1;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_fontItalic.CreateFontIndirect(&amp;lf);</P><P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lf.lfItalic = 0;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lf.lfUnderline = 1;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_fontUnderline.CreateFontIndirect(&amp;lf);<BR>&nbsp;&nbsp;&nbsp; }</P><P><BR>&nbsp;&nbsp;&nbsp; CSize DrawControlPopupParent(CDC* pDC, CXTPControl* pButton, BOOL bDraw)<BR>&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (pButton-&gt;GetID() == ID_LANGUAGE_ENGILISH)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; CXTPFontDC font(pDC, &amp;m_fontItalic);<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; return CXTPOffice2003Theme::DrawControlPopupParent(pDC, pButton, bDraw);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</P><P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (pButton-&gt;GetID() == ID_LANGUAGE_FRANCH)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; CXTPFontDC font(pDC, &amp;m_fontUnderline);<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; return CXTPOffice2003Theme::DrawControlPopupParent(pDC, pButton, bDraw);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</P><P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return CXTPOffice2003Theme::DrawControlPopupParent(pDC, pButton, bDraw);</P><P>&nbsp;&nbsp;&nbsp; }</P><P>protected:<BR>&nbsp;&nbsp;&nbsp; CFont m_fontItalic;<BR>&nbsp;&nbsp;&nbsp; CFont m_fontUnderline;<BR>};</P><P>&nbsp;</P><P>&nbsp;</P><P>usage:</P><P>CXTPPaintManager::SetCustomTheme(new CXTPOffice2003ThemeEx);</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Wed, 15 Feb 2006 07:51:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3630&amp;PID=10992&amp;title=main-menu-in-different-fonts#10992</guid>
  </item> 
  <item>
   <title><![CDATA[Main menu in different fonts : hi, anyone ? ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3630&amp;PID=10986&amp;title=main-menu-in-different-fonts#10986</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1754">kanitamildasan</a><br /><strong>Subject:</strong> 3630<br /><strong>Posted:</strong> 15 February 2006 at 5:44am<br /><br /><P>hi,</P><P>anyone ?</P>]]>
   </description>
   <pubDate>Wed, 15 Feb 2006 05:44:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3630&amp;PID=10986&amp;title=main-menu-in-different-fonts#10986</guid>
  </item> 
  <item>
   <title><![CDATA[Main menu in different fonts : hi, Do i need to derive from...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3630&amp;PID=10939&amp;title=main-menu-in-different-fonts#10939</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1754">kanitamildasan</a><br /><strong>Subject:</strong> 3630<br /><strong>Posted:</strong> 12 February 2006 at 10:35pm<br /><br /><P>hi,</P><P>Do i need to derive from CXTPMenuBar and override the OnPaint to change the font when last Button is going to drawn on the screen ?</P>]]>
   </description>
   <pubDate>Sun, 12 Feb 2006 22:35:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3630&amp;PID=10939&amp;title=main-menu-in-different-fonts#10939</guid>
  </item> 
  <item>
   <title><![CDATA[Main menu in different fonts : Hi, I have an application which...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3630&amp;PID=10891&amp;title=main-menu-in-different-fonts#10891</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1754">kanitamildasan</a><br /><strong>Subject:</strong> 3630<br /><strong>Posted:</strong> 09 February 2006 at 12:39am<br /><br /><P>Hi,</P><P>I have an application which toggle the main menu strings between two different languages at runtime </P><P>when menu is in 'non-english' font the last main menu item caption<BR>should be in English font with string "English" and vice-versa</P><P>in the event handler of the last menu item i have changed the entire menubar font by using</P><P>CMenu cmenu;</P><P>...<BR>...<BR>&nbsp;<BR>CXTPMenuBar* pMenuBar = pCommandBars-&gt;GetMenuBar();</P><P>pMenuBar-&gt;LoadMenu(&amp;cmenu);</P><P>...<BR>...</P><P> XTPPaintManager()-&gt;SetCommandBarsFontIndirect(&amp;lf);&a mp;a mp;a mp;a mp;n bsp;&nbsp;</P><P>XTPPaintManager()-&gt;RefreshMetrics();</P><P>but how can i change&nbsp;only the last menu item caption to&nbsp;a different font ?</P><P>thanks in advance <BR></P>]]>
   </description>
   <pubDate>Thu, 09 Feb 2006 00:39:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3630&amp;PID=10891&amp;title=main-menu-in-different-fonts#10891</guid>
  </item> 
 </channel>
</rss>