<?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]Office 2013 Theme&#039;s DrawSplitButtonFrame</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : [SOLVED]Office 2013 Theme&#039;s DrawSplitButtonFrame]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 19 Apr 2026 16:04:17 +0000</pubDate>
  <lastBuildDate>Wed, 13 Jul 2016 09:35:49 +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=23024</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]Office 2013 Theme&#039;s DrawSplitButtonFrame : Hello mrmathis,I&amp;#039;m glad...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23024&amp;PID=74883&amp;title=solvedoffice-2013-themes-drawsplitbuttonframe#74883</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9012">agontarenko</a><br /><strong>Subject:</strong> 23024<br /><strong>Posted:</strong> 13 July 2016 at 9:35am<br /><br />Hellomrmathis,<br><br>I'm glad to inform you that the issue has already fixed. The fix will be available in the next beta or final release.<br><br>Regards,<br>Artem Gontarenko<br>]]>
   </description>
   <pubDate>Wed, 13 Jul 2016 09:35:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23024&amp;PID=74883&amp;title=solvedoffice-2013-themes-drawsplitbuttonframe#74883</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED]Office 2013 Theme&#039;s DrawSplitButtonFrame : Has anyone else noticed that in...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23024&amp;PID=74730&amp;title=solvedoffice-2013-themes-drawsplitbuttonframe#74730</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3003">mrmathis</a><br /><strong>Subject:</strong> 23024<br /><strong>Posted:</strong> 14 May 2016 at 9:55am<br /><br />Has anyone else noticed that in the Office 2013 themes, a split button on the ribbon does not stay "depressed" like in older themes when the command behind it is running?  For example, in 2010 Black, here's what my default "Select" command looks like:<br /><br /><img src="uploads/3003/SplitButt&#111;n2010Black.png" border="0" /><br /><br />However, in any of the Office 2013 themes, I get no highlight color on the Select button.<br /><br />I traced into the DrawSplitButtonFrame methods on CXTPRibbonTheme and CXTPCommandBarsOffice2013Theme.  The latter does not seem to have the former's concessions to the "checked" state.  I tweaked the code in a couple of ways to get these images:<br /><br /><img src="uploads/3003/SplitButt&#111;n2013GrayFix1.png" border="0" />&nbsp;&nbsp;&nbsp;&nbsp;<img src="uploads/3003/SplitButt&#111;n2013WhiteFix2.png" border="0" /><br /><br />I think I'm going with the second version, since it's more consistent with 2010.  My changes are show below.  Any comments or cautions on them?<br /><br />void CXTPCommandBarsOffice2013Theme::DrawSplitButtonFrame(CDC* pDC, CXTPControl* pButton, CRect rcButton)<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;...<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;BOOL bEnabled  = pButton-&gt;GetEnabled();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;BOOL bSelected = pButton-&gt;GetSelected();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;BOOL bPopuped  = pButton-&gt;GetPopuped();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;BOOL bPressed  = pButton-&gt;GetPressed();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong>BOOL bChecked  = pButton-&gt;GetChecked(); // in spirit with CXTPRibbonTheme::DrawSplitButtonFrame</strong><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;...<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (!bEnabled)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DrawRectangle(pDC, pButton);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else if (bPopuped)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pDC-&gt;FillSolidRect(rcButton, pColorSet-&gt;clrBackChecked);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else if (bSelected <strong>|| bChecked) // added bChecked</strong><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CPoint pt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;::GetCursorPos(&pt);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pCmdBar-&gt;ScreenToClient(&pt);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (rcPartB.PtInRect(pt))<br />&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;pDC-&gt;FillSolidRect(rcPartB, pColorSet-&gt;clrBackHighlight);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br /><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// hilite just the top part of the button<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// pDC-&gt;FillSolidRect(rcPartA, (bPressed || bChecked) ? pColorSet-&gt;clrBackPushed : pColorSet-&gt;clrBackHighlight);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// hilite the entire button<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (bChecked)<br />&nbsp;&nbsp;&nbsp;&nbsp;&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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pDC-&gt;FillSolidRect(rcButton, pColorSet-&gt;clrBackPushed);<br />&nbsp;&nbsp;&nbsp;&nbsp;&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;else // default Codejock behavior<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br /></strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pDC-&gt;FillSolidRect(rcPartA, bPressed ? pColorSet-&gt;clrBackPushed : pColorSet-&gt;clrBackHighlight);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pDC-&gt;Draw3dRect(rcButton, pColorSet-&gt;clrBorderHighlight, pColorSet-&gt;clrBorderHighlight);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />]]>
   </description>
   <pubDate>Sat, 14 May 2016 09:55:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23024&amp;PID=74730&amp;title=solvedoffice-2013-themes-drawsplitbuttonframe#74730</guid>
  </item> 
 </channel>
</rss>