<?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 : [solved] hit test in TreeMode of ReportControl</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : [solved] hit test in TreeMode of ReportControl]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 03 Jun 2026 23:10:02 +0000</pubDate>
  <lastBuildDate>Thu, 29 Mar 2018 17:12:18 +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=23613</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[[solved] hit test in TreeMode of ReportControl : Hello Cluster,Thank you for bringing...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23613&amp;PID=76726&amp;title=solved-hit-test-in-treemode-of-reportcontrol#76726</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8730">olebed</a><br /><strong>Subject:</strong> 23613<br /><strong>Posted:</strong> 29 March 2018 at 5:12pm<br /><br />Hello Cluster,<br><br>Thank you for bringing this to our attention. I have fixed this with code below <table width="99%"><tr><td><pre class="BBcode">CSize CXTPReportThemeOffice2013::DrawCollapsedBitmap(CDC* pDC, const CXTPReportRow* pRow, CRect&amp; rcBitmap)<div>{</div><div>&nbsp; &nbsp; CSize szGlyphPlace(XTP_DPI_X(15), XTP_DPI_Y(15));</div><div><br></div><div>&nbsp; &nbsp; if (pDC)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; CSize szGlyph(XTP_DPI_X(5), XTP_DPI_Y(8));</div><div>&nbsp; &nbsp; &nbsp; &nbsp; rcBitmap.right = rcBitmap.left + szGlyphPlace.cx;</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; CPoint ptGlyph = rcBitmap.CenterPoint();</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ptGlyph.x -= szGlyph.cx / 2;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ptGlyph.y -= szGlyph.cy / 2;</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; if (pRow-&gt;IsExpanded())</div><div>&nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; XTPDrawHelpers()-&gt;DrawExpandTriangle(pDC, ptGlyph, TRUE,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; m_clrGlyphContract);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; else</div><div>&nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; XTPDrawHelpers()-&gt;DrawExpandTriangle(pDC, ptGlyph, FALSE,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; m_clrGlyphBorder, m_clrGlyphExpand);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; }</div><div><br></div><div>&nbsp; &nbsp; return szGlyphPlace;</div>}</pre></td></tr></table><br>Here also fixed&nbsp;non-centered by vertical expand/collapse glyph.<br><br>Regards,<br>&nbsp;Oleksandr Lebed]]>
   </description>
   <pubDate>Thu, 29 Mar 2018 17:12:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23613&amp;PID=76726&amp;title=solved-hit-test-in-treemode-of-reportcontrol#76726</guid>
  </item> 
  <item>
   <title><![CDATA[[solved] hit test in TreeMode of ReportControl : Hi support team,could you confirm...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23613&amp;PID=76716&amp;title=solved-hit-test-in-treemode-of-reportcontrol#76716</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8817">cluster</a><br /><strong>Subject:</strong> 23613<br /><strong>Posted:</strong> 25 March 2018 at 6:29am<br /><br />Hi support team,<br><br>could you confirm this issue?<br>]]>
   </description>
   <pubDate>Sun, 25 Mar 2018 06:29:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23613&amp;PID=76716&amp;title=solved-hit-test-in-treemode-of-reportcontrol#76716</guid>
  </item> 
  <item>
   <title><![CDATA[[solved] hit test in TreeMode of ReportControl : Hi,  there is a strange behavior...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23613&amp;PID=76705&amp;title=solved-hit-test-in-treemode-of-reportcontrol#76705</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8817">cluster</a><br /><strong>Subject:</strong> 23613<br /><strong>Posted:</strong> 17 March 2018 at 8:50am<br /><br />Hi,<br><br>there is a strange behavior on the expanding of a reportrecord.<br>It depends on which theme you have selected. On the default theme it works well but on the theme which is based on CXTPReportThemeOffice2013 it will expand if you click anywhere on the item.<br>I have figured out the reason, the rcBitmap will be limit by the DrawCollapsedBitmap function on default theme but not in the other theme.<br><br>...<br><pre style="font-family:C&#111;nsolas;font-size:13;color:black;:white;">CSize&nbsp;<b>CXTPReportPaintManager::DrawCollapsedBitmap</b>(CDC*&nbsp;pDC,&nbsp;<span style="color:blue;">const</span>&nbsp;CXTPReportRow*&nbsp;pRow,&nbsp;CRect&amp;&nbsp;rcBitmap){	<span style="color:green;">//&nbsp;Draw&nbsp;Standard&nbsp;image&nbsp;from&nbsp;resource.</span>	rcBitmap.left&nbsp;+=&nbsp;XTP_DPI_X(2);	CSize&nbsp;sizeGlyph&nbsp;=&nbsp;DrawGlyph(pDC,&nbsp;rcBitmap,&nbsp;pRow-&gt;IsExpanded()&nbsp;?&nbsp;0&nbsp;:&nbsp;1); 	<span style="color:blue;">if</span>&nbsp;(sizeGlyph.cx&nbsp;!=&nbsp;0&nbsp;&amp;&amp;&nbsp;pDC&nbsp;!=&nbsp;NULL)		<b>rcBitmap.right&nbsp;=&nbsp;rcBitmap.left&nbsp;+&nbsp;sizeGlyph.cx;</b></pre><pre style="font-family:C&#111;nsolas;font-size:13;color:black;:white;"><br>The <b>CXTPReportThemeOffice2013::DrawCollapsedBitmap</b> function leave the rcBitmap untouched. <br>Regards<br></pre>]]>
   </description>
   <pubDate>Sat, 17 Mar 2018 08:50:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23613&amp;PID=76705&amp;title=solved-hit-test-in-treemode-of-reportcontrol#76705</guid>
  </item> 
 </channel>
</rss>