<?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] HitTest &amp; Header Problem</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : [SOLVED] HitTest &amp; Header Problem]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 20:19:58 +0000</pubDate>
  <lastBuildDate>Thu, 07 Jul 2011 21:25:20 +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=18408</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] HitTest &amp; Header Problem : Hi  Could you also add a hit...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18408&amp;PID=65170&amp;title=solved-hittest-header-problem#65170</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4227">tomurphy</a><br /><strong>Subject:</strong> 18408<br /><strong>Posted:</strong> 07 July 2011 at 9:25pm<br /><br />Hi<DIV>&nbsp;</DIV><DIV>Could you also add a hit test on the scrollbar and the scrollbar buttons?</DIV><DIV>&nbsp;</DIV><DIV>Cheers</DIV><DIV>Tom</DIV>]]>
   </description>
   <pubDate>Thu, 07 Jul 2011 21:25:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18408&amp;PID=65170&amp;title=solved-hittest-header-problem#65170</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] HitTest &amp; Header Problem : Great, thanks a lot Andre!  ...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18408&amp;PID=64541&amp;title=solved-hittest-header-problem#64541</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 18408<br /><strong>Posted:</strong> 23 May 2011 at 1:00pm<br /><br />Great, thanks a lot Andre!]]>
   </description>
   <pubDate>Mon, 23 May 2011 13:00:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18408&amp;PID=64541&amp;title=solved-hittest-header-problem#64541</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] HitTest &amp; Header Problem : Added for next release:xtpHitT...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18408&amp;PID=64540&amp;title=solved-hittest-header-problem#64540</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1755">ABuenger</a><br /><strong>Subject:</strong> 18408<br /><strong>Posted:</strong> 23 May 2011 at 12:27pm<br /><br />Added for next release:<br><br>xtpHitTestHeaderRows<br>xtpHitTestBodyRows (same as xtpHitTestReportArea, I suggest to use the new name)<br>xtpHitTestFooterRows<br><br>Andre<br><br>]]>
   </description>
   <pubDate>Mon, 23 May 2011 12:27:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18408&amp;PID=64540&amp;title=solved-hittest-header-problem#64540</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] HitTest &amp; Header Problem : Thanks Andre, here&amp;#039;s a workaround...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18408&amp;PID=64508&amp;title=solved-hittest-header-problem#64508</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 18408<br /><strong>Posted:</strong> 20 May 2011 at 9:55am<br /><br />Thanks Andre, here's a workaround if anyone needs it:<br><br><table width="99%"><tr><td><pre class="BBcode"><br>Private Type RECT<br>&nbsp;&nbsp; Left As Long<br>&nbsp;&nbsp; Top As Long<br>&nbsp;&nbsp; Right As Long<br>&nbsp;&nbsp; Bottom As Long<br>End Type<br><br>Private Type POINTAPI<br>&nbsp;&nbsp; x As Long<br>&nbsp;&nbsp; y As Long<br>End Type<br><br>Private Declare Function GetCursorPos Lib "user32.dll" (ByRef lpPoint As POINTAPI) As Long<br>Private Declare Function ScreenToClient Lib "user32.dll" (ByVal hwnd As Long, ByRef lpPoint As POINTAPI) As Long<br>Private Declare Function PtInRect Lib "user32.dll" (ByRef lpRect As RECT, ByVal x As Long, ByVal y As Long) As Long<br><br>Private Function MouseInHeader() As Boolean<br>&nbsp;&nbsp; Dim lt_Pt As POINTAPI<br>&nbsp;&nbsp; Dim lt_Rect As RECT<br>&nbsp;&nbsp; Dim l_Left As Long, l_Top As Long, l_Right As Long, l_Bottom As Long<br>&nbsp;&nbsp; Dim l_Left2 As Long, l_Top2 As Long, l_Right2 As Long, l_Bottom2 As Long<br>&nbsp;&nbsp; Dim i As Long<br>&nbsp;&nbsp; <br>&nbsp;&nbsp; If Me.ReportControl1.HeaderRecords.Count = 0 Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Exit Function<br>&nbsp;&nbsp; End If<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp; GetCursorPos lt_Pt<br>&nbsp;&nbsp; ScreenToClient Me.ReportControl1.hwnd, lt_Pt<br>&nbsp;&nbsp; <br>&nbsp;&nbsp; With Me.ReportControl1.HeaderRows<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Row(0).GetRect l_Left, l_Top, l_Right, l_Bottom<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Row(.Count - 1).GetRect l_Left2, l_Top2, l_Right2, l_Bottom2<br>&nbsp;&nbsp; End With<br>&nbsp;&nbsp; <br>&nbsp;&nbsp; With lt_Rect<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Left = l_Left<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Top = l_Top<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Right = l_Right<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Bottom = l_Bottom2<br>&nbsp;&nbsp; End With<br><br>&nbsp;&nbsp; MouseInHeader = PtInRect(lt_Rect, lt_Pt.x, lt_Pt.y)<br>End Function<br></pre></td></tr></table><br><br>It would be nice if ReportHitTest.ht enums were added for header and footer area though!<br>]]>
   </description>
   <pubDate>Fri, 20 May 2011 09:55:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18408&amp;PID=64508&amp;title=solved-hittest-header-problem#64508</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] HitTest &amp; Header Problem : Hi,you&amp;#039;re right. HitTest...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18408&amp;PID=64507&amp;title=solved-hittest-header-problem#64507</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1755">ABuenger</a><br /><strong>Subject:</strong> 18408<br /><strong>Posted:</strong> 20 May 2011 at 9:32am<br /><br />Hi,<br><br>you're right. HitTest is currently only implemented for the body, but not for the header and footer rows.<br><br>Andre<br><br>]]>
   </description>
   <pubDate>Fri, 20 May 2011 09:32:19 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18408&amp;PID=64507&amp;title=solved-hittest-header-problem#64507</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] HitTest &amp; Header Problem :   Calling HitTest method of...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18408&amp;PID=64491&amp;title=solved-hittest-header-problem#64491</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 18408<br /><strong>Posted:</strong> 19 May 2011 at 10:38am<br /><br />Calling HitTest method of ReportControl while the mouse is over a header record returns no column or row information, and ht = xtpHitTestUnknown.<br><br>This is the same result as if the mouse is over the scrollbar, or at the blank area of a report. Is there any way to determine if the mouse is over the header area?<br><br>Sample: <a href="uploads/2676/ReportHitTestHeader.zip" target="_blank">uploads/2676/ReportHitTestHeader.zip</a><br><br><br>]]>
   </description>
   <pubDate>Thu, 19 May 2011 10:38:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18408&amp;PID=64491&amp;title=solved-hittest-header-problem#64491</guid>
  </item> 
 </channel>
</rss>