<?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 : CXTPCommandBarsFrameHook and Tile Windows</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : CXTPCommandBarsFrameHook and Tile Windows]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 21 Apr 2026 14:21:06 +0000</pubDate>
  <lastBuildDate>Fri, 09 May 2025 10:34:48 +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=24569</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[CXTPCommandBarsFrameHook and Tile Windows : The issue was being caused by...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24569&amp;PID=79198&amp;title=cxtpcommandbarsframehook-and-tile-windows#79198</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9716">ABtdk</a><br /><strong>Subject:</strong> 24569<br /><strong>Posted:</strong> 09 May 2025 at 10:34am<br /><br /><div>The issue was being caused by <br>&nbsp;&nbsp;&nbsp; ::SendMessage(m_hwndSite, WM_NCCALCSIZE, FALSE, XTPToLPARAM(&amp;rc)); being called when the child frame didn't have the WS_DLGFRAME flag in its style (which happens in CXTPCommandBarsFrameHook::RefreshFrameStyle).</div><div><br></div><div>I solved the issue by making this:</div><div><br></div><div>BOOL CMainFrame::OnWindowArrangeCommand(UINT nCmd)<br>{<br>&nbsp;&nbsp;&nbsp; if (!GetSafeHwnd())<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return FALSE;<br><br>&nbsp;&nbsp;&nbsp; CWnd* pWnd = GetActiveFrame();<br>&nbsp;&nbsp;&nbsp; if (pWnd != this)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CChildFrame* pChildFrame = dynamic_cast&lt;CChildFrame*&gt;(pWnd);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; while (pChildFrame)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pChildFrame-&gt;PrepareForRearrange();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pChildFrame = dynamic_cast&lt;CChildFrame*&gt;(pChildFrame-&gt;GetNextWindow());<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; const BOOL bRet = CMDIFrameWnd::OnMDIWindowCmd(nCmd);<br><br>&nbsp;&nbsp;&nbsp; UpdateMDIChildrenTheme();<br><br>&nbsp;&nbsp;&nbsp; return bRet;<br>}</div><div><br></div><div>and</div><div><br></div><div>void CChildFrame::PrepareForRearrange()<br>{<br>&nbsp;&nbsp;&nbsp; m_bLockNCPaint++;<br><br>&nbsp;&nbsp;&nbsp; RECT rc = CXTPWindowRect(m_hwndSite);<br>&nbsp;&nbsp;&nbsp; ::SendMessage(m_hwndSite, WM_NCCALCSIZE, FALSE, XTPToLPARAM(&amp;rc));<br><br>&nbsp;&nbsp;&nbsp; m_bLockNCPaint--;<br>&nbsp;&nbsp;&nbsp; RedrawFrame();<br>}</div><div><br></div>]]>
   </description>
   <pubDate>Fri, 09 May 2025 10:34:48 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24569&amp;PID=79198&amp;title=cxtpcommandbarsframehook-and-tile-windows#79198</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPCommandBarsFrameHook and Tile Windows : I narrowed it down to CXTPComm...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24569&amp;PID=79194&amp;title=cxtpcommandbarsframehook-and-tile-windows#79194</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9716">ABtdk</a><br /><strong>Subject:</strong> 24569<br /><strong>Posted:</strong> 05 May 2025 at 10:34am<br /><br />I narrowed it down to CXTPCommandBarsFrameHook::RefreshFrameStyle() being called. I also forgot to mention I've tried this in v22.1.0 and v24.1.0]]>
   </description>
   <pubDate>Mon, 05 May 2025 10:34:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24569&amp;PID=79194&amp;title=cxtpcommandbarsframehook-and-tile-windows#79194</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPCommandBarsFrameHook and Tile Windows : I have made classes that derive...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24569&amp;PID=79193&amp;title=cxtpcommandbarsframehook-and-tile-windows#79193</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9716">ABtdk</a><br /><strong>Subject:</strong> 24569<br /><strong>Posted:</strong> 02 May 2025 at 5:57pm<br /><br />I have made classes that derive from a class identical to CChildFrame in the example RibbonMDISample. After EnableFrameTheme is called in OnUpdateMDIChildrenTheme, the Cascade and Tile Windows commands are not working in the main frame class. This doesn't seem to happen in the sample project.]]>
   </description>
   <pubDate>Fri, 02 May 2025 17:57:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24569&amp;PID=79193&amp;title=cxtpcommandbarsframehook-and-tile-windows#79193</guid>
  </item> 
 </channel>
</rss>