<?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 : OnReportSelChanged doesn&#039;t seem to have valid row</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : OnReportSelChanged doesn&#039;t seem to have valid row]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 05 Jun 2026 20:37:34 +0000</pubDate>
  <lastBuildDate>Sun, 27 Aug 2006 16:23:02 +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=4885</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[OnReportSelChanged doesn&#039;t seem to have valid row : Hi Derek,It&amp;#039;s actually a...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4885&amp;PID=15250&amp;title=onreportselchanged-doesnt-seem-to-have-valid-row#15250</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 4885<br /><strong>Posted:</strong> 27 August 2006 at 4:23pm<br /><br />Hi <font><font size="2">Derek,<br><br>It's actually a bug in the documentation. Actually on this notification you only receive pointer to a regular </font></font><font size="2"><font face="Courier New, Courier, mono">NMHDR</font></font><font><font size="2"> structure, not to </font></font><font size="2"><font face="Courier New, Courier, mono">XTP_NM_REPORTRECORDITEM</font></font><font><font size="2">. So far this type conversion is not allowed.<br><br>This is so because after changing a selection, it could be simply accessed via GetSelectedRows() method of the Report control.<br><br>--<br>WBR,<br>Serge<br> </font></font>]]>
   </description>
   <pubDate>Sun, 27 Aug 2006 16:23:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4885&amp;PID=15250&amp;title=onreportselchanged-doesnt-seem-to-have-valid-row#15250</guid>
  </item> 
  <item>
   <title><![CDATA[OnReportSelChanged doesn&#039;t seem to have valid row :  Hi, I am using a message handler...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4885&amp;PID=15225&amp;title=onreportselchanged-doesnt-seem-to-have-valid-row#15225</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2151">drisch</a><br /><strong>Subject:</strong> 4885<br /><strong>Posted:</strong> 25 August 2006 at 11:34am<br /><br /><FONT size=2><P>Hi,</P><P>I am using a message handler for XTP_NM_REPORT_SELCHANGED and interpreting the passed in value as a XTP_NM_REPORTRECORDITEM. Though the pItemNotify-&gt;pRow and pItemNotify-&gt;pColumn are not null, they also don't seem to be rows or columns as I get a crash any time I try to do something with these pointers such as calling GetIndex() as below:</P><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><P><FONT face="Courier New, Courier, mono">ON_NOTIFY(XTP_NM_REPORT_SELCHANGED, IDC_REPORT_CTRL, OnReportSelChanged)</FONT></P><P><FONT face="Courier New, Courier, mono">void CRefTableDlg::OnReportSelChanged(NMHDR* pNMHDR, LRESULT* pResult)</FONT></P><P><FONT face="Courier New, Courier, mono">{</FONT></P><P><FONT face="Courier New, Courier, mono">XTP_NM_REPORTRECORDITEM* pItemNotify = (XTP_NM_REPORTRECORDITEM*)pNMHDR;</FONT></P><P><FONT face="Courier New, Courier, mono">int index = pItemNotify-&gt;pColumn-&gt;GetIndex(); // causes crash</FONT></P><P><FONT face="Courier New, Courier, mono">}</FONT></P></BLOCKQUOTE><P>Is this a bug with the toolkit or am I doing something wrong? (I am using v9.81.)</P><P>Thanks,</P><P>Derek</P></FONT>]]>
   </description>
   <pubDate>Fri, 25 Aug 2006 11:34:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4885&amp;PID=15225&amp;title=onreportselchanged-doesnt-seem-to-have-valid-row#15225</guid>
  </item> 
 </channel>
</rss>