<?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 : BUG: CXTTreeView &#111;n label edits</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : BUG: CXTTreeView &#111;n label edits]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 20 Apr 2026 16:51:36 +0000</pubDate>
  <lastBuildDate>Tue, 09 Aug 2011 03:19: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=474</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[BUG: CXTTreeView &#111;n label edits : SOLVEDIf you override OnBeginLabelEdit...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=474&amp;PID=65829&amp;title=bug-cxttreeview-on-label-edits#65829</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3104">MacW</a><br /><strong>Subject:</strong> 474<br /><strong>Posted:</strong> 09 August 2011 at 3:19am<br /><br />SOLVED<br><br>If you override OnBeginLabelEdit in a class derived from XTPTreeBase you need to set the member variable m_htiEdit to the HTREEITEM of the item that is currently edited. <br><br>Codejock uses this member to determine if they paint the tree item in the normal colors or just plain white.<br><br>If the tree background color is not white the text drawn by the codejock tree control shows outside of the edit control created by the Windows tree control. If the text set in OnBeginLabelEdit is shorter than the text in the tree control.<br><br>If m_htiEdit is set to a HTREEITEM the OnPaint method in XTPTreeCtrl will not use the background color of the tree but white, which makes the extra text invisible next to the edit control.<br><br>Codejock should change the test in OnPaint to use m_pTreeCtrl-&gt;GetEditControl() to determine how to paint the tree text and not rely on the member variable m_htiEdit which is internal to Codejock and cannot be relied on.<br><br>]]>
   </description>
   <pubDate>Tue, 09 Aug 2011 03:19:48 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=474&amp;PID=65829&amp;title=bug-cxttreeview-on-label-edits#65829</guid>
  </item> 
  <item>
   <title><![CDATA[BUG: CXTTreeView &#111;n label edits : Hi, OlegYes, I can repro this...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=474&amp;PID=43611&amp;title=bug-cxttreeview-on-label-edits#43611</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3104">MacW</a><br /><strong>Subject:</strong> 474<br /><strong>Posted:</strong> 12 December 2008 at 11:42am<br /><br />Hi, Oleg<br><br>Yes, I can repro this bug in your sample. I just added an "OnBeginEdit" and set a label text shorter than what's in the tree. See screen shot. I've also attached the two modified files.<br><br><img src="uploads/20081212_114001_Image1.jpg" height="310" width="431" border="0"><br><br><a href="uploads/20081212_114151_TreeCtrl_upd.zip" target="_blank">uploads/20081212_114151_TreeCtrl_upd.zip</a><br>]]>
   </description>
   <pubDate>Fri, 12 Dec 2008 11:42:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=474&amp;PID=43611&amp;title=bug-cxttreeview-on-label-edits#43611</guid>
  </item> 
  <item>
   <title><![CDATA[BUG: CXTTreeView &#111;n label edits : Hi, Do you see it with attached...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=474&amp;PID=43593&amp;title=bug-cxttreeview-on-label-edits#43593</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 474<br /><strong>Posted:</strong> 12 December 2008 at 1:06am<br /><br />Hi,<DIV>Do you see it with attached sample:</DIV><DIV>&nbsp;</DIV><DIV><a href="https://forum.codejock.com/uploads/20081212_010634_TreeCtrl.zip" target="_blank">TreeCtrl.zip</A></DIV>]]>
   </description>
   <pubDate>Fri, 12 Dec 2008 01:06:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=474&amp;PID=43593&amp;title=bug-cxttreeview-on-label-edits#43593</guid>
  </item> 
  <item>
   <title><![CDATA[BUG: CXTTreeView &#111;n label edits :  void CSomeWnd::OnTvnBeginlabeledit(NMHDR...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=474&amp;PID=43587&amp;title=bug-cxttreeview-on-label-edits#43587</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3104">MacW</a><br /><strong>Subject:</strong> 474<br /><strong>Posted:</strong> 11 December 2008 at 6:58pm<br /><br /><table width="99%"><tr><td><pre class="BBcode"><br>void CSomeWnd::OnTvnBeginlabeledit(NMHDR *pNMHDR, LRESULT *pResult)<br>{<br>&nbsp;&nbsp;&nbsp; LPNMTVDISPINFO ptv = reinterpret_cast&lt;LPNMTVDISPINFO&gt;(pNMHDR);<br>&nbsp;&nbsp;&nbsp; // Do not allow by default<br>&nbsp;&nbsp;&nbsp; *pResult = 1;<br><br>&nbsp;&nbsp;&nbsp; CEdit* pedit = GetEditControl();<br>&nbsp;&nbsp;&nbsp; if (pedit) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pedit-&gt;SetWindowText(_T("a"));<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; *pResult = 0;<br>&nbsp;&nbsp;&nbsp; }<br>}<br></pre></td></tr></table><br>If the text in the tree label was longer than "a" before, you will see the effect.<br>]]>
   </description>
   <pubDate>Thu, 11 Dec 2008 18:58:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=474&amp;PID=43587&amp;title=bug-cxttreeview-on-label-edits#43587</guid>
  </item> 
  <item>
   <title><![CDATA[BUG: CXTTreeView &#111;n label edits : Oleg, this is clearly a bug in...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=474&amp;PID=43498&amp;title=bug-cxttreeview-on-label-edits#43498</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3104">MacW</a><br /><strong>Subject:</strong> 474<br /><strong>Posted:</strong> 09 December 2008 at 10:11am<br /><br />Oleg, this is clearly a bug in your code. <br><br><br>I just don't have the time in this project to create sample applications for you. If you carry out the steps I mentioned the problem will show. I have lost a half day today again because of the documentation of XTP is misleading, plain wrong or just not existing. I'm working against tight timelines here.<br><br>If you attach the test app you have used trying to repro this bug I can look it over. Just catch TVN_BEGINLABELEDIT in your code and set a shorter text than currently in the edit control.<br><br>]]>
   </description>
   <pubDate>Tue, 09 Dec 2008 10:11:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=474&amp;PID=43498&amp;title=bug-cxttreeview-on-label-edits#43498</guid>
  </item> 
  <item>
   <title><![CDATA[BUG: CXTTreeView &#111;n label edits : Hi, And I wrote few replies ago...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=474&amp;PID=43487&amp;title=bug-cxttreeview-on-label-edits#43487</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 474<br /><strong>Posted:</strong> 08 December 2008 at 4:15pm<br /><br />Hi,<DIV>And I wrote few replies ago that can't reproduce it.</DIV>]]>
   </description>
   <pubDate>Mon, 08 Dec 2008 16:15:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=474&amp;PID=43487&amp;title=bug-cxttreeview-on-label-edits#43487</guid>
  </item> 
  <item>
   <title><![CDATA[BUG: CXTTreeView &#111;n label edits : Oleg,as I wrote, there is no need...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=474&amp;PID=43483&amp;title=bug-cxttreeview-on-label-edits#43483</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3104">MacW</a><br /><strong>Subject:</strong> 474<br /><strong>Posted:</strong> 08 December 2008 at 2:55pm<br /><br />Oleg,<br><br>as I wrote, there is no need for a sample. I outlined the steps to reproduce several replies ago.<br>]]>
   </description>
   <pubDate>Mon, 08 Dec 2008 14:55:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=474&amp;PID=43483&amp;title=bug-cxttreeview-on-label-edits#43483</guid>
  </item> 
  <item>
   <title><![CDATA[BUG: CXTTreeView &#111;n label edits : Hi, Still waiting your sample....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=474&amp;PID=43474&amp;title=bug-cxttreeview-on-label-edits#43474</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 474<br /><strong>Posted:</strong> 08 December 2008 at 5:59am<br /><br /><P>Hi,</P><DIV>Still waiting your sample.</DIV>]]>
   </description>
   <pubDate>Mon, 08 Dec 2008 05:59:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=474&amp;PID=43474&amp;title=bug-cxttreeview-on-label-edits#43474</guid>
  </item> 
  <item>
   <title><![CDATA[BUG: CXTTreeView &#111;n label edits : Hi, Olegany news on this? This...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=474&amp;PID=43465&amp;title=bug-cxttreeview-on-label-edits#43465</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3104">MacW</a><br /><strong>Subject:</strong> 474<br /><strong>Posted:</strong> 07 December 2008 at 3:45am<br /><br />Hi, Oleg<br><br>any news on this? <br>This bugs me every day.<br>]]>
   </description>
   <pubDate>Sun, 07 Dec 2008 03:45:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=474&amp;PID=43465&amp;title=bug-cxttreeview-on-label-edits#43465</guid>
  </item> 
  <item>
   <title><![CDATA[BUG: CXTTreeView &#111;n label edits : Hi, Olegno sample needed. Just...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=474&amp;PID=42748&amp;title=bug-cxttreeview-on-label-edits#42748</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3104">MacW</a><br /><strong>Subject:</strong> 474<br /><strong>Posted:</strong> 10 November 2008 at 8:58am<br /><br />Hi, Oleg<br><br>no sample needed.&nbsp; Just call EditLabel() on a tree item in an CXTTreeCtrl-derived class which also uses GetDispInfo to dynamically supply the label text.<br><br>Catch the TVN_BEGINLABELEDIT and set a shorter text than the current text in the label (what the user can edit must not be the same what is displayed later in the tree).<br><br>E.g. The label currently shows "Some longer label" and in BeginEdit you set the text "Test" for the label. This produces the effect I mentioned.<br><br>]]>
   </description>
   <pubDate>Mon, 10 Nov 2008 08:58:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=474&amp;PID=42748&amp;title=bug-cxttreeview-on-label-edits#42748</guid>
  </item> 
 </channel>
</rss>