<?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 : Cast in OnGridNotify() method</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Cast in OnGridNotify() method]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 13 Jun 2026 22:44:40 +0000</pubDate>
  <lastBuildDate>Fri, 13 Jul 2007 16:59:05 +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=7573</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[Cast in OnGridNotify() method : Great!Oleg, thank you very much!!!...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7573&amp;PID=24465&amp;title=cast-in-ongridnotify-method#24465</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3124">Gorkystreet</a><br /><strong>Subject:</strong> 7573<br /><strong>Posted:</strong> 13 July 2007 at 4:59pm<br /><br />Great!<br>Oleg, thank you very much!!! Now everything is fine! <br>How do you think - maybe it is worth to include such sample cast into the some sample application with grid in it? I guess it would be very useful for such new toolkit users like me ;)<br>Anyway thanks again!<br>]]>
   </description>
   <pubDate>Fri, 13 Jul 2007 16:59:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7573&amp;PID=24465&amp;title=cast-in-ongridnotify-method#24465</guid>
  </item> 
  <item>
   <title><![CDATA[Cast in OnGridNotify() method : Hi, Just wrote that lParam is...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7573&amp;PID=24442&amp;title=cast-in-ongridnotify-method#24442</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 7573<br /><strong>Posted:</strong> 13 July 2007 at 5:29am<br /><br /><FONT color=#000000>Hi,</FONT><DIV><FONT color=#000000>Just wrote that lParam is CXTPPropertyGridInplaceEdit... You need</FONT></DIV><DIV><FONT color=#000000></FONT>&nbsp;</DIV><DIV><FONT color=#000000>CXTPPropertyGridInplaceEdit* pEdit = DYNAMIC_DOWNCAST(CXTPPropertyGridInplaceEdit, (CWnd*)lParam); </FONT></DIV><DIV><FONT color=#000000>CCustomItemCheckBox* pItem = DYNAMIC_DOWNCAST(CCustomItemCheckBox,&nbsp; pEdit -&gt;GetItem()); <BR></FONT></DIV>]]>
   </description>
   <pubDate>Fri, 13 Jul 2007 05:29:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7573&amp;PID=24442&amp;title=cast-in-ongridnotify-method#24442</guid>
  </item> 
  <item>
   <title><![CDATA[Cast in OnGridNotify() method : Excuse me Oleg,I made some additional...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7573&amp;PID=24438&amp;title=cast-in-ongridnotify-method#24438</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3124">Gorkystreet</a><br /><strong>Subject:</strong> 7573<br /><strong>Posted:</strong> 12 July 2007 at 6:02pm<br /><br />Excuse me Oleg,<br>I made some additional testing on my custom control and one problem is still having place. As I mentioned it is <br><font color="#0033ff">CXTPPropertyGridItemEnum</font>-derived control with a check-box in it. I need obtain a pointer on it in XTP_PGN_EDIT_CHANGED notif. event. I'm failing the following method:<br><font color="#0033ff">CCustomItemCheckBox* pItem = DYNAMIC_DOWNCAST(CCustomItemCheckBox, (CWnd*)lParam); <br><font color="#000000">pItem is NULL in such case. What cast should I perform to obtain the proper pointer? </font><br></font>]]>
   </description>
   <pubDate>Thu, 12 Jul 2007 18:02:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7573&amp;PID=24438&amp;title=cast-in-ongridnotify-method#24438</guid>
  </item> 
  <item>
   <title><![CDATA[Cast in OnGridNotify() method : Thank you Oleg, this information...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7573&amp;PID=24437&amp;title=cast-in-ongridnotify-method#24437</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3124">Gorkystreet</a><br /><strong>Subject:</strong> 7573<br /><strong>Posted:</strong> 12 July 2007 at 4:28pm<br /><br />Thank you Oleg, <br>this information is right what I need. <br>]]>
   </description>
   <pubDate>Thu, 12 Jul 2007 16:28:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7573&amp;PID=24437&amp;title=cast-in-ongridnotify-method#24437</guid>
  </item> 
  <item>
   <title><![CDATA[Cast in OnGridNotify() method :  Hi,   in XTP_PGN_EDIT_CHANGED...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7573&amp;PID=24383&amp;title=cast-in-ongridnotify-method#24383</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 7573<br /><strong>Posted:</strong> 11 July 2007 at 5:35am<br /><br /><FONT color=#000000><DIV>Hi,</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>in XTP_PGN_EDIT_CHANGED lParam is </FONT></DIV><DIV></DIV><FONT color=#000000>CXTPPropertyGridInplaceEdit* pEdit = DYNAMIC_DOWNCAST(CXTPPropertyGridInplaceEdit, (CWnd*)lParam);</FONT><DIV>&nbsp;</DIV><DIV><FONT color=#000000>for XTP_PGN_SELECTION_CHANGED, XTP_PGN_ITEMVALUE_CHANGED</FONT></DIV><DIV><FONT color=#000000>CXTPPropertyGridItem* pItem = (CXTPPropertyGridItem*)lParam;<BR></FONT></DIV><DIV><FONT color=#000000>for XTP_PGN_INPLACEBUTTONDOWN</FONT></DIV><DIV><FONT color=#000000>CXTPPropertyGridInplaceButton* pButton = (CXTPPropertyGridInplaceButton*)lParam;</FONT></DIV><P><FONT color=#000000>please copy this code from our sample - Samples\PropertyGrid\GridSample\PropertyGridDlg.cpp <BR></P></FONT><FONT color=#0000ff></FONT>]]>
   </description>
   <pubDate>Wed, 11 Jul 2007 05:35:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7573&amp;PID=24383&amp;title=cast-in-ongridnotify-method#24383</guid>
  </item> 
  <item>
   <title><![CDATA[Cast in OnGridNotify() method : Hmm, it is very interesting. I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7573&amp;PID=24379&amp;title=cast-in-ongridnotify-method#24379</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3124">Gorkystreet</a><br /><strong>Subject:</strong> 7573<br /><strong>Posted:</strong> 11 July 2007 at 4:24am<br /><br />Hmm, it is very interesting. I use some codes, such as <FONT color=#0000ff>XTP_PGN_EDIT_CHANGED,</FONT><DIV><FONT color=#0000ff>XTP_PGN_SELECTION_CHANGED,</FONT></DIV><DIV><FONT color=#0000ff>XTP_PGN_ITEMVALUE_CHANGED,</FONT></DIV><DIV>can you say&nbsp;to what&nbsp;<FONT color=#0066ff>lParam</FONT><FONT color=#000000> points for each of these codes,</FONT></DIV><DIV>and for those codes which are defined but not listed here? thank you.</DIV><DIV>It is possible&nbsp;that I will have to add some more custom codes to work </DIV><DIV>on grid events. How can I do this? and if I will use this code what object reference will be pointed by <FONT color=#0066ff>lParam</FONT>?</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 11 Jul 2007 04:24:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7573&amp;PID=24379&amp;title=cast-in-ongridnotify-method#24379</guid>
  </item> 
  <item>
   <title><![CDATA[Cast in OnGridNotify() method : Hello,  lParam in OnGridNotify...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7573&amp;PID=24366&amp;title=cast-in-ongridnotify-method#24366</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 7573<br /><strong>Posted:</strong> 11 July 2007 at 12:02am<br /><br />Hello,<DIV>&nbsp;</DIV><DIV><FONT color=#0000ff>&nbsp;lParam in </FONT><FONT color=#000000>OnGridNotify is not always </FONT><FONT color=#0000ff>CXTPPropertyGridItem.</FONT></DIV><DIV><FONT color=#0000ff>you need check wParam first. What wParam you need ?</FONT></DIV><DIV><FONT color=#0000ff></FONT>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 11 Jul 2007 00:02:36 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7573&amp;PID=24366&amp;title=cast-in-ongridnotify-method#24366</guid>
  </item> 
  <item>
   <title><![CDATA[Cast in OnGridNotify() method : Hi all,I encountered the following...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7573&amp;PID=24363&amp;title=cast-in-ongridnotify-method#24363</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3124">Gorkystreet</a><br /><strong>Subject:</strong> 7573<br /><strong>Posted:</strong> 10 July 2007 at 7:42pm<br /><br />Hi all,<br><br>I encountered the following problem: I created my custom control derived from CXTPPropertyGridItemEnum-class. I use it in grid (use the toolkit ver. 10.3.1). In OnGridNotify() method I need to spy for some events. In appropriate event I have to perform a cast from 'lParam' parameter just like this: <font color="#0000ff">CXTPPropertyGridItem* pItem = (CXTPPropertyGridItem*)lParam;&nbsp;&nbsp;&nbsp;</font> <br>But when I look at pItem internals, I can see that some members have wrong values, but it looks like that my object was created successfully in <br><font color="#0033ff">AddChildItem </font>method. In general all my steps on working with grid amd creation/using custom controls are very similar to steps provided in sample 'PropertyGrid' project. What can source similar problem? And how is better <br>to fix/overcome such terrible situation? I can provide additional information if needed. Thanx in advance.<br>]]>
   </description>
   <pubDate>Tue, 10 Jul 2007 19:42:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7573&amp;PID=24363&amp;title=cast-in-ongridnotify-method#24363</guid>
  </item> 
 </channel>
</rss>