<?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 : CPropertyGridItemBool bug</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : CPropertyGridItemBool bug]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 06 Apr 2026 07:29:04 +0000</pubDate>
  <lastBuildDate>Fri, 05 May 2006 09:06:59 +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=4140</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[CPropertyGridItemBool bug : Hello,  It was already fixed...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4140&amp;PID=12694&amp;title=cpropertygriditembool-bug#12694</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 4140<br /><strong>Posted:</strong> 05 May 2006 at 9:06am<br /><br /><P>Hello, </P><P>It was&nbsp; already fixed in 10.1 release.</P><P>Was added parameters to OnLButtonDblClk:</P><P>BOOL CXTPPropertyGridItemBool::OnKeyDown (UINT nChar)<BR>{<BR>&nbsp;if (m_bCheckBoxStyle &amp;&amp; !GetReadOnly() &amp;&amp; (nChar == VK_SPACE))<BR>&nbsp;{<BR>&nbsp;&nbsp;CRect rc = GetValueRect();<BR>&nbsp;&nbsp;OnLButtonDblClk(0, rc.CenterPoint());</P><P>&nbsp;&nbsp;return TRUE;<BR>&nbsp;}<BR>&nbsp;return FALSE;<BR>}</P><P>void CXTPPropertyGridItemBool::OnLButtonDblClk(UINT nFlags, CPoint point)<BR>{<BR>&nbsp;if (m_bCheckBoxStyle &amp;&amp; PtInValueRect(point) &amp;&amp; !GetReadOnly())<BR>&nbsp;{<BR>&nbsp;&nbsp;OnSelect();<BR>&nbsp;&nbsp;SelectNextConstraint();<BR>&nbsp;}<BR>&nbsp;else<BR>&nbsp;{<BR>&nbsp;&nbsp;CXTPPropertyGridItem::OnLButtonDblClk(nFlags, point);<BR>&nbsp;}<BR>}</P><P>etc.</P>]]>
   </description>
   <pubDate>Fri, 05 May 2006 09:06:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4140&amp;PID=12694&amp;title=cpropertygriditembool-bug#12694</guid>
  </item> 
  <item>
   <title><![CDATA[CPropertyGridItemBool bug : What happens if Bool item has...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4140&amp;PID=12692&amp;title=cpropertygriditembool-bug#12692</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1927">tmolander</a><br /><strong>Subject:</strong> 4140<br /><strong>Posted:</strong> 05 May 2006 at 4:37am<br /><br /><P><FONT face="Courier New, Courier, mono" size=2>What happens if Bool item has a child&nbsp;or children and you try to&nbsp;check/uncheck the&nbsp;check box (SetCheckBoxStyle(TRUE) has been called for the item)? Item is expanded and check box is not selected! Here's why:</FONT></P><P><FONT face="Courier New" size=2>BOOL CXTPPropertyGridItemBool::OnKeyDown (UINT nChar)<BR>{<BR>&nbsp;if (m_bCheckBoxStyle &amp;&amp; !GetReadOnly() &amp;&amp; (nChar == VK_SPACE))<BR>&nbsp;{<BR>&nbsp;&nbsp;OnLButtonDblClk();<BR>&nbsp;&nbsp;return TRUE;<BR>&nbsp;}<BR>&nbsp;return FALSE;<BR>}</FONT></P><P><FONT face="Courier New" size=2>BOOL CXTPPropertyGridItemBool::OnLButtonDown(UINT nFlags, CPoint point)<BR>{<BR>&nbsp;if (!CXTPPropertyGridItem::OnLButtonDown(nFlags, point))<BR>&nbsp;&nbsp;return FALSE;</FONT></P><P><FONT face="Courier New" size=2>&nbsp;if (m_bCheckBoxStyle)<BR>&nbsp;{<BR>&nbsp;&nbsp;CRect rc = GetValueRect();<BR>&nbsp;&nbsp;rc.right = rc.left + 15;</FONT></P><P><FONT face="Courier New" size=2>&nbsp;&nbsp;if (rc.PtInRect(point) &amp;&amp; !GetReadOnly())<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;OnLButtonDblClk();<BR>&nbsp;&nbsp;}<BR>&nbsp;}</FONT></P><P><FONT face="Courier New" size=2>&nbsp;return TRUE;<BR>}<BR></FONT></P><P><FONT face="Courier New" size=2>OnLButtonDblClk() is called but value is not changed!</FONT></P><P><FONT face="Courier New" size=2>Fix? Thanks.</FONT></P><P><FONT face="Courier New" size=2>&nbsp;</P></FONT>]]>
   </description>
   <pubDate>Fri, 05 May 2006 04:37:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4140&amp;PID=12692&amp;title=cpropertygriditembool-bug#12692</guid>
  </item> 
 </channel>
</rss>