<?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 : Trouble getting theme w/ XTKPDialog</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Trouble getting theme w/ XTKPDialog]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 04 Apr 2026 09:20:32 +0000</pubDate>
  <lastBuildDate>Sat, 15 Sep 2007 15:10:13 +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=8008</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[Trouble getting theme w/ XTKPDialog : Thanks, Oleg. The project is a...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8008&amp;PID=25957&amp;title=trouble-getting-theme-w-xtkpdialog#25957</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3262">geigy</a><br /><strong>Subject:</strong> 8008<br /><strong>Posted:</strong> 15 September 2007 at 3:10pm<br /><br />Thanks, Oleg.&nbsp; The project is a bit large to attach to a post, but this leads to a good idea: I should do a small&nbsp; MDI ribbon project with a non-modal dialog, and see if the themes work in that scenario.&nbsp; I'll try (beta schedule permitting) do that in the next several days.<br><br>In the meantime, I've been using the XTKP source and samples as my main source of documentation, stepping through functions to see how they work, as well as reading any materials I can glean from the site and help file.&nbsp; Am I missing any large pieces of man-page-style documentation?&nbsp; Is there a big fat Petzold or Prosise style book on XTKP?<br><br>Thanks again for your help.<br><br>Mike Russell<br>]]>
   </description>
   <pubDate>Sat, 15 Sep 2007 15:10:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8008&amp;PID=25957&amp;title=trouble-getting-theme-w-xtkpdialog#25957</guid>
  </item> 
  <item>
   <title><![CDATA[Trouble getting theme w/ XTKPDialog : Hi, attach project to check what...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8008&amp;PID=25927&amp;title=trouble-getting-theme-w-xtkpdialog#25927</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 8008<br /><strong>Posted:</strong> 15 September 2007 at 10:56am<br /><br />Hi,<DIV>attach project to check what you did.</DIV>]]>
   </description>
   <pubDate>Sat, 15 Sep 2007 10:56:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8008&amp;PID=25927&amp;title=trouble-getting-theme-w-xtkpdialog#25927</guid>
  </item> 
  <item>
   <title><![CDATA[Trouble getting theme w/ XTKPDialog : I changed the inheritance and...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8008&amp;PID=25911&amp;title=trouble-getting-theme-w-xtkpdialog#25911</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3262">geigy</a><br /><strong>Subject:</strong> 8008<br /><strong>Posted:</strong> 15 September 2007 at 3:31am<br /><br />I changed the inheritance and added the rc file, and changed OnInitDialog similar to your suggestion as shown below.&nbsp; <br><br>I had to do a variation on your suggestion,&nbsp; using the static method CreateTheme() to create the PaintManager object.<br><br>With this change, the dialog is blank, a caption and gray background, but no controls:<br>&nbsp;<br>&nbsp;&nbsp; CXTPPaintManager::SetTheme(xtpThemeOffice2007);<br>&nbsp;&nbsp;&nbsp; CXTPPaintManager *pmgr = CXTPPaintManager::CreateTheme(xtpThemeOffice2007);<br>&nbsp;&nbsp;&nbsp; EnableOffice2007Frame(this, pmgr);<br><br>]]>
   </description>
   <pubDate>Sat, 15 Sep 2007 03:31:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8008&amp;PID=25911&amp;title=trouble-getting-theme-w-xtkpdialog#25911</guid>
  </item> 
  <item>
   <title><![CDATA[Trouble getting theme w/ XTKPDialog : Thanks, Oleg. I&amp;#039;ll give this...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8008&amp;PID=25909&amp;title=trouble-getting-theme-w-xtkpdialog#25909</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3262">geigy</a><br /><strong>Subject:</strong> 8008<br /><strong>Posted:</strong> 15 September 2007 at 2:46am<br /><br />Thanks, Oleg.&nbsp; I'll give this a shot.<br><br>]]>
   </description>
   <pubDate>Sat, 15 Sep 2007 02:46:45 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8008&amp;PID=25909&amp;title=trouble-getting-theme-w-xtkpdialog#25909</guid>
  </item> 
  <item>
   <title><![CDATA[Trouble getting theme w/ XTKPDialog : Hello, Do you want Office2007...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8008&amp;PID=25904&amp;title=trouble-getting-theme-w-xtkpdialog#25904</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 8008<br /><strong>Posted:</strong> 15 September 2007 at 1:40am<br /><br /><DIV>Hello,</DIV><DIV>Do you want Office2007 captiopn ?</DIV><DIV>&nbsp;</DIV><DIV>if so,&nbsp; change</DIV><DIV>&nbsp;</DIV><DIV>class CCurvesDialog : public CDialogBase</DIV><DIV>to</DIV><DIV><DIV>class CCurvesDialog : public CDialogBase, CXTPOffice2007FrameHook</DIV><DIV>&nbsp;</DIV><DIV>and add</DIV><DIV>&nbsp;</DIV><DIV>EnableOffice2007Frame(this, XPTPaintManger());<BR></DIV><BR>&nbsp;after you set theme.</DIV><DIV>&nbsp;</DIV><DIV>don't forget add Office2007 bitmaps to your rc2 file.</DIV>]]>
   </description>
   <pubDate>Sat, 15 Sep 2007 01:40:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8008&amp;PID=25904&amp;title=trouble-getting-theme-w-xtkpdialog#25904</guid>
  </item> 
  <item>
   <title><![CDATA[Trouble getting theme w/ XTKPDialog : I&amp;#039;m porting a legacy app...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8008&amp;PID=25882&amp;title=trouble-getting-theme-w-xtkpdialog#25882</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3262">geigy</a><br /><strong>Subject:</strong> 8008<br /><strong>Posted:</strong> 14 September 2007 at 6:37pm<br /><br />I'm porting a legacy app to XMTP.&nbsp; I'm very happy with the progress I've made - had a ribbon SDI version of the app up in a matter of days.&nbsp; <br><br>One lingering problem: my dialogs are not "styled".&nbsp; My dialog inherits CXTPDialogBase&lt;CXTResizeDialog&gt;, and sets the Office 2007 style (se below).&nbsp; <br><br>Any guesses as to what I'm missing?<br><br>TIA<br><br>Mike Russell<br>_____________________________<br><br>#define CDialogBase CXTPDialogBase&lt;CXTResizeDialog&gt;<br><br>class CCurvesDialog : public CDialogBase<br>{<br>...<br>}<br><br>BOOL CCurvesDialog::OnInitDialog() <br>{<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; HICON h = AfxGetApp()-&gt;LoadIcon(IDR_MAINFRAME);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; SetIcon(h, true);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; SetIcon(h, false);<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; CXTPPaintManager::SetTheme(xtpThemeOffice2007);<br>...<br>}<br><br>]]>
   </description>
   <pubDate>Fri, 14 Sep 2007 18:37:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8008&amp;PID=25882&amp;title=trouble-getting-theme-w-xtkpdialog#25882</guid>
  </item> 
 </channel>
</rss>