<?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 : Improvement: simulated mouse click event</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Improvement: simulated mouse click event]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 04 Jun 2026 06:28:03 +0000</pubDate>
  <lastBuildDate>Thu, 31 Jul 2014 04:33:00 +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=22375</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[Improvement: simulated mouse click event :  HelloI/we use the feature to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22375&amp;PID=72692&amp;title=improvement-simulated-mouse-click-event#72692</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3301">Michl</a><br /><strong>Subject:</strong> 22375<br /><strong>Posted:</strong> 31 July 2014 at 4:33am<br /><br />Hello<br><br>I/we use the feature to editing a cell via mouse double click.<br><span id="result_" lang="en"><span>In our particular</span> <span>case,</span> <span>the user must first</span> <span>authenticate</span> <span>before being allowed to</span> <span>proceed.</span> </span><br>(this is done in event XTP_NM_REPORT_REQUESTEDIT)<br><br>This works fine. <span id="result_" lang="en"><span>But</span> <span>after authentication</span><span>, the following</span> <span>code is executed in </span></span>CXTPReportRecordItem::OnDblClick:<br><br><table width="99%"><tr><td><pre class="BBcode"><br>CXTPReportInplaceEdit* pEdit = DYNAMIC_DOWNCAST(CXTPReportInplaceEdit, CWnd::FromHandle(WindowFromPoint(pt)));<br>if (pEdit &amp;&amp; pEdit-&gt;GetItem() == this)<br>{<br>&nbsp;&nbsp; CXTPReportRecordItemEditOptions* pEditOptions = GetEditOptions(pClickArgs-&gt;pColumn);<br><br>&nbsp;&nbsp; if (pEditOptions-&gt;m_bSelectTextOnEdit)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pEdit-&gt;SetSel(0, -1);<br>&nbsp;&nbsp; else<br>&nbsp; &nbsp;&nbsp;&nbsp; <font color="#FF0000">DoMouseButtonClick();</font><br>}<br></pre></td></tr></table><br><br><span id="result_" lang="en"><span>This line</span> <span>simulates</span> <span>a click event</span> <span>at the current mouse</span> <span>position.</span> <span>However, if the user </span></span>shows a dialog before (for whatever reason), <span id="result_" lang="en"><span>it must</span> <span>be borne in mind</span> <span>that</span> <span></span><span>mouse position</span> <span>is no longer</span> <span>located at the</span> <span>expected</span> <span>position.</span> </span><br><br>I think the click event should fired at absolute mouse coordinates (coordinate of double click event of user)<br><br>Regards<br>]]>
   </description>
   <pubDate>Thu, 31 Jul 2014 04:33:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22375&amp;PID=72692&amp;title=improvement-simulated-mouse-click-event#72692</guid>
  </item> 
 </channel>
</rss>