<?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 : Incorrect bounding box of CXTPPropertyGridItem</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Property Grid : Incorrect bounding box of CXTPPropertyGridItem]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 19 Apr 2026 16:08:00 +0000</pubDate>
  <lastBuildDate>Mon, 07 May 2007 08:15:44 +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=7059</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[Incorrect bounding box of CXTPPropertyGridItem : I see. And can I rely on that...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7059&amp;PID=22612&amp;title=incorrect-bounding-box-of-cxtppropertygriditem#22612</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2014">akur</a><br /><strong>Subject:</strong> 7059<br /><strong>Posted:</strong> 07 May 2007 at 8:15am<br /><br />I see. And can I rely on that this line will be always exactly 1 pixel high - with all the different themes and styles a PropertyGrid can have?]]>
   </description>
   <pubDate>Mon, 07 May 2007 08:15:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7059&amp;PID=22612&amp;title=incorrect-bounding-box-of-cxtppropertygriditem#22612</guid>
  </item> 
  <item>
   <title><![CDATA[Incorrect bounding box of CXTPPropertyGridItem : Hello, for OnDrawItemValue doesn&amp;#039;t...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7059&amp;PID=22609&amp;title=incorrect-bounding-box-of-cxtppropertygriditem#22609</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 7059<br /><strong>Posted:</strong> 07 May 2007 at 8:12am<br /><br /><DIV>Hello,</DIV><DIV>for OnDrawItemValue doesn't used bottom line.</DIV><DIV>&nbsp;</DIV><DIV>you can add in your code </DIV><DIV>&nbsp;</DIV><DIV><strong>CRect rcBound(rcValue);</strong></DIV><DIV><strong>rcBound.bottom++;</strong></DIV>]]>
   </description>
   <pubDate>Mon, 07 May 2007 08:12:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7059&amp;PID=22609&amp;title=incorrect-bounding-box-of-cxtppropertygriditem#22609</guid>
  </item> 
  <item>
   <title><![CDATA[Incorrect bounding box of CXTPPropertyGridItem : Hello,I&amp;#039;d like to ask you...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7059&amp;PID=22604&amp;title=incorrect-bounding-box-of-cxtppropertygriditem#22604</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2014">akur</a><br /><strong>Subject:</strong> 7059<br /><strong>Posted:</strong> 07 May 2007 at 8:02am<br /><br />Hello,<br><br>I'd like to ask you if there is a reason why CXTPPropertyGridItem::OnDrawItemValue() and CXTPPropertyGridItem::GetValueRect() use <font color="#0000ff"><b>different-height rectangles</b></font>?<br><br>The documentation says:<br><strong><br>virtual</strong> BOOL OnDrawItemValue(    CDC&amp; dc,<span style="font-family: monospace;"></span> CRect rcValue);<a name="eters"></a><div ="Element10"><a ="a_Element14" ="toggleVisibilityStored('eters');"><img src="secti&#111;nminus.png" border="0"></a><div ="Element251">&nbsp;&nbsp;&nbsp; rcValue - Bounding rectangle of the item.</div><div ="Element250"></div></div><br><strong>virtual</strong> CRect GetValueRect();<br>&nbsp;&nbsp;&nbsp; Returns - A CRect object that represents the bounding rectangle of the item value's text.<br><br>So <font color="#0000ff"><b>both rects should be a bounding box</b></font> of the value part, shouldn't they?<br>However, in my override of CXTPPropertyGridItem class, in OnDrawItemValue() I get a height which is different from what GetValueRect() returns -- this makes my owner-drawn propertygrid items look strange (jumping one pixel up and down sometimes, according to some special actions I use).<br><br>Can you please explain why the rectangles are different?<br><br>Or is this simply a bug? Is there a solution for this (using XTP v11.1)?<br><br>Thank you, in advance!<br><br>]]>
   </description>
   <pubDate>Mon, 07 May 2007 08:02:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7059&amp;PID=22604&amp;title=incorrect-bounding-box-of-cxtppropertygriditem#22604</guid>
  </item> 
 </channel>
</rss>