<?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 : Column rectangle after EnsureVisible()</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Column rectangle after EnsureVisible()]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 18 Apr 2026 19:55:23 +0000</pubDate>
  <lastBuildDate>Thu, 30 Sep 2010 15:32:09 +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=17357</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[Column rectangle after EnsureVisible() : I&amp;#039;ve createda custom report...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17357&amp;PID=60608&amp;title=column-rectangle-after-ensurevisible#60608</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1573">rock</a><br /><strong>Subject:</strong> 17357<br /><strong>Posted:</strong> 30 September 2010 at 3:32pm<br /><br />I've created&nbsp;a custom report header (<FONT size=2>CXTPReportHeader) for a report control that allows me to do something other than the default when clicking on a column header.&nbsp; When clicking on a partial column, I need the column to be visible.&nbsp; Calling either&nbsp;function CXTPReportColumn::EnsureVisible()&nbsp;or CXTPReportControl::EnsureVisible() work fine, but the CRect for the CXTPReportColumn remains unchanged after calling either EnsureVisible() function.&nbsp; I've tried calling CXTPReportControl::<FONT size=2>RedrawControl() after EnsureVisible() but the CRect remains unchanged.&nbsp; I've looked through the CXTPReportColumn, CXTPReportColumns, and CXTPReportControl classes and did not see any&nbsp;relevant functions for updating the column rectangle.&nbsp; Is there a way to update the CRect for the CXTPReportColumn class?<DIV></DIV><DIV>&nbsp;</DIV><DIV>The&nbsp;code for my CXTPReportHeader class for OnLButtonUp is:</DIV><DIV>&nbsp;</DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV><FONT color=#0000ff size=2><FONT color=#0000ff size=2>void</FONT></FONT><FONT size=2> CMyColumnHeader::OnLButtonUp(UINT nFlags, CPoint ptClick)</FONT></DIV><DIV><FONT size=2>{</FONT></DIV><DIV><FONT size=2>CXTPReportColumn *pCol = HitTest(ptClick);</FONT></DIV><DIV><FONT color=#0000ff size=2><FONT color=#0000ff size=2>if</FONT></FONT><FONT size=2> (pCol)</FONT></DIV><DIV><FONT size=2>{</FONT></DIV><DIV><FONT size=2>pCol-&gt;EnsureVisible();</FONT></DIV><DIV>//&nbsp;CRect unchanged whether or not either of the next 2&nbsp;lines are called</DIV><DIV><FONT size=2>GetControl()-&gt;RedrawControl();</FONT></DIV><DIV><FONT size=2>pCol = GetControl()-&gt;GetColumns()-&gt;GetAt(pCol-&gt;GetIndex());&nbsp;</FONT></DIV><DIV><FONT size=2>CRect rc(pCol-&gt;GetRect());</DIV><DIV>...</FONT></DIV></FONT></FONT>]]>
   </description>
   <pubDate>Thu, 30 Sep 2010 15:32:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17357&amp;PID=60608&amp;title=column-rectangle-after-ensurevisible#60608</guid>
  </item> 
 </channel>
</rss>