<?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 : ReportControl</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : ReportControl]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 10 Jun 2026 08:30:09 +0000</pubDate>
  <lastBuildDate>Fri, 17 Jul 2009 01:13:35 +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=14715</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[ReportControl : Hi,  GetCount return always...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14715&amp;PID=51036&amp;title=reportcontrol#51036</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 14715<br /><strong>Posted:</strong> 17 July 2009 at 1:13am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>GetCount return always number of records inside its array. if it returns 0, you do something wrong in your code. Send sample application and I help you find this problem.</DIV>]]>
   </description>
   <pubDate>Fri, 17 Jul 2009 01:13:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14715&amp;PID=51036&amp;title=reportcontrol#51036</guid>
  </item> 
  <item>
   <title><![CDATA[ReportControl : I tried to call OnAddRecord directly...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14715&amp;PID=51020&amp;title=reportcontrol#51020</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3516">securigy</a><br /><strong>Subject:</strong> 14715<br /><strong>Posted:</strong> 16 July 2009 at 3:16pm<br /><br />I tried to call OnAddRecord directly instead of posting the message - it did not change a thing... I still get '0' when I call pRecords-&gt;GetCount();<DIV>Is it a bug?</DIV>]]>
   </description>
   <pubDate>Thu, 16 Jul 2009 15:16:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14715&amp;PID=51020&amp;title=reportcontrol#51020</guid>
  </item> 
  <item>
   <title><![CDATA[ReportControl : I guess there is no real reason...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14715&amp;PID=50866&amp;title=reportcontrol#50866</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3516">securigy</a><br /><strong>Subject:</strong> 14715<br /><strong>Posted:</strong> 10 July 2009 at 3:01pm<br /><br />I guess there is no real reason for that in this particular situation, but I also do it from other threads via PostMessage...Why do you think it make a difference? I can try to call it directly and let you know if it changed anything...]]>
   </description>
   <pubDate>Fri, 10 Jul 2009 15:01:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14715&amp;PID=50866&amp;title=reportcontrol#50866</guid>
  </item> 
  <item>
   <title><![CDATA[ReportControl : Hi, Why do you send mssage and...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14715&amp;PID=50831&amp;title=reportcontrol#50831</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 14715<br /><strong>Posted:</strong> 10 July 2009 at 5:56am<br /><br /><P>Hi,</P><DIV>Why do you send mssage and not call OnAddRecordEx directly ?</DIV>]]>
   </description>
   <pubDate>Fri, 10 Jul 2009 05:56:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14715&amp;PID=50831&amp;title=reportcontrol#50831</guid>
  </item> 
  <item>
   <title><![CDATA[ReportControl : I add records to report control...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14715&amp;PID=50825&amp;title=reportcontrol#50825</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3516">securigy</a><br /><strong>Subject:</strong> 14715<br /><strong>Posted:</strong> 09 July 2009 at 9:54pm<br /><br /><EM><U>I add records to report control like this:</U></EM><DIV><BR></DIV><FONT size=2><P>CMessageRecord* pMsg = </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>new</FONT></FONT><FONT size=2> CMessageRecord( nIconId, </P><P>dwMinorClassId, csItem&#091;0&#093;, csItem&#091;1&#093;, csItem&#091;2&#093;, csItem&#091;3&#093;, nConnIconId, nRemIconId, nAuthIconId, csItem&#091;7&#093;, csItem&#091;8&#093;, pDevInfo, tDEVICE);</P></FONT><FONT size=2><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>if</FONT></FONT><FONT size=2>(pMsg)</P><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>this</FONT></FONT><FONT size=2>-&gt;SendMessage(WM_ADD_RECORD_EX, (WPARAM)pMsg, 0);</P></BLOCKQUOTE><DIV dir=ltr><EM><U>while the message handler in report control is quite generic:</U></EM></DIV><DIV></DIV><FONT size=2><P>LRESULT CReportControl::OnAddRecordEx(WPARAM wParam, LPARAM </FONT><FONT color=#008000 size=2><FONT color=#008000 size=2>/*lParam*/</FONT></FONT><FONT size=2>)</P><P>{</P><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><P>CXTPReportRecord* pRecord = (CXTPReportRecord*)wParam;</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>if</FONT></FONT><FONT size=2>(!pRecord)</P><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>return</FONT></FONT><FONT size=2> -1;</P></BLOCKQUOTE></FONT><FONT size=2><P>AddRecord(pRecord);</P><P>Populate();</P></FONT><FONT size=2><P></P><P>RedrawControl();</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>return</FONT></FONT><FONT size=2> 0;</P></BLOCKQUOTE><P>}</P><DIV></DIV><DIV></DIV>The records are displayed in the control. However,&nbsp;when&nbsp;I try right away to update a record and in CREportControl::OnUpdateRecord handler call:<DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV></FONT><DIV>&nbsp;</DIV><FONT size=2><P>CXTPReportRecords* pRecords = GetRecords();</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>int</FONT></FONT><FONT size=2> iCount = pRecords-&gt;GetCount();</P><DIV></DIV><DIV><U>the iCount is 0 !!!</U></DIV><DIV><U></U>&nbsp;</DIV><DIV><U>Anybody can shed a light what I am nissing here?</U></FONT></DIV></FONT>]]>
   </description>
   <pubDate>Thu, 09 Jul 2009 21:54:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14715&amp;PID=50825&amp;title=reportcontrol#50825</guid>
  </item> 
 </channel>
</rss>