<?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 : [solved] Is there way to change expand button?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Property Grid : [solved] Is there way to change expand button?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 19 Apr 2026 03:43:12 +0000</pubDate>
  <lastBuildDate>Fri, 14 Apr 2017 09:14:33 +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=23319</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[[solved] Is there way to change expand button? : Hello netman2,This have been already...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23319&amp;PID=75730&amp;title=solved-is-there-way-to-change-expand-button#75730</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8730">olebed</a><br /><strong>Subject:</strong> 23319<br /><strong>Posted:</strong> 14 April 2017 at 9:14am<br /><br />Hello netman2,<br><br>This have been already implemented in v17.3<table width="99%"><tr><td><pre class="BBcode">void CXTPPropertyGridVisualStudio2015Theme::DrawExpandButton(CDC&amp; dc, CXTPPropertyGridItem* pItem, CRect rcCaption)<div>{</div><div>&nbsp; &nbsp; if (!pItem-&gt;IsExpandable())</div><div>&nbsp; &nbsp; &nbsp; &nbsp; return;</div><div><br></div><div>&nbsp; &nbsp; CRect rcSign(CPoint(XTP_DPI_X(XTP_PGI_EXPAND_BORDER) / 2 - XTP_DPI_X(5), rcCaption.CenterPoint().y - XTP_DPI_Y(4)),&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; XTP_DPI(CSize(9, 9)));</div><div><br></div><div>&nbsp; &nbsp; if (pItem-&gt;GetIndent() &gt; 0)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; rcSign.OffsetRect((pItem-&gt;GetIndent() - (pItem-&gt;IsCategory() ? 0 : 1)) * XTP_DPI_X(XTP_PGI_EXPAND_BORDER), 0);</div><div><br></div><div><b><font color="#00cc00">&nbsp; &nbsp; CPoint pt(rcSign.right - XTP_DPI_X(6), rcSign.top);</font></b></div><div><b><font color="#00cc00"><br></font></b></div><div><b><font color="#00cc00">&nbsp; &nbsp; if(pItem-&gt;IsExpanded())</font></b></div><div><b><font color="#00cc00">&nbsp; &nbsp; {</font></b></div><div><b><font color="#00cc00">&nbsp; &nbsp; &nbsp; &nbsp; XTPDrawHelpers()-&gt;DrawExpandTriangle(&amp;dc, pt, TRUE, m_pMetrics-&gt;m_clrFore);</font></b></div><div><b><font color="#00cc00">&nbsp; &nbsp; }</font></b></div><div><b><font color="#00cc00">&nbsp; &nbsp; else</font></b></div><div><b><font color="#00cc00">&nbsp; &nbsp; {</font></b></div><div><b><font color="#00cc00">&nbsp; &nbsp; &nbsp; &nbsp; XTPDrawHelpers()-&gt;DrawExpandTriangle(&amp;dc, pt, FALSE, m_pMetrics-&gt;m_clrFore, m_pMetrics-&gt;m_clrBack);</font></b></div><div><b><font color="#00cc00">&nbsp; &nbsp; }</font></b></div>}</pre></td></tr></table><br>Regards,<br>&nbsp;Oleksandr Lebed]]>
   </description>
   <pubDate>Fri, 14 Apr 2017 09:14:33 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23319&amp;PID=75730&amp;title=solved-is-there-way-to-change-expand-button#75730</guid>
  </item> 
  <item>
   <title><![CDATA[[solved] Is there way to change expand button? : Hello, I&amp;#039;m now making some...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23319&amp;PID=75729&amp;title=solved-is-there-way-to-change-expand-button#75729</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9027">netman2</a><br /><strong>Subject:</strong> 23319<br /><strong>Posted:</strong> 13 April 2017 at 10:00pm<br /><br />Hello, I'm now making some property grid.<div><br></div><div>I've used SetTheme(xtpGridThemeVisualStudio2015);</div><div><br></div><div>but it's not changing expand/collapse icon. It's showing +/- icon.</div><div><br></div><div>I want to change +/- to explorer icons.</div><div><br></div><div><br></div><div>Is there methods to change it or others?</div><div><br></div><div>I tried following but not working :</div><div>CXTPWinThemeWrapper().SetWindowTheme(m_wndPropertyGrid.GetSafeHwnd(), L"EXPLORER", NULL); // enable</div><div><br></div><div>Thanks</div><div><br></div>]]>
   </description>
   <pubDate>Thu, 13 Apr 2017 22:00:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23319&amp;PID=75729&amp;title=solved-is-there-way-to-change-expand-button#75729</guid>
  </item> 
 </channel>
</rss>