<?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 : CListCtrl / CTreeCtrl in CXTPTaskPanel ???</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : CListCtrl / CTreeCtrl in CXTPTaskPanel ???]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 27 Apr 2026 04:49:40 +0000</pubDate>
  <lastBuildDate>Tue, 20 Jun 2006 14:26:44 +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=4419</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[CListCtrl / CTreeCtrl in CXTPTaskPanel ??? : Thank you for your reply. It is...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4419&amp;PID=13743&amp;title=clistctrl-ctreectrl-in-cxtptaskpanel#13743</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2101">mpmooreblvu</a><br /><strong>Subject:</strong> 4419<br /><strong>Posted:</strong> 20 June 2006 at 2:26pm<br /><br />Thank you for your reply. It is no longer an issue for me for two reasons:<DIV>1) my boss decided he wants different behavior</DIV><DIV>2) Oleg <FONT size=2>Chernyahovskii of codejock.com&nbsp;mailed me&nbsp;a much simpler answer:</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><FONT size=2><P>Solution: -------------------------------------------</P><DIV>Hi,</DIV><P>just call </P><P>pItem-&gt;SetSize (CSize(x, 0), TRUE);</P><P>method declaration:</P><P>void SetSize(CSize szItem, BOOL bAutoHeight = FALSE);</P><DIV>-----------------------------------------</DIV><DIV>&nbsp;</DIV><DIV>This gives the behavior I wanted - the CListView / CTreeView item automatically sizes to use the full vertical height available to the group. Unfortunately it doesn't size to take advantage of the full horizontal width available, but if I use CSize( 2000, 0 ) then the controls are wide enough for any practical CXTPTaskPanel, and they grow horizontal scroll bars when needed and behave sensibly.</DIV><DIV>&nbsp;</DIV><DIV>Thank you;</DIV><DIV>Matthew P Moore</DIV><DIV></FONT>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 20 Jun 2006 14:26:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4419&amp;PID=13743&amp;title=clistctrl-ctreectrl-in-cxtptaskpanel#13743</guid>
  </item> 
  <item>
   <title><![CDATA[CListCtrl / CTreeCtrl in CXTPTaskPanel ??? : Hi,  I do not know if the lastest...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4419&amp;PID=13742&amp;title=clistctrl-ctreectrl-in-cxtptaskpanel#13742</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2065">hipopotamo</a><br /><strong>Subject:</strong> 4419<br /><strong>Posted:</strong> 20 June 2006 at 2:20pm<br /><br /><DIV>Hi,</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;I do not know if the lastest updates have this "fixed" or not, but in&nbsp;the 9.80 I had do to this...</DIV><DIV>&nbsp;</DIV><DIV>I'm not sure if it's 100% correct...</DIV><DIV>&nbsp;</DIV><DIV>void CMyTaskPanel::UpdateScrollBar()<BR>{<BR>&nbsp;<BR>&nbsp;if ( !IsExplorerBehaviour() )<BR>&nbsp;{<BR>&nbsp;&nbsp;<BR>&nbsp;&nbsp;int nClientHeight = CXTPClientRect(this).Height();<BR>&nbsp;&nbsp;<BR>&nbsp;&nbsp;if ( nClientHeight &gt; 0 ) <BR>&nbsp;&nbsp;{</DIV><P>&nbsp;&nbsp;&nbsp;bool bDefault;<BR>&nbsp;&nbsp;&nbsp;bDefault = false;</P><P>&nbsp;&nbsp;&nbsp;for ( int i = 0; ( i &lt; GetGroups()-&gt;GetCount() ) &amp;&amp; !bDefault; ++i )<BR>&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;CXTPTaskPanelGroup* pGroup = GetAt(i);</P><P>&nbsp;&nbsp;&nbsp;&nbsp;if ( pGroup-&gt;IsExpanding() ) continue;<BR>&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;CRect rcGroup = pGroup-&gt;GetTargetClientRect();<BR>&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;for ( int j = 0; ( j &lt; pGroup-&gt;GetItemCount() ) &amp;&amp; !bDefault; ++j )<BR>&nbsp;&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CXTPTaskPanelGroupItem *pItem = (CXTPTaskPanelGroupItem*)pGroup-&gt;GetAt(j);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if ( !pItem || pItem-&gt;GetType() != xtpTaskItemTypeControl )<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;bDefault = true;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;break;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;int nItemHeight = rcGroup.Height() - 2;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if ( pItem-&gt;GetItemRect().Height() != nItemHeight )<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;::SetWindowPos( pItem-&gt;m_hWnd, 0, pItem-&gt;GetItemRect().left,&nbsp; pItem-&gt;GetItemRect().left, pItem-&gt;GetItemRect().Width(), nItemHeight, SWP_NOZORDER );</P><P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if ( !pGroup-&gt;IsExpanding() ) </P><P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pItem-&gt;SetSize(CSize(0, nItemHeight), false );<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;} <BR>&nbsp;&nbsp;} </P><P>&nbsp;}</P><P>&nbsp;<BR>&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp; //&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;CXTPTaskPanel::UpdateScrollBar();</P><P>&nbsp;</P><P>&nbsp;&nbsp;&nbsp;<BR>} // UpdateScrollBar<BR></P>]]>
   </description>
   <pubDate>Tue, 20 Jun 2006 14:20:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4419&amp;PID=13742&amp;title=clistctrl-ctreectrl-in-cxtptaskpanel#13742</guid>
  </item> 
  <item>
   <title><![CDATA[CListCtrl / CTreeCtrl in CXTPTaskPanel ??? : I am trying to put CListView and...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4419&amp;PID=13672&amp;title=clistctrl-ctreectrl-in-cxtptaskpanel#13672</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2101">mpmooreblvu</a><br /><strong>Subject:</strong> 4419<br /><strong>Posted:</strong> 15 June 2006 at 5:28pm<br /><br />I am trying to put CListView and CTreeView controls into a CXTPTaskPanel. Each list or tree control will be the only item in a group.<br><br>My problem is that I would like the tree and list controls to resize to use all of the available space when their group is active. This seems hard. <br><br>Can anyone point to sample code which does this?<br><br>The CXTPTaskPanel will also be resizeable.<br><br><br>thank you;<br>Matthew P Moore<br><br><br>]]>
   </description>
   <pubDate>Thu, 15 Jun 2006 17:28:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4419&amp;PID=13672&amp;title=clistctrl-ctreectrl-in-cxtptaskpanel#13672</guid>
  </item> 
 </channel>
</rss>