<?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 : mixed checkbox</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Property Grid : mixed checkbox]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 19 Apr 2026 16:40:26 +0000</pubDate>
  <lastBuildDate>Sat, 17 Feb 2007 03:15:20 +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=6445</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[mixed checkbox : Can you add a &amp;#034;Mixed&amp;#034;...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6445&amp;PID=20517&amp;title=mixed-checkbox#20517</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1227">esc67</a><br /><strong>Subject:</strong> 6445<br /><strong>Posted:</strong> 17 February 2007 at 3:15am<br /><br /><P>Can you add a "Mixed" property for CXTPPropertyGridItemBool?</P><DIV></DIV>Here's my override (for 10.4.2)<DIV>&nbsp;</DIV><DIV><table width="99%"><tr><td><pre class="BBcode"></DIV><DIV>&nbsp;BOOL OnDrawItemValue(CDC&amp; dc, CRect rcValue)<BR>&nbsp;{<BR>&nbsp;&nbsp;if (!m_bCheckBoxStyle)<BR>&nbsp;&nbsp;&nbsp;return FALSE;</DIV><DIV>&nbsp;&nbsp;CRect rcSample(rcValue.left - 1, rcValue.CenterPoint().y - 6, rcValue.left - 1 + 13, rcValue.CenterPoint().y + 7);</DIV><DIV>&nbsp;&nbsp;CXTPPropertyGridPaintManager* pPaintManager = m_pGrid-&gt;GetPaintManager();</DIV><DIV>&nbsp;&nbsp;if (pPaintManager-&gt;m_buttonsStyle == xtpGridButtonsThemed &amp;&amp; pPaintManager-&gt;m_themeButton.IsAppThemed())<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;int style = <BR>&nbsp;&nbsp;&nbsp;&nbsp;GetReadOnly() <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;? (isMultiValue() <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;? CBS_MIXEDDISABLED <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: (GetBool() ? CBS_CHECKEDDISABLED : CBS_UNCHECKEDDISABLED)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;) <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: (isMultiValue() <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;? CBS_MIXEDNORMAL <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: (GetBool() ? CBS_CHECKEDNORMAL : CBS_UNCHECKEDNORMAL)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;);<BR>&nbsp;&nbsp;&nbsp;pPaintManager-&gt;m_themeButton.DrawThemeBackground(dc, BP_CHECKBOX, style, rcSample, 0);<BR>&nbsp;&nbsp;}<BR>&nbsp;&nbsp;else<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;dc.DrawFrameControl(rcSample, DFC_BUTTON, DFCS_BUTTONCHECK |<BR>&nbsp;&nbsp;&nbsp;&nbsp;(GetReadOnly() ? DFCS_INACTIVE : 0) | (GetBool() ? DFCS_CHECKED : 0));<BR>&nbsp;&nbsp;}</DIV><DIV>&nbsp;&nbsp;return TRUE;<BR>&nbsp;}<BR></pre></td></tr></table></DIV>]]>
   </description>
   <pubDate>Sat, 17 Feb 2007 03:15:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6445&amp;PID=20517&amp;title=mixed-checkbox#20517</guid>
  </item> 
 </channel>
</rss>