<?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 : CXTPPropertyGridItemDate notifications in OnDockin</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Property Grid : CXTPPropertyGridItemDate notifications in OnDockin]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 17 Apr 2026 02:05:39 +0000</pubDate>
  <lastBuildDate>Tue, 03 May 2011 09:17: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=13701</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[CXTPPropertyGridItemDate notifications in OnDockin : Hi, did you ever receive a solution...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13701&amp;PID=64165&amp;title=cxtppropertygriditemdate-notifications-in-ondockin#64165</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5359">link</a><br /><strong>Subject:</strong> 13701<br /><strong>Posted:</strong> 03 May 2011 at 9:17am<br /><br />Hi, did you ever receive a solution to this problem? Experiencing the same here.<DIV>Oleg, you have anything to offer?</DIV><DIV>&nbsp;</DIV><DIV><FONT face="Courier New" size=2>In summary, xtpPaneActionDeactivated action is called in OnGridNotify(...) when date selector object gains focus in a CXTPPropertyGridItemDate item in property grid.</FONT></DIV>]]>
   </description>
   <pubDate>Tue, 03 May 2011 09:17:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13701&amp;PID=64165&amp;title=cxtppropertygriditemdate-notifications-in-ondockin#64165</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPPropertyGridItemDate notifications in OnDockin :  We are using a CXTPPropertyGrid...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13701&amp;PID=46769&amp;title=cxtppropertygriditemdate-notifications-in-ondockin#46769</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3332">andrewg</a><br /><strong>Subject:</strong> 13701<br /><strong>Posted:</strong> 16 March 2009 at 3:41pm<br /><br /><FONT face="Courier New" color=#0000ff size=2><P>We are using a CXTPPropertyGrid in a Pane (actually in a view in a Pane) to edit data, and we need to detect when the user leaves the Grid in order to handle update logic (such as unsaved changes, etc).</P><P>In the application's CMainFrame class, we handle </FONT><FONT face="Courier New" size=2>XTPWM_DOCKINGPANE_NOTIFY, and look for XTP_PANE_ACTION. We want to handle any deactivation of the Property Pane. The code is like this:</P></FONT><FONT face="Courier New" color=#0000ff size=2><P>if</FONT><FONT face="Courier New" size=2>(wParam == XTP_DPN_ACTION) {</P><P>XTP_DOCKINGPANE_ACTION * pAction = (XTP_DOCKINGPANE_ACTION *)lParam;</P><P></FONT><FONT face="Courier New" color=#008000 size=2>// CString dbg; dbg.LoadStringA(pAction-&gt;pPane-&gt;GetID());</P></FONT><FONT face="Courier New" size=2><P></FONT><FONT face="Courier New" color=#008000 size=2>// TRACE3("%s: ID %d, action %d, ", dbg.GetBuffer(), pAction-&gt;pPane-&gt;GetID(), pAction-&gt;action);</P></FONT><FONT face="Courier New" size=2><P></P><P></FONT><FONT face="Courier New" color=#0000ff size=2>if</FONT><FONT face="Courier New" size=2>(pAction-&gt;pPane-&gt;GetID() == IDR_PANE_PROPERTIES) {</P><P>XTPDockingPaneAction action = pAction-&gt;action;</P><P></FONT><FONT face="Courier New" color=#0000ff size=2>if</FONT><FONT face="Courier New" size=2>(action == xtpPaneActionDeactivated) {</P><P>TRACE(</FONT><FONT face="Courier New" color=#800000 size=2>"Deactivating Property Pane\n"</FONT><FONT face="Courier New" size=2>);</P><P>CWnd * window = pAction-&gt;pPane-&gt;GetChild();</P><P>window-&gt;SendMessageToDescendants(WM_CFTPO_CLOSEVIEW); </P><P>}</P><P>}</P><P>}</P><P>This works well, with one exception. The problem we have is that we get this message, and fall into the "Deactivating Property Pane" code, if the user selects a value in a drop down calendar in a CXTPPropertyGridItemDate object.</P><P>It seems that the drop down calendar is a CWnd of its own, and that it therefore Posts the deactivation notification regarding the Property Grid, just as though it were some external window.</P><P>Is there a way to avoid this? If there was a way to tell if the xtpPaneActionDeactivated notification was provoked by a move into a Child window of the property pane, then notifications from a Calendar drop down could be ignored.</P><P>I am sure that we are not the only people using CXTPPropertyGridItemDates and trying to detect departures from the CXTPPropertyGrid -- has anyone else come across the issue?</P><P>Any help or hints appreciated,</P><P>&nbsp;</P><P>&nbsp;</P></FONT><FONT size=2><P>&nbsp;</P></FONT>]]>
   </description>
   <pubDate>Mon, 16 Mar 2009 15:41:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13701&amp;PID=46769&amp;title=cxtppropertygriditemdate-notifications-in-ondockin#46769</guid>
  </item> 
 </channel>
</rss>