<?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 : Could skingFramework combine with RibbonBar?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Skin Framework : Could skingFramework combine with RibbonBar?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 05 Apr 2026 20:35:56 +0000</pubDate>
  <lastBuildDate>Sun, 16 Sep 2007 02:30:55 +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=8002</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[Could skingFramework combine with RibbonBar? : I know how to do it! hahaIt works...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8002&amp;PID=25963&amp;title=could-skingframework-combine-with-ribbonbar#25963</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3288">iamthewind</a><br /><strong>Subject:</strong> 8002<br /><strong>Posted:</strong> 16 September 2007 at 2:30am<br /><br /><P>I know how to do it! haha</P><FONT color=#0000ff><FONT color=#000000>It works after I call ApplyWindow:</FONT><DIV></DIV><DIV></DIV>XTPSkinManager()-&gt;ApplyWindow(m_wndSplitter2.GetPane(0,0)-&gt;m_hWnd);</FONT>]]>
   </description>
   <pubDate>Sun, 16 Sep 2007 02:30:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8002&amp;PID=25963&amp;title=could-skingframework-combine-with-ribbonbar#25963</guid>
  </item> 
  <item>
   <title><![CDATA[Could skingFramework combine with RibbonBar? : Thanks very much! But It still...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8002&amp;PID=25913&amp;title=could-skingframework-combine-with-ribbonbar#25913</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3288">iamthewind</a><br /><strong>Subject:</strong> 8002<br /><strong>Posted:</strong> 15 September 2007 at 5:03am<br /><br />Thanks very much!<DIV>But It still don't work.</DIV><DIV>&nbsp;</DIV><DIV>I think I should post some of my codes.</DIV><DIV>&nbsp;</DIV><DIV><FONT color=#000000>I have a CToolBoxView, it is inherieted from CXTResizeFormView, and It hava some of UI Component as the following:</FONT></DIV><DIV><FONT color=#3333ff></FONT>&nbsp;</DIV><DIV><FONT color=#3333ff>class CToolBoxView : public CXTResizeFormView</FONT></DIV><DIV><FONT color=#3333ff>{</FONT></DIV><DIV><FONT color=#0000ff>private:<BR>&nbsp;CXTTabCtrl&nbsp;m_tabControl;<BR>&nbsp;CXTListBox&nbsp;m_listControl;<BR>&nbsp;CXTListBox&nbsp;m_listNoticeBoard;&nbsp;&nbsp;<BR>&nbsp;BOOL&nbsp;&nbsp;m_bInited;</FONT></DIV><DIV><FONT color=#0000ff>}</FONT></DIV><DIV><FONT color=#0000ff></FONT>&nbsp;</DIV><DIV><FONT color=#000000>and I create this view at CMainFrame::OnCreateClient:</FONT></DIV><DIV>&nbsp;</DIV><DIV><FONT color=#0000ff>BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)<BR>{</FONT></DIV><DIV><FONT color=#0000ff>....</FONT></DIV><DIV><FONT color=#0000ff>&nbsp;if (!m_wndSplitter2.CreateView(0, 0, RUNTIME_CLASS(CToolBoxView), CSize(200, 0), pContext))<BR>&nbsp;{<BR>&nbsp;&nbsp;TRACE0("Failed to create CToolBoxView\n");<BR>&nbsp;&nbsp;return FALSE;<BR>&nbsp;}</FONT></DIV><DIV><FONT color=#0000ff>...</FONT></DIV><DIV><FONT color=#0000ff>}</FONT></DIV><DIV><FONT color=#0000ff></FONT>&nbsp;</DIV><DIV>&nbsp;and CMainFrame create a RibbonBar just like sample SkinMDISample CreateRibbonBar():</DIV><DIV>&nbsp;</DIV><DIV>OKay, Now I call this function:</DIV><DIV>&nbsp;</DIV><DIV><FONT color=#0000ff>void CMainFrame::OnFileOpen() <BR>{<BR>&nbsp;TCHAR szStylesPath&#091;_MAX_PATH&#093;;</FONT></DIV><DIV><FONT color=#0000ff>&nbsp;VERIFY(::GetModuleFileName(<BR>&nbsp;&nbsp;AfxGetApp()-&gt;m_hInstance, szStylesPath, _MAX_PATH));</FONT></DIV><DIV><FONT color=#0000ff>&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;}</FONT></DIV><DIV><FONT color=#0000ff>&nbsp;csStylesPath += _T("</FONT><a href="file://\\Styles\\" target="_blank"><FONT color=#0000ff>\\Styles\\</FONT></A><FONT color=#0000ff>");</FONT></DIV><DIV><FONT color=#0000ff>&nbsp;XTPSkinManager()-&gt;LoadSkin(csStylesPath + _T("iTunes"), _T("Normalitunes.INI"));</FONT></DIV><DIV><FONT color=#0000ff>&nbsp;XTPPaintManager()-&gt;RefreshMetrics();</FONT></DIV><DIV><FONT color=#0000ff>&nbsp;OnSysColorChange();</FONT></DIV><DIV><FONT color=#0000ff>&nbsp;RedrawWindow(0, 0, RDW_INVALIDATE|RDW_UPDATENOW|RDW_ERASE|RDW_ALLCHILDREN);&nbsp;<BR>&nbsp;m_wndStatusBar.Invalidate();<BR>&nbsp;GetCommandBars()-&gt;GetPaintManager()-&gt;RefreshMetrics();<BR>&nbsp;GetCommandBars()-&gt;RedrawCommandBars();&nbsp;<BR>}</FONT></DIV><DIV><FONT color=#0000ff></FONT>&nbsp;</DIV><DIV><FONT color=#000000>I wish the upper code would change the CToolBoxView's skin in CMainFrame, but it still don't works.</FONT></DIV><DIV>&nbsp;</DIV><DIV>Thanks again, Oleg!</DIV><DIV><FONT color=#0000ff></FONT>&nbsp;</DIV><DIV><FONT color=#0000ff></FONT>&nbsp;</DIV>]]>
   </description>
   <pubDate>Sat, 15 Sep 2007 05:03:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8002&amp;PID=25913&amp;title=could-skingframework-combine-with-ribbonbar#25913</guid>
  </item> 
  <item>
   <title><![CDATA[Could skingFramework combine with RibbonBar? : Hello,  Don&amp;#039;t call EnableFrameTheme...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8002&amp;PID=25900&amp;title=could-skingframework-combine-with-ribbonbar#25900</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 8002<br /><strong>Posted:</strong> 15 September 2007 at 1:15am<br /><br />Hello, <DIV>Don't call EnableFrameTheme and you will see Skinned frame.</DIV>]]>
   </description>
   <pubDate>Sat, 15 Sep 2007 01:15:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8002&amp;PID=25900&amp;title=could-skingframework-combine-with-ribbonbar#25900</guid>
  </item> 
  <item>
   <title><![CDATA[Could skingFramework combine with RibbonBar? : oh, I use RibbonBar in mainframe!  thanks!...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8002&amp;PID=25856&amp;title=could-skingframework-combine-with-ribbonbar#25856</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3288">iamthewind</a><br /><strong>Subject:</strong> 8002<br /><strong>Posted:</strong> 14 September 2007 at 5:28am<br /><br /><P>oh, I use RibbonBar in mainframe!</P><DIV>&nbsp;</DIV><DIV>thanks!</DIV>]]>
   </description>
   <pubDate>Fri, 14 Sep 2007 05:28:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8002&amp;PID=25856&amp;title=could-skingframework-combine-with-ribbonbar#25856</guid>
  </item> 
  <item>
   <title><![CDATA[Could skingFramework combine with RibbonBar? : I noticed view in mainFrame can&amp;#039;t...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8002&amp;PID=25855&amp;title=could-skingframework-combine-with-ribbonbar#25855</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3288">iamthewind</a><br /><strong>Subject:</strong> 8002<br /><strong>Posted:</strong> 14 September 2007 at 5:25am<br /><br /><P>I noticed view in mainFrame can't render with skinFramework.</P>]]>
   </description>
   <pubDate>Fri, 14 Sep 2007 05:25:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8002&amp;PID=25855&amp;title=could-skingframework-combine-with-ribbonbar#25855</guid>
  </item> 
 </channel>
</rss>