<?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 : Enable Visual Studio 2015 theme to HeaderCtrl</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Controls : Enable Visual Studio 2015 theme to HeaderCtrl]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 28 Jun 2026 14:25:03 +0000</pubDate>
  <lastBuildDate>Mon, 11 Apr 2016 08:01:37 +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=22994</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[Enable Visual Studio 2015 theme to HeaderCtrl : I just added Visual Studio 2015...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22994&amp;PID=74654&amp;title=enable-visual-studio-2015-theme-to-headerctrl#74654</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1863">JoseAngel</a><br /><strong>Subject:</strong> 22994<br /><strong>Posted:</strong> 11 April 2016 at 8:01am<br /><br /><div>I just added Visual Studio 2015 support for HeaderCtrl (maybe it doesn't contemplate all the cases, but for me is enought).</div><div>If you want to add it, follow the next steps:</div><div><br></div><div>1. Add this section to&nbsp;VisualStudio2015Dark.ini</div><div><br></div><div>&#091;HeaderCtrl&#093;<br>Back=37 37 38<br>Border=63 63 70<br>Text=246 246 246</div><div><br></div><div>2. Add this section to VisualStudio2015Light.ini</div><div><br></div><div>&#091;HeaderCtrl&#093;<br>Back=245 245 245<br>Border=204 206 219<br>Text=66 66 66</div><div><br></div><div>3. Add this section to VisualStudio2015Blue.ini</div><div><br></div><div>&#091;HeaderCtrl&#093;<br>Back=246 246 246<br>Border=204 206 219<br>Text=66 66 66</div><div><br></div><div>4. Compile VisualStudio2015 solution.</div><div><br></div><div>5. Add this case in CXTPHeaderCtrl::SetTheme</div><div><br></div><div>&nbsp;case xtpControlThemeVisualStudio2015:<br>&nbsp;&nbsp;m_pTheme = new CXTPHeaderCtrlThemeVisualStudio2015;<br>&nbsp;&nbsp;break;<br></div><div><br></div><div>6. Add this class definition to XTPHeaderCtrlTheme.h</div><div><br></div><div>class _XTP_EXT_CLASS CXTPHeaderCtrlThemeVisualStudio2015 : public CXTPHeaderCtrlTheme<br>{<br>public:</div><div>&nbsp;CXTPHeaderCtrlThemeVisualStudio2015();</div><div>&nbsp;virtual ~CXTPHeaderCtrlThemeVisualStudio2015();</div><div><br></div><div>protected:<br>&nbsp;virtual void RefreshMetrics(CXTPHeaderCtrl* pHeader);</div><div>&nbsp;virtual void OnDrawBackground(LPDRAWITEMSTRUCT lpDIS);</div><div>&nbsp;virtual void OnDrawItemBackground(LPDRAWITEMSTRUCT lpDIS);<br>};<br></div><div><br></div><div>7. Add this lines to XTPHeaderCtrlTheme.cpp<br></div><div><br></div><div>CXTPHeaderCtrlThemeVisualStudio2015::CXTPHeaderCtrlThemeVisualStudio2015()<br>{<br>&nbsp;m_nTheme = xtpControlThemeVisualStudio2015;<br>&nbsp;m_dwDrawStyle = HDR_XTP_SORTARROW;<br>}</div><div><br></div><div>CXTPHeaderCtrlThemeVisualStudio2015::~CXTPHeaderCtrlThemeVisualStudio2015()<br>{<br>}</div><div><br></div><div>void CXTPHeaderCtrlThemeVisualStudio2015::RefreshMetrics(CXTPHeaderCtrl* pHeader)<br>{<br>&nbsp;CXTPHeaderCtrlTheme::RefreshMetrics(pHeader);</div><div><br></div><div>&nbsp;m_cr3DFace = XTPIniColor(_T("HeaderCtrl"), _T("Back"), RGB(37, 37, 38));<br>&nbsp;m_cr3DHighLight = XTPIniColor(_T("HeaderCtrl"), _T("Border"), RGB(63, 63, 70));<br>&nbsp;m_crText = XTPIniColor(_T("HeaderCtrl"), _T("Text"), RGB(255, 255, 255));<br>}</div><div><br></div><div>void CXTPHeaderCtrlThemeVisualStudio2015::OnDrawBackground(LPDRAWITEMSTRUCT lpDIS)<br>{<br>&nbsp;CRect rcItem(lpDIS-&gt;rcItem);<br>&nbsp;CDC* pDC = CDC::FromHandle(lpDIS-&gt;hDC);</div><div><br></div><div>&nbsp;// fill background<br>&nbsp;pDC-&gt;FillSolidRect(&amp;rcItem, m_cr3DFace);<br>&nbsp;rcItem.right += 2;</div><div><br></div><div>&nbsp;// draw bottom border.<br>&nbsp;CXTPPenDC penDC(lpDIS-&gt;hDC, m_cr3DHighLight);<br>&nbsp;pDC-&gt;MoveTo(rcItem.left, rcItem.bottom - 1);<br>&nbsp;pDC-&gt;LineTo(rcItem.right, rcItem.bottom - 1);<br>}</div><div><br></div><div>void CXTPHeaderCtrlThemeVisualStudio2015::OnDrawItemBackground(LPDRAWITEMSTRUCT lpDIS)<br>{<br>&nbsp;CDC* pDC = CDC::FromHandle(lpDIS-&gt;hDC);</div><div><br></div><div>&nbsp;CXTPPenDC penDC(lpDIS-&gt;hDC, m_cr3DHighLight);<br>&nbsp;pDC-&gt;MoveTo(lpDIS-&gt;rcItem.right - 1, 2);<br>&nbsp;pDC-&gt;LineTo(lpDIS-&gt;rcItem.right - 1, lpDIS-&gt;rcItem.bottom - 2);<br>}</div><div><br></div><div>And voila.</div><div><br></div><div><br><br></div><div><br></div><div><br></div>]]>
   </description>
   <pubDate>Mon, 11 Apr 2016 08:01:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22994&amp;PID=74654&amp;title=enable-visual-studio-2015-theme-to-headerctrl#74654</guid>
  </item> 
 </channel>
</rss>