<?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 : Using the event sink methods</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Property Grid : Using the event sink methods]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 19 Apr 2026 07:00:33 +0000</pubDate>
  <lastBuildDate>Thu, 07 Oct 2010 10:06:34 +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=17393</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[Using the event sink methods : Hi,  I am usingthe CXTPPropertyGrid...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17393&amp;PID=60751&amp;title=using-the-event-sink-methods#60751</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6392">cyrilthom</a><br /><strong>Subject:</strong> 17393<br /><strong>Posted:</strong> 07 October 2010 at 10:06am<br /><br />Hi,<DIV>&nbsp;&nbsp;&nbsp; I am using&nbsp;the &nbsp;<FONT size=2>CXTPPropertyGrid class to create a grid for my application.</FONT></DIV><DIV><FONT size=2>Later on i realised that i would need to use the event sink methods.For this purpose i decided to&nbsp;use an object of a class derived from the <FONT size=2>CXTPPropertyGrid class.</FONT></FONT></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;For Eg.<FONT color=#0000ff size=2><FONT color=#0000ff size=2></DIV><P>class</FONT></FONT><FONT size=2> CPane : </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>public&nbsp;</FONT></FONT><FONT size=2>&nbsp;CXTPPropertyGrid {</P><DIV>//constructors...</DIV><DIV>&nbsp;</DIV><DIV>public:</DIV><DIV><FONT size=2>DECLARE_EVENTSINK_MAP()</FONT></DIV><DIV>&nbsp;</DIV><DIV>//functions include...</DIV><DIV>&nbsp;</DIV><DIV><FONT size=2>afx_msg </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>void</FONT></FONT><FONT size=2> OnDblClick();</DIV><DIV><DIV>afx_msg </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>void</FONT></FONT><FONT size=2> OnScroll();</FONT></DIV><DIV><FONT size=2>afx_msg </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>void</FONT></FONT><FONT size=2> OnLeaveCell();</DIV></FONT></DIV><DIV>};</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Now in my cpp i have included the events map as shown..</DIV><DIV><FONT size=2><P>BEGIN_EVENTSINK_MAP(CPane , CXTPPropertyGrid )</P><P>ON_EVENT_REFLECT(CPane , -601 </FONT><FONT color=#008000 size=2><FONT color=#008000 size=2>/* DblClick */</FONT></FONT><FONT size=2>, OnDblClick, VTS_NONE)</P><P>ON_EVENT_REFLECT(CPane , 73 </FONT><FONT color=#008000 size=2><FONT color=#008000 size=2>/* Scroll */</FONT></FONT><FONT size=2>, OnScroll, VTS_NONE)</FONT><FONT size=2></P><P>ON_EVENT_REFLECT(CPane , 72 </FONT><FONT color=#008000 size=2><FONT color=#008000 size=2>/* LeaveCell */</FONT></FONT><FONT size=2>, OnLeaveCell, VTS_NONE)</P><P></FONT><P><FONT size=2></P><P></P>END_EVENTSINK_MAP()</P></FONT></DIV><DIV>and defined the functions.....</DIV><DIV>&nbsp;</DIV><DIV>but on executing if i double click on any cell it never&nbsp;hits the "OnDblClick" function ,not dos the leavecell method work.</DIV><DIV>&nbsp;</DIV><DIV>If I am to use a CMSFlexGrid object the same way it works fine.Seeing that both of them are derived from CWnd I am not sure why it does not work in the in case of the "CXTPPropertyGrid " class.</DIV><DIV>I&nbsp;would be really grateful if some one could tell me where i am going wrong.</DIV><DIV>&nbsp;</DIV><DIV>Thanks :)</DIV><DIV></FONT>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 07 Oct 2010 10:06:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17393&amp;PID=60751&amp;title=using-the-event-sink-methods#60751</guid>
  </item> 
 </channel>
</rss>