<?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 : ReportItemControl &#039;SetCapture&#039; problem</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : ReportItemControl &#039;SetCapture&#039; problem]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 18 Apr 2026 20:27:48 +0000</pubDate>
  <lastBuildDate>Sun, 22 Nov 2009 23:14:29 +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=15691</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[ReportItemControl &#039;SetCapture&#039; problem : Can&amp;#039;t confirm - try this:  void...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15691&amp;PID=55072&amp;title=reportitemcontrol-setcapture-problem#55072</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 15691<br /><strong>Posted:</strong> 22 November 2009 at 11:14pm<br /><br />Can't confirm - try this:<DIV><FONT color=#0000ff size=2><P>void</FONT><FONT size=2> CReportItemControlsDlg::OnItemButtonClick(NMHDR * pNotifyStruct, LRESULT*) {</P><P>XTP_NM_REPORTITEMCONTROL* pItemNotify = (XTP_NM_REPORTITEMCONTROL*) pNotifyStruct;</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (!(pItemNotify-&gt;pRow &amp;&amp; pItemNotify-&gt;pItem &amp;&amp; pItemNotify-&gt;pItemControl)) </FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2>;</P><FONT size=2><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (AfxMessageBox(_T(</FONT><FONT color=#a31515 size=2>"AfxMessageBox"</FONT><FONT size=2>), MB_OKCANCEL) != IDOK) </FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2>;</P></FONT></FONT><FONT size=2><DIV></FONT><FONT color=#0000ff size=2>switch</FONT><FONT size=2>(pItemNotify-&gt;pItemControl-&gt;GetIndex()) ........................</DIV></FONT></DIV>]]>
   </description>
   <pubDate>Sun, 22 Nov 2009 23:14:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15691&amp;PID=55072&amp;title=reportitemcontrol-setcapture-problem#55072</guid>
  </item> 
  <item>
   <title><![CDATA[ReportItemControl &#039;SetCapture&#039; problem :  I found some faults in extreme...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15691&amp;PID=55066&amp;title=reportitemcontrol-setcapture-problem#55066</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2624">yayo</a><br /><strong>Subject:</strong> 15691<br /><strong>Posted:</strong> 22 November 2009 at 8:32pm<br /><br /><DIV><DIV>I found some faults in extreme toolkit codes.</DIV><DIV>I want for you to&nbsp;modify a message function as follows.</DIV><DIV>&nbsp;</DIV><DIV>void CReportItemControlsDlg::OnItemButtonClick(NMHDR * pNotifyStruct, LRESULT*)<BR>{<BR>&nbsp;XTP_NM_REPORTITEMCONTROL* pItemNotify = (XTP_NM_REPORTITEMCONTROL*) pNotifyStruct;<BR>&nbsp;if(!(pItemNotify-&gt;pRow &amp;&amp; pItemNotify-&gt;pItem &amp;&amp; pItemNotify-&gt;pItemControl))<BR>&nbsp;&nbsp;return;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;CTestDlg dlg;<BR>&nbsp;dlg.DoModal(); // CTestDlg doesn't work due to receiving a messeage in&nbsp;ReleaseCapture(). please refer to&nbsp;a modified code that&nbsp;I attached.</DIV><DIV>&nbsp;</DIV><DIV>...</DIV><DIV>&nbsp;</DIV><DIV>}</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>I recommand as follows:</DIV></DIV><DIV>&nbsp;</DIV><DIV>BOOL CXTPReportRecordItem::OnLButtonUp(XTP_REPORTRECORDITEM_CLICKARGS* pClickArgs)<BR>{<BR>&nbsp;if (m_pItemControlHookWnd &amp;&amp; m_pFocusedItemControl)<BR>&nbsp;{<BR>&nbsp;&nbsp;pClickArgs-&gt;pControl-&gt;ScreenToClient(&amp;pClickArgs-&gt;ptClient);</DIV><DIV>//&nbsp;&nbsp;&nbsp;yayo write : </DIV><DIV>&nbsp;// destroy item control window<BR>&nbsp;&nbsp;ReleaseCapture();</DIV><P>&nbsp;&nbsp;m_pFocusedItemControl-&gt;OnLButtonUp(pClickArgs); // XTP_NM_REPORT_ITEMBUTTONCLICK&nbsp;<BR>&nbsp;&nbsp;pClickArgs-&gt;pControl-&gt;RedrawControl();<BR>&nbsp;&nbsp;</P><DIV>// yayo <BR>&nbsp;&nbsp;// destroy item control window<BR>&nbsp;&nbsp;//ReleaseCapture();<BR>&nbsp;&nbsp;m_pItemControlHookWnd-&gt;DestroyWindow();<BR>&nbsp;&nbsp;delete m_pItemControlHookWnd;<BR>&nbsp;&nbsp;m_pItemControlHookWnd = NULL;<BR>&nbsp;&nbsp;return TRUE;<BR>&nbsp;}</DIV><DIV></DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Sun, 22 Nov 2009 20:32:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15691&amp;PID=55066&amp;title=reportitemcontrol-setcapture-problem#55066</guid>
  </item> 
 </channel>
</rss>