<?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 : &#079;nDrawItemC&#111;nstraint Questi&#111;n</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : &#079;nDrawItemC&#111;nstraint Questi&#111;n]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 21 Apr 2026 07:35:51 +0000</pubDate>
  <lastBuildDate>Thu, 05 Jan 2006 06:13:43 +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=3466</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[&#079;nDrawItemC&#111;nstraint Questi&#111;n : Thank you...oleg I solve my problem...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3466&amp;PID=10425&amp;title=ondrawitemconstraint-question#10425</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1705">Jay91</a><br /><strong>Subject:</strong> 3466<br /><strong>Posted:</strong> 05 January 2006 at 6:13am<br /><br /><P>Thank you...oleg</P><P>I solve my problem for your help</P><P>It works Great...</P><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Thu, 05 Jan 2006 06:13:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3466&amp;PID=10425&amp;title=ondrawitemconstraint-question#10425</guid>
  </item> 
  <item>
   <title><![CDATA[&#079;nDrawItemC&#111;nstraint Questi&#111;n : Thank you...oleg but Your Source...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3466&amp;PID=10424&amp;title=ondrawitemconstraint-question#10424</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1705">Jay91</a><br /><strong>Subject:</strong> 3466<br /><strong>Posted:</strong> 05 January 2006 at 5:19am<br /><br /><P>Thank you...oleg</P><P>but Your Source occurs compile error..</P><P>error C2039: 'OnDrawItemConstraint' : 'CXTPPropertyGridItemColor' is not member...</P><P>Why occur compile error ? my version is 9.81.....</P><P>I&nbsp;don't know why occur error....</P><P>Please Help me.....</P><P>&nbsp;</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Thu, 05 Jan 2006 05:19:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3466&amp;PID=10424&amp;title=ondrawitemconstraint-question#10424</guid>
  </item> 
  <item>
   <title><![CDATA[&#079;nDrawItemC&#111;nstraint Questi&#111;n : Hello, Copythis code to your...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3466&amp;PID=10419&amp;title=ondrawitemconstraint-question#10419</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 3466<br /><strong>Posted:</strong> 05 January 2006 at 2:21am<br /><br /><P>Hello,</P><P>Copy&nbsp;this code to your application:</P><P>class CPropertyGridItemColorList : public CXTPPropertyGridItemColor<BR>{<BR>public:<BR>&nbsp;&nbsp;&nbsp; CPropertyGridItemColorList(const CString&amp; strCaption, COLORREF clr)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : CXTPPropertyGridItemColor(strCaption, clr)<BR>&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SetFlags(xtpGridItemHasComboButton | xtpGridItemHasEdit);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GetConstraints()-&gt;AddConstraint(_T("Red"), RGB(0xFF, 0, 0));<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GetConstraints()-&gt;AddConstraint(_T("Green"), RGB(0, 0xFF, 0));<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GetConstraints()-&gt;AddConstraint(_T("Blue"), RGB(0, 0, 0xFF));<BR>&nbsp;&nbsp;&nbsp; }</P><P>&nbsp;&nbsp;&nbsp; virtual void OnInplaceButtonDown()<BR>&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  CXTPPropertyGridItem::OnInplaceButtonDown();&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; }</P><P>&nbsp;&nbsp;&nbsp; virtual void OnValueChanged(CString strValue)<BR>&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for (int i = 0; i &lt; GetConstraints()-&gt;GetCount(); i++)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; CXTPPropertyGridItemConstraint* pContstraint = GetConstraints()-&gt;GetConstraintAt(i);<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; if (strValue == pContstraint-&gt;m_strConstraint)<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; {<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  CXTPPropertyGridItemColor::OnValueChanged(RGBToString(pConts traint-&gt;m_dwData));<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return;<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CXTPPropertyGridItemColor::OnValueChanged(strValue);<BR>&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; void OnDrawItemConstraint(CDC* pDC, CXTPPropertyGridItemConstraint* pConstraint, CRect rc, BOOL bSelected)<BR>&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CRect rcColor(rc.left + 1, rc.top + 1, rc.left + 19, rc.bottom - 1);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pDC-&gt;FillSolidRect(rcColor, pConstraint-&gt;m_dwData);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pDC-&gt;Draw3dRect(rcColor, 0, 0);</P><P><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rc.left += 20;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CXTPPropertyGridItemColor::OnDrawItemConstraint(pDC, pConstraint, rc, bSelected);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; }</P><P>};</P><P>&nbsp;</P><P>usage:</P><P>pSettings-&gt;AddChildItem(new CPropertyGridItemColorList(_T("BackColor"), clr));<BR></P><P><IMG src="uploads/oleg/2006-01-05_022102_Screen.PNG" border="0"></P>]]>
   </description>
   <pubDate>Thu, 05 Jan 2006 02:21:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3466&amp;PID=10419&amp;title=ondrawitemconstraint-question#10419</guid>
  </item> 
  <item>
   <title><![CDATA[&#079;nDrawItemC&#111;nstraint Questi&#111;n : Hello .. I have some question...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3466&amp;PID=10407&amp;title=ondrawitemconstraint-question#10407</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1705">Jay91</a><br /><strong>Subject:</strong> 3466<br /><strong>Posted:</strong> 04 January 2006 at 7:26am<br /><br /><P>Hello ..</P><P>I have some question for OnDrawItemConstraint</P><P>I want to make Color Combo Control using CXTPPropertyGridItem...and Insert&nbsp;color Rectangle and string for each of the combo list item..</P><P><IMG src="https://forum.codejock.com/uploads/Jay91/2006-01-04_061602_sample.bmp" border="0"></P><P>In Sample source, make Combo list item using Bitpmap..but i have&nbsp;color rectangle too much&nbsp;&nbsp;make Bitmap..</P><P>I&nbsp;see the manual, and find OnDrawItemConstraint... I think that it's <FONT size=2>suitable code....but don't Active...</FONT></P><P>How can i Make that Control using CXTPPropertyGridItem</P><P>Please Help me...!!!</P>]]>
   </description>
   <pubDate>Wed, 04 Jan 2006 07:26:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3466&amp;PID=10407&amp;title=ondrawitemconstraint-question#10407</guid>
  </item> 
 </channel>
</rss>