<?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 : Hot track item</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Hot track item]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 15 Apr 2026 01:44:15 +0000</pubDate>
  <lastBuildDate>Thu, 06 Apr 2006 15:13:57 +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=3936</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[Hot track item : Hi,There are no an easy setting...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3936&amp;PID=12019&amp;title=hot-track-item#12019</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 3936<br /><strong>Posted:</strong> 06 April 2006 at 3:13pm<br /><br />Hi,<br><br>There are no an easy setting for this, but you can do it in a custom way in 2 following steps:<br><br>1) Add a code to GetItemMetrics() method to draw a report cell underlined where a mouse currently placed. It could be like a following:<br><table width="99%"><tr><td><pre class="BBcode"><br>void CMessageRecord::GetItemMetrics(...)<br>{<br>...<br>&nbsp;&nbsp;&nbsp; if (pView &amp;&amp; pDrawArgs-&gt;pColumn &amp;&amp; pDrawArgs-&gt;pControl &amp;&amp; pDrawArgs-&gt;pColumn-&gt;GetIndex() == 5)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; // Get the current mouse location and convert it to client coordinates.<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; DWORD pos = GetMessagePos();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CPoint ptCur(LOWORD(pos), HIWORD(pos));<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pDrawArgs-&gt;pControl-&gt;ScreenToClient(&amp;ptCur);<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (pDrawArgs-&gt;rcItem.PtInRect(ptCur))<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; static CFont m_fontUnderlined;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (!m_fontUnderlined.GetSafeHandle())<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; LOGFONT lf;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;  pDrawArgs-&gt;pControl-&gt;GetPaintManager()-&gt;m_fontText. GetLogFont(&amp;lf);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; lf.lfUnderline = TRUE;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_fontUnderlined.CreateFontIndirect(&amp;lf);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pItemMetrics-&gt;pFont = &amp;m_fontUnderlined;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; }<br>...<br></pre></td></tr></table><br><br>2) Add report control redrawing on mouse move inside a Report Control:<br><table width="99%"><tr><td><pre class="BBcode"><br>void CYourReport::OnReportMouseMove(...)<br>{<br>&nbsp;&nbsp;&nbsp; GetReportCtrl().RedrawControl();<br>}<br></pre></td></tr></table><br><br>--<br>WBR,<br>Serge<br>]]>
   </description>
   <pubDate>Thu, 06 Apr 2006 15:13:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3936&amp;PID=12019&amp;title=hot-track-item#12019</guid>
  </item> 
  <item>
   <title><![CDATA[Hot track item : Hi How is it possible to hot...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3936&amp;PID=11931&amp;title=hot-track-item#11931</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=97">douglashogan</a><br /><strong>Subject:</strong> 3936<br /><strong>Posted:</strong> 03 April 2006 at 3:39pm<br /><br /><P>Hi</P><P>How is it possible to hot track with an underline in the report control? I want to hot track the first column of the rows.</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Mon, 03 Apr 2006 15:39:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3936&amp;PID=11931&amp;title=hot-track-item#11931</guid>
  </item> 
 </channel>
</rss>