<?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 : theming (child) dialog in MDI application</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Skin Framework : theming (child) dialog in MDI application]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 25 May 2026 13:19:30 +0000</pubDate>
  <lastBuildDate>Sat, 23 Jun 2018 11:12: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=23650</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[theming (child) dialog in MDI application :   astoyan wrote:Hello,Yes, you...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23650&amp;PID=76905&amp;title=theming-child-dialog-in-mdi-application#76905</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8730">olebed</a><br /><strong>Subject:</strong> 23650<br /><strong>Posted:</strong> 23 June 2018 at 11:12am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by astoyan" alt="Originally posted by astoyan" style="vertical-align: text-bottom;" /> <strong>astoyan wrote:</strong><br /><br />Hello,<div><br></div><div>Yes, you can apply the same theme to your dialogs, it's not skinning though, it's just re-using CommandBars theme.</div><div>All you need is to derive your dialog class from CXTPDialog and enable frame theme as shown below:</div><div><br></div><div>BOOL CTestDialog::OnInitDialog()&nbsp;</div><div>{</div><div>&nbsp; CXTPDialog::OnInitDialog();</div><div>&nbsp; if(InitCommandBars())</div><div>&nbsp; {</div><div>&nbsp; &nbsp; ASSERT(NULL != GetCommandBars());</div><div>&nbsp; &nbsp; GetCommandBars()-&gt;EnableFrameTheme(TRUE);</div><div>&nbsp; }</div><div><br></div><div>&nbsp; ...</div><div>}</div><div><br></div><div>I hope it will be helpful.</div><div>Thank you.</div><div>Regards,</div>&nbsp;Alexander Stoyan</td></tr></table>]]>
   </description>
   <pubDate>Sat, 23 Jun 2018 11:12:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23650&amp;PID=76905&amp;title=theming-child-dialog-in-mdi-application#76905</guid>
  </item> 
  <item>
   <title><![CDATA[theming (child) dialog in MDI application : I have problem connecting with...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23650&amp;PID=76855&amp;title=theming-child-dialog-in-mdi-application#76855</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9273">jw_statica</a><br /><strong>Subject:</strong> 23650<br /><strong>Posted:</strong> 06 June 2018 at 3:53am<br /><br /><div>I have problem connecting with skinning dialog in MDI application.</div><div>In order to explain it, I modified the CodeJock RibbonMDISample:</div><div>- added to project Dialog1 (style popup) and Dialog2 (style child).</div><div>- added members do class CMainFrame:&nbsp; std::unique_ptr&nbsp; dlg1; std::unique_ptr&nbsp; dlg2;</div><div>- modified function void CMainFrame::OnViewFullscreen()&nbsp;</div><div><br></div><div>void CMainFrame::OnViewFullscreen()&nbsp;</div><div>{</div><div>&nbsp; dlg1 = std::make_unique();</div><div>&nbsp; if (dlg1-&gt;Create(IDD_DIALOG1, &amp;m_wndClient))</div><div>&nbsp; {</div><div>&nbsp; &nbsp;dlg1-&gt;ShowWindow(SW_NORMAL);</div><div>&nbsp; }</div><div><br></div><div>&nbsp; dlg2 = std::make_unique();</div><div>&nbsp; if (dlg2-&gt;Create(IDD_DIALOG2, &amp;m_wndClient))</div><div>&nbsp; {</div><div>&nbsp; &nbsp;dlg2-&gt;ShowWindow(SW_NORMAL);</div><div>&nbsp; }</div><div>}</div><div><br></div><div>After calling this function there will show 2 dialogs one (child) without skin and second (popup) skined.</div><div><br></div><div>We called function XTPSkinManager()-&gt;LoadSkin() and dialogs were skinned&nbsp;</div><div>but after closing dialogs and opening them again they weren't skinned.<a href="uploads/9273/Ribb&#111;nMDISample.zip" target="_blank" rel="nofollow">uploads/9273/RibbonMDISample.zip</a></div>]]>
   </description>
   <pubDate>Wed, 06 Jun 2018 03:53:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23650&amp;PID=76855&amp;title=theming-child-dialog-in-mdi-application#76855</guid>
  </item> 
 </channel>
</rss>