<?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 : Hiding prior PropertyGrid item can cause crash</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Property Grid : Hiding prior PropertyGrid item can cause crash]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 19 Apr 2026 07:30:41 +0000</pubDate>
  <lastBuildDate>Tue, 24 Sep 2013 10:53:51 +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=21870</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[Hiding prior PropertyGrid item can cause crash : 1. Does the crash still occur...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=21870&amp;PID=71633&amp;title=hiding-prior-propertygrid-item-can-cause-crash#71633</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5973">dleibold</a><br /><strong>Subject:</strong> 21870<br /><strong>Posted:</strong> 24 September 2013 at 10:53am<br /><br /><div><div>1. Does the crash still occur if the OnGridNotify() code handling is removed?</div></div><div><br></div><div>2. If no for 1.,&nbsp;<span style="line-height: 1.4;">have you determined the specific crash message and location running in debug mode?</span></div><div><br></div><div>3. Is <span style=": rgb248, 248, 252; line-height: 1.4;">m_pAuthorItem properly assigned to point to the item object? e.g. it should not be NULL nor pointing to an old deleted item</span></div><div><span style=": rgb248, 248, 252; line-height: 1.4;"><br></span></div><div><span style=": rgb248, 248, 252; line-height: 1.4;">4. lParam should be good, but might want to check its value to ensure it is not NULL, and that the cast pItem represents a valid item</span></div><div><span style=": rgb248, 248, 252; line-height: 1.4;"><br></span></div><div><span style="line-height: 1.4;">5. Is it just that specific sequence of steps or does it always crash after changing the picklist e.g. try clicking within the grid instead of into the white space below</span></div><div><br></div>]]>
   </description>
   <pubDate>Tue, 24 Sep 2013 10:53:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=21870&amp;PID=71633&amp;title=hiding-prior-propertygrid-item-can-cause-crash#71633</guid>
  </item> 
  <item>
   <title><![CDATA[Hiding prior PropertyGrid item can cause crash : I modified the Drawcli_vc110 sample...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=21870&amp;PID=71563&amp;title=hiding-prior-propertygrid-item-can-cause-crash#71563</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6796">wsl</a><br /><strong>Subject:</strong> 21870<br /><strong>Posted:</strong> 02 September 2013 at 2:32am<br /><br />I modified the Drawcli_vc110 sample (16.2.0) to add a new PropertyGrid Item to hide the Author Item.<br>I presume that it is acceptable to do this (i.e. hide a prior item in the property grid) from inside OnGridNotify.<br><br><img src="uploads/6796/property_grid_hide2.png" height="306" width="216" border="0" /><br><br>The code to hide it is:<br>LRESULT CMainFrame::OnGridNotify(WPARAM wParam, LPARAM lParam)<br>{<br>&nbsp;&nbsp;&nbsp; if (wParam == XTP_PGN_ITEMVALUE_CHANGED )<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CXTPPropertyGridItem* pItem = (CXTPPropertyGridItem*)lParam;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (pItem-&gt;GetID() == 999 )<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (pItem-&gt;GetValue() == "False" )<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_pAuthorItem-&gt;SetHidden(FALSE);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (pItem-&gt;GetValue() == "True" )<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_pAuthorItem-&gt;SetHidden(TRUE);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; }<br><br>This all works fine unless the mouse scroll wheel is used to change the value from False to True and then a left mouse click is done in the white space below the property grid item. This causes a crash. <br><br>Is this a bug in PropertyGrid or is what we are doing unacceptable ?<br><br><br>]]>
   </description>
   <pubDate>Mon, 02 Sep 2013 02:32:19 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=21870&amp;PID=71563&amp;title=hiding-prior-propertygrid-item-can-cause-crash#71563</guid>
  </item> 
 </channel>
</rss>