<?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 : splitter class CXTSplitterWndEx</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : splitter class CXTSplitterWndEx]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 21 Apr 2026 10:14:50 +0000</pubDate>
  <lastBuildDate>Mon, 06 Jun 2005 13:53:35 +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=2323</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[splitter class CXTSplitterWndEx : Had a bug in StartTracking(),...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2323&amp;PID=6905&amp;title=splitter-class-cxtsplitterwndex#6905</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=775">Maye Johnson</a><br /><strong>Subject:</strong> 2323<br /><strong>Posted:</strong> 06 June 2005 at 1:53pm<br /><br />Had a bug in StartTracking(), with vertical splitter subtracking from bottom instead of right.&nbsp; it should be:<br><br><table width="99%"><tr><td><pre class="BBcode"><br>void CXTSplitterWndEx2::StartTracking(int ht)<br>{<br>&nbsp;&nbsp;&nbsp; CXTSplitterWndEx::StartTracking(ht);<br><br>&nbsp;&nbsp;&nbsp; // horizontal splitter, undocumented Microsoft values<br>&nbsp;&nbsp;&nbsp; if (ht &gt;= 101 &amp;&amp; ht &lt;= 115) <br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_rectLimit.top += m_nMin;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (m_nMax != 0)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_rectLimit.bottom -= (m_rectLimit.bottom - m_nMax);<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; // vertical splitter, undocumented Microsoft values<br>&nbsp;&nbsp;&nbsp; else if (ht &gt;= 201 &amp;&amp; ht &lt;= 215)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_rectLimit.left += m_nMin;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (m_nMax != 0)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_rectLimit.right -= (m_rectLimit.right - m_nMax);<br>&nbsp;&nbsp;&nbsp; }<br>}<br></pre></td></tr></table><br><br>]]>
   </description>
   <pubDate>Mon, 06 Jun 2005 13:53:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2323&amp;PID=6905&amp;title=splitter-class-cxtsplitterwndex#6905</guid>
  </item> 
  <item>
   <title><![CDATA[splitter class CXTSplitterWndEx :  I wanted a class to specify...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2323&amp;PID=6890&amp;title=splitter-class-cxtsplitterwndex#6890</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=775">Maye Johnson</a><br /><strong>Subject:</strong> 2323<br /><strong>Posted:</strong> 04 June 2005 at 9:47pm<br /><br />I wanted a class to specify the border colors of the splitter bar, andto specify minimum and maximum sizes of views, so I createdCXTSplitterWndEx2.<br><br><table width="99%"><tr><td><pre class="BBcode"><br><strong>.H file</strong><br><br>class CXTSplitterWndEx2 : public CXTSplitterWndEx<br>{<br>public:<br>&nbsp;&nbsp;&nbsp; CXTSplitterWndEx2();<br><br>&nbsp;&nbsp;&nbsp; virtual void&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SetColors&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (COLORREF crTL, COLORREF crBR, COLORREF crInside);<br>&nbsp;&nbsp;&nbsp; virtual void&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SetMinMax&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (UINT nMin, UINT nMax);<br>&nbsp;&nbsp;&nbsp; virtual void&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OnDrawSplitter&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; (CDC* pDC,ESplitType nType, const CRect&amp; rectArg);<br>&nbsp;&nbsp;&nbsp; virtual void&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; StartTracking&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; (int ht);<br><br>protected:<br>&nbsp;&nbsp;&nbsp; COLORREF&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_crTopLeft, m_crBottomRight,m_crInside;<br>&nbsp;&nbsp;&nbsp; UINT&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_nMin, m_nMax;<br>};<br><br><br><br><strong>.CPP file</strong><br><br>CXTSplitterWndEx2::CXTSplitterWndEx2()<br>{<br>&nbsp;&nbsp;&nbsp; m_crTopLeft = RGB(255, 255, 255);<br>&nbsp;&nbsp;&nbsp; m_crBottomRight = RGB(173, 170, 156);<br>&nbsp;&nbsp;&nbsp; m_crInside = RGB(239, 235, 222);<br>&nbsp;&nbsp;&nbsp; m_nMin = m_nMax = 0;<br>}<br><br>void CXTSplitterWndEx2::SetMinMax(UINT nMin, UINT nMax)<br>{<br>&nbsp;&nbsp;&nbsp; m_nMin = nMin;<br>&nbsp;&nbsp;&nbsp; m_nMax = nMax;<br>}<br><br>void CXTSplitterWndEx2::SetColors(COLORREF crTL, COLORREF crBR, COLORREF crInside)<br>{<br>&nbsp;&nbsp;&nbsp; m_crTopLeft = crTL;<br>&nbsp;&nbsp;&nbsp; m_crBottomRight = crBR;<br>&nbsp;&nbsp;&nbsp; m_crInside = crInside;<br>}<br><br>void CXTSplitterWndEx2::StartTracking(int ht)<br>{<br>&nbsp;&nbsp;&nbsp; CXTSplitterWndEx::StartTracking(ht);<br><br>&nbsp;&nbsp;&nbsp; // horizontal splitter, undocumented Microsoft values<br>&nbsp;&nbsp;&nbsp; if (ht &gt;= 101 &amp;&amp; ht &lt;= 115) <br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_rectLimit.top += m_nMin;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (m_nMax != 0)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_rectLimit.bottom -= (m_rectLimit.bottom - m_nMax);<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; // vertical splitter, undocumented Microsoft values<br>&nbsp;&nbsp;&nbsp; else if (ht &gt;= 201 &amp;&amp; ht &lt;= 215)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_rectLimit.left += m_nMin;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (m_nMax != 0)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_rectLimit.right -= (m_rectLimit.bottom - m_nMax);<br>&nbsp;&nbsp;&nbsp; }<br>}<br><br>void CXTSplitterWndEx2::OnDrawSplitter(CDC* pDC, ESplitType nType, const CRect&amp; rectArg)<br>{<br>&nbsp;&nbsp;&nbsp; if (pDC == NULL)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RedrawWindow(rectArg, NULL, RDW_INVALIDATE | RDW_NOCHILDREN);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return;<br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; ASSERT_VALID(pDC);<br><br>&nbsp;&nbsp;&nbsp; if (nType == splitBar)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CRect&nbsp;&nbsp;&nbsp; rect = rectArg;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; // Draw outside of rectangle.<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pDC-&gt;Draw3dRect(rect, m_crTopLeft, m_crBottomRight);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; rect.InflateRect(-GetSystemMetrics(SM_CXBORDER), -GetSystemMetrics(SM_CYBORDER));<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; // Draw inside of rectangle.<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pDC-&gt;FillSolidRect(rect, m_crInside);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return;<br>&nbsp;&nbsp;&nbsp; }<br>}<br></pre></td></tr></table><br><span style="font-size:10px"><br /><br />Edited by Maye Johnson</span>]]>
   </description>
   <pubDate>Sat, 04 Jun 2005 21:47:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2323&amp;PID=6890&amp;title=splitter-class-cxtsplitterwndex#6890</guid>
  </item> 
 </channel>
</rss>