<?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 : HitTest and HeaderRows</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : HitTest and HeaderRows]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 18:34:47 +0000</pubDate>
  <lastBuildDate>Fri, 25 Jan 2008 09:29:56 +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=9395</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[HitTest and HeaderRows : I guess I should have looked before...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9395&amp;PID=30510&amp;title=hittest-and-headerrows#30510</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3523">Rafael</a><br /><strong>Subject:</strong> 9395<br /><strong>Posted:</strong> 25 January 2008 at 9:29am<br /><br />I guess I should have looked before asking.&nbsp; Found in the what's new page: <DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Release Date <BR>Version 11.2.2 December 12, 2007 </DIV><DIV>Xtreme Report Control<BR># Type Description <BR>1 Fixing source WatermarkAlignment added, use IconIndex and Alignment from item metrics <BR><FONT color=#ff0000>2 New feature Added HeaderRowsEnableSelection and FooterRowsEnableSelection properties <BR></FONT>3 Sample update VB.Net sample updated to show new report features related to header/footer rows </DIV><DIV><BR>Version 11.2.1 November 2, 2007 </DIV><DIV>Xtreme Report Control<BR># Type Description <BR>1 Fixing source AddRecordEx, RemoveRecordEx changed to work with records tree (record which has children) <BR>2 New feature UpdateRecord method added to update record position after changing data <BR><FONT color=#ff0000>3 New feature HeaderRowsAllowAccess, FooterRowsAllowAccess properties added </FONT><BR><FONT color=#ff0000>4 Fixing source Office 2007 theme added for 'Outlook' style of header/footer rows divider <BR></FONT><FONT color=#ff0000>5 Fixing source Header/Footer rows small fixes </FONT><BR><FONT color=#ff0000>6 Fixing source Fixed access violation bug with header/footer rows printing. (Issue #15020) </FONT><BR>7 Fixing source Removed unnecessary calls for CWnd::OnH/VScroll. Added pointer verification for not NULL before call <BR>8 Fixing source Bug in CXTPReportControl::SetFullColumnScrolling fixed (check for m_hWnd for window related operation added) <BR>9 New feature XTP_NM_REPORT_SELCHANGING added (Issue #15097) <BR>10 Fixing source Other small fixes with selection, moving focus, ... <BR>11 Sample update ReportCustomDraw MFC sample project moved from ExtendedSamples to general samples folder <BR></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Lots of changes to the header/footer action, we should get the new version.</DIV>]]>
   </description>
   <pubDate>Fri, 25 Jan 2008 09:29:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9395&amp;PID=30510&amp;title=hittest-and-headerrows#30510</guid>
  </item> 
  <item>
   <title><![CDATA[HitTest and HeaderRows : I have 11.2.0,is there any changes...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9395&amp;PID=30509&amp;title=hittest-and-headerrows#30509</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3523">Rafael</a><br /><strong>Subject:</strong> 9395<br /><strong>Posted:</strong> 25 January 2008 at 9:21am<br /><br />I have 11.2.0,&nbsp;is there any changes in the 11.2.2?]]>
   </description>
   <pubDate>Fri, 25 Jan 2008 09:21:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9395&amp;PID=30509&amp;title=hittest-and-headerrows#30509</guid>
  </item> 
  <item>
   <title><![CDATA[HitTest and HeaderRows : Yes, I understand you are looking...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9395&amp;PID=30508&amp;title=hittest-and-headerrows#30508</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3523">Rafael</a><br /><strong>Subject:</strong> 9395<br /><strong>Posted:</strong> 25 January 2008 at 9:17am<br /><br />Yes, I understand you are looking at the header and not the column header.<DIV>&nbsp;</DIV><DIV>Taken from the sample, the following code will say you hit an unknown area when you do a hit test.</DIV><DIV>&nbsp;</DIV><DIV>&lt;code&gt;</DIV><DIV>Private Sub wndReportControl_MouseDown(Button As Integer, Shift As Integer, X As Long, Y As Long)<BR>&nbsp;&nbsp;&nbsp; Dim hitColumn As ReportColumn<BR>&nbsp;&nbsp;&nbsp; Dim hitRow As ReportRow<BR>&nbsp;&nbsp;&nbsp; Dim hitItem As ReportRecordItem</DIV><DIV>&nbsp;&nbsp;&nbsp; 'The MouseDown event is being used to illustrate how the HitTest method can be used. The HitTest method does not have<BR>&nbsp;&nbsp;&nbsp; 'to be used with a mouse event, it can be used to test any X and Y coordinate on the screen to see if the ReportControl<BR>&nbsp;&nbsp;&nbsp; 'occupies these pixes and what part of the ReportControl is at the specified pixel (Group Box, Row, Item, etc).<BR>&nbsp;&nbsp;&nbsp; 'If it is dertermined that a ReportControl component is at the X and Y coordinates, the HitTest method can return a<BR>&nbsp;&nbsp;&nbsp; 'reference to that component (Column, Row, Record, Item, etc...).</DIV><DIV>&nbsp;&nbsp;&nbsp; 'Determines which part of the ReportControl the mouse was positioned over when clicked.<BR>&nbsp;&nbsp;&nbsp; Select Case wndReportControl.HitTest(X, Y).ht<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'If MouseDown while positioned anywhere over the Group Box (Even over Column Headers in Group Box)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Case xtpHitTestGroupBox:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Debug.Print "MouseDown in Group Box"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'If MouseDown while positioned anywhere over the ColumnHeader area. This does NOT include<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'column header in the Group Box<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Case xtpHitTestHeader:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Debug.Print "MouseDown in Column Header Area (Not in Group Box)"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'If MouseDown while positioned over the Report Area, this would includ, rows, columns, items, goup rows, expand buttons<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Case xtpHitTestReportArea:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Debug.Print "MouseDown in Report Area"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'This case will never happen, Unknown is returned when HitTest is called and the mouse is positioned<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'over an area outside of the report control<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Case xtpHitTestUnknown:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Debug.Print "Mouse is in an Unknown Area"<BR>&nbsp;&nbsp;&nbsp; End Select<BR>&nbsp;</DIV><DIV>End Sub</DIV><DIV>&lt;/code&gt;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>The unknown area is hit when you click on the header or footer, but it will not give you a row number or item where you clicked.&nbsp; So its not useful.</DIV><DIV>&nbsp;</DIV><DIV>I just wanted to show you that you can get the hit test to say something besides nothing.&nbsp; But your right, it still needs to give use item info.</DIV>]]>
   </description>
   <pubDate>Fri, 25 Jan 2008 09:17:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9395&amp;PID=30508&amp;title=hittest-and-headerrows#30508</guid>
  </item> 
  <item>
   <title><![CDATA[HitTest and HeaderRows : No, thank you,  I have no problem...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9395&amp;PID=30501&amp;title=hittest-and-headerrows#30501</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1122">mlatona</a><br /><strong>Subject:</strong> 9395<br /><strong>Posted:</strong> 25 January 2008 at 3:57am<br /><br />No, thank you,<DIV>&nbsp;</DIV><DIV>I have no problem with the column header. I have problems with the header rows. See the picture. The row below the column header is the header row (ReportControl.HeaderRows). The HitTest for this row don`t work.</DIV><DIV>&nbsp;</DIV><DIV><img src="https://forum.codejock.com/uploads/20080125_035457_ReportC&#111;ntrol.JPG" border="0"></DIV>]]>
   </description>
   <pubDate>Fri, 25 Jan 2008 03:57:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9395&amp;PID=30501&amp;title=hittest-and-headerrows#30501</guid>
  </item> 
  <item>
   <title><![CDATA[HitTest and HeaderRows : I cought the mouse down event...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9395&amp;PID=30490&amp;title=hittest-and-headerrows#30490</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3523">Rafael</a><br /><strong>Subject:</strong> 9395<br /><strong>Posted:</strong> 24 January 2008 at 2:17pm<br /><br />I cought the mouse down event and ran the hit test on the header and it matches the hit test code xtpHitTestUnknown or 0.<DIV>&nbsp;</DIV><DIV>Not entirely helpful, but I didn't get 'Nothing'</DIV><DIV>&nbsp;</DIV><DIV>Do you need the code I used?</DIV>]]>
   </description>
   <pubDate>Thu, 24 Jan 2008 14:17:36 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9395&amp;PID=30490&amp;title=hittest-and-headerrows#30490</guid>
  </item> 
  <item>
   <title><![CDATA[HitTest and HeaderRows : No, I click on a header row. This...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9395&amp;PID=30487&amp;title=hittest-and-headerrows#30487</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1122">mlatona</a><br /><strong>Subject:</strong> 9395<br /><strong>Posted:</strong> 24 January 2008 at 12:12pm<br /><br />No, I click on a header row. This is a row from the HeaderRows collection.<DIV><DIV></DIV>The report control have HeaderRows, normal&nbsp;Rows and FooterRows collections.</DIV><DIV>&nbsp;</DIV><DIV>The HitTest works only with normal Rows.</DIV>]]>
   </description>
   <pubDate>Thu, 24 Jan 2008 12:12:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9395&amp;PID=30487&amp;title=hittest-and-headerrows#30487</guid>
  </item> 
  <item>
   <title><![CDATA[HitTest and HeaderRows : Are you clicking on a column header?...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9395&amp;PID=30486&amp;title=hittest-and-headerrows#30486</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3523">Rafael</a><br /><strong>Subject:</strong> 9395<br /><strong>Posted:</strong> 24 January 2008 at 12:01pm<br /><br />Are you clicking on a column header?&nbsp; You can catch that event with ReportControl_ColumnClick(column)]]>
   </description>
   <pubDate>Thu, 24 Jan 2008 12:01:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9395&amp;PID=30486&amp;title=hittest-and-headerrows#30486</guid>
  </item> 
  <item>
   <title><![CDATA[HitTest and HeaderRows : Hi,  the HitTest function don`t...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9395&amp;PID=30426&amp;title=hittest-and-headerrows#30426</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1122">mlatona</a><br /><strong>Subject:</strong> 9395<br /><strong>Posted:</strong> 23 January 2008 at 8:53am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>the HitTest function don`t works with header rows. If I click in a header row, the HitTest function return "Nothing" for the item, column, row object.</DIV><DIV>&nbsp;</DIV><DIV>Regards</DIV><DIV>Marco</DIV>]]>
   </description>
   <pubDate>Wed, 23 Jan 2008 08:53:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9395&amp;PID=30426&amp;title=hittest-and-headerrows#30426</guid>
  </item> 
 </channel>
</rss>