<?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 : Issues with bitmaps as constraints</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Property Grid : Issues with bitmaps as constraints]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 19 Apr 2026 12:09:12 +0000</pubDate>
  <lastBuildDate>Fri, 22 Aug 2008 15:18:15 +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=11934</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[Issues with bitmaps as constraints : Hello all I was wondering if any...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11934&amp;PID=40284&amp;title=issues-with-bitmaps-as-constraints#40284</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1642">nguyena1</a><br /><strong>Subject:</strong> 11934<br /><strong>Posted:</strong> 22 August 2008 at 3:18pm<br /><br />Hello all<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I was wondering if any of you guys have ran into an issue like this.&nbsp; <br><br>I'm trying to do a griditemenum with bitmaps for the constraints.&nbsp; I can get the bitmaps to show up in the list box portion but in the actual edit box portion, where the bitmap is suppose to appear, constraint string appears instead.<br><br>Screenshots:<br><img src="uploads/20080822_145338_combobox1.JPG" height="609" width="311" border="0"><br><br>When i take focus off of the edit box portion and click on another cell, the "psuedo bitmap with my string constraint in it" dissapears and the string contraint only shows.<br><br>What I'm doing here works fine with the sample project "<b>PropertyGrid</b>" so I know its something I'm doing wrong.&nbsp; I have derived classes from cxtppropertygriditemEnum and numerous things that may be setting flags on this griditem that I'm not sure about.&nbsp; Just wondering if anyone has ran into this and knows what causes this problem.<br><br>Code snippet of what I'm doing.<br><br>CPropertyTabGridItemLineStyleCB::SetupBitmapConstraints(vector&lt;HBITMAP&gt; &amp; myBitmaps, int nWidth, int nHeight)<br>{<br>&nbsp;&nbsp;&nbsp; //set up images into imagemanager<br>&nbsp;&nbsp;&nbsp; CImageList ImageList;<br>&nbsp;&nbsp;&nbsp; ImageList.Create(nWidth, nHeight, ILC_COLOR4 | ILC_MASK, myBitmaps.size(), 10);<br>&nbsp;&nbsp;&nbsp; m_pTab-&gt;GetPropertyGrid().GetImageManager()-&gt;SetMaskColor(0xC0C0C0);<br>&nbsp;&nbsp;&nbsp; for (int i = 0; i &lt; myBitmaps.size(); i++)\<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CBitmap* btImage = CBitmap::FromHandle(myBitmaps<em>);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ImageList.Add(btImage, RGB(0,50,255));<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; m_pTab-&gt;GetPropertyGrid().GetImageManager()-&gt;SetIcons(ImageList,0,0,CSize(nWidth, nHeight));<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; //add the contraints now<br>&nbsp;&nbsp;&nbsp; for (int i = 0; i &lt; m_pTab-&gt;GetPropertyGrid().GetImageManager()-&gt;GetImages()-&gt;GetCount(); i++)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CString strValue;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strValue.Format("%d", i);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; GetConstraints()-&gt;AddConstraint(_T(strValue), i, i);<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; {<br>}<br><br>Much appreciated<br>Tony<br>&nbsp;&nbsp;&nbsp; <br><br><br>]]>
   </description>
   <pubDate>Fri, 22 Aug 2008 15:18:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11934&amp;PID=40284&amp;title=issues-with-bitmaps-as-constraints#40284</guid>
  </item> 
 </channel>
</rss>