<?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 : Adding 2007 themes</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Adding 2007 themes]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 26 Apr 2026 07:04:42 +0000</pubDate>
  <lastBuildDate>Fri, 24 Nov 2006 12:26:28 +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=4963</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[Adding 2007 themes :  I ran into this issue too, when...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4963&amp;PID=17599&amp;title=adding-2007-themes#17599</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1003">Warren</a><br /><strong>Subject:</strong> 4963<br /><strong>Posted:</strong> 24 November 2006 at 12:26pm<br /><br />I ran into this issue too, when I was trying to add the 2007 look to my app. What eventually solved it for me was to go to open the .rc2 file in my project, and inserting the line:<br><br>#include "Ribbon\Styles\Office2007Blue\Office2007Blue.rc"<br><br>as the last line in the file (and rebuilding, of course).<br><br>(Note: you also seem to have to derive your CMainFrame class from CXTPOffice2007FrameHook as well)<br><br>Hopefully this helps someone...]]>
   </description>
   <pubDate>Fri, 24 Nov 2006 12:26:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4963&amp;PID=17599&amp;title=adding-2007-themes#17599</guid>
  </item> 
  <item>
   <title><![CDATA[Adding 2007 themes :  OK, I found it, had to copy...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4963&amp;PID=15447&amp;title=adding-2007-themes#15447</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2279">garylyb</a><br /><strong>Subject:</strong> 4963<br /><strong>Posted:</strong> 04 September 2006 at 11:27am<br /><br /><DIV>&nbsp;</DIV><DIV>OK, I found it, had to copy the styles directory over to my debug directory</DIV><DIV>&nbsp;</DIV><DIV>Gary</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Mon, 04 Sep 2006 11:27:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4963&amp;PID=15447&amp;title=adding-2007-themes#15447</guid>
  </item> 
  <item>
   <title><![CDATA[Adding 2007 themes : Hello -  I&amp;#039;m trying to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4963&amp;PID=15446&amp;title=adding-2007-themes#15446</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2279">garylyb</a><br /><strong>Subject:</strong> 4963<br /><strong>Posted:</strong> 04 September 2006 at 11:20am<br /><br />Hello -<DIV>&nbsp;</DIV><DIV>I'm trying to add 2007 themes to my application, I added the code from the StylerBrowser sample that switches between themes, and changed my frame declaration to:</DIV><DIV>&nbsp;</DIV><FONT color=#0000ff size=2><P>class</FONT><FONT size=2> CMainFrame : </FONT><FONT color=#0000ff size=2>public</FONT><FONT size=2> CXTPMDIFrameWnd, CXTPOffice2007FrameHook</P><DIV></DIV><P>Now, when I call </P><DIV><FONT size=2>EnableOffice2007Frame(theme == xtpThemeRibbon || theme == xtpThemeOffice2007 ? GetCommandBars() : 0);</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>with either <FONT size=2></DIV><P>xtpPaneThemeOffice2007 or&nbsp; x<FONT size=2>tpPaneThemeOffice2007</P><DIV></DIV><DIV>I get a fault here:</DIV><DIV>&nbsp;</DIV><FONT size=2><P>CSize CXTPOffice2007Image::GetExtent() </FONT><FONT color=#0000ff size=2>const</P></FONT><FONT size=2><P>{</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (!m_hBitmap) </FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2> CSize(0, 0);</P><DIV>...}</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV><DIV>as m_hBitmap is never initialized.</DIV><DIV>&nbsp;</DIV><DIV>I must be missing something, but I haven't been able to find it yet.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Thanks</DIV><DIV>&nbsp;</DIV><DIV>Gary</DIV><DIV>&nbsp;</DIV></DIV><P></FONT></FONT></FONT></FONT></FONT>&nbsp;</P>]]>
   </description>
   <pubDate>Mon, 04 Sep 2006 11:20:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4963&amp;PID=15446&amp;title=adding-2007-themes#15446</guid>
  </item> 
 </channel>
</rss>