<?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 : CXTButton</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Skin Framework : CXTButton]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 05 Apr 2026 14:50:59 +0000</pubDate>
  <lastBuildDate>Tue, 20 Mar 2007 03:58:35 +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=6279</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[CXTButton :   oleg wrote: Hi,  :( strange....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6279&amp;PID=21282&amp;title=cxtbutton#21282</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1305">Simon HB9DRV</a><br /><strong>Subject:</strong> 6279<br /><strong>Posted:</strong> 20 March 2007 at 3:58am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by oleg" alt="Originally posted by oleg" style="vertical-align: text-bottom;" /> <strong>oleg wrote:</strong><br /><br /><DIV>Hi,</DIV><DIV>&nbsp;</DIV><DIV>:( strange. May be you added Invalidate(FALSE); not in "if" block ?</DIV><DIV>What loop did you have, can you show some callstack?</DIV></td></tr></table> <DIV>Hi,</DIV><DIV>&nbsp;</DIV><DIV>I'll get some stacks for you. The extra OnPaint caused by the Invalidate is the problem, anyway the stacks will appear today/tomorrow.</DIV>]]>
   </description>
   <pubDate>Tue, 20 Mar 2007 03:58:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6279&amp;PID=21282&amp;title=cxtbutton#21282</guid>
  </item> 
  <item>
   <title><![CDATA[CXTButton : Hi,  :( strange. May be you...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6279&amp;PID=21279&amp;title=cxtbutton#21279</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 6279<br /><strong>Posted:</strong> 20 March 2007 at 2:34am<br /><br /><DIV>Hi,</DIV><DIV>&nbsp;</DIV><DIV>:( strange. May be you added Invalidate(FALSE); not in "if" block ?</DIV><DIV>What loop did you have, can you show some callstack?</DIV>]]>
   </description>
   <pubDate>Tue, 20 Mar 2007 02:34:33 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6279&amp;PID=21279&amp;title=cxtbutton#21279</guid>
  </item> 
  <item>
   <title><![CDATA[CXTButton :   Simon HB9DRV wrote:Fixed, many...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6279&amp;PID=21270&amp;title=cxtbutton#21270</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1305">Simon HB9DRV</a><br /><strong>Subject:</strong> 6279<br /><strong>Posted:</strong> 19 March 2007 at 1:52pm<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by Simon HB9DRV" alt="Originally posted by Simon HB9DRV" style="vertical-align: text-bottom;" /> <strong>Simon HB9DRV wrote:</strong><br /><br />Fixed, many thanks!</td></tr></table><DIV>Sorry Oleg,</DIV><DIV>&nbsp;</DIV><DIV>Not fixed - this may be causing the framework to loop (in fact it is). I will have to live without this extra line for now, I will try to get a serious diagnosis of the problem this week.</DIV>]]>
   </description>
   <pubDate>Mon, 19 Mar 2007 13:52:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6279&amp;PID=21270&amp;title=cxtbutton#21270</guid>
  </item> 
  <item>
   <title><![CDATA[CXTButton : Fixed, many thanks! ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6279&amp;PID=21269&amp;title=cxtbutton#21269</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1305">Simon HB9DRV</a><br /><strong>Subject:</strong> 6279<br /><strong>Posted:</strong> 19 March 2007 at 1:31pm<br /><br />Fixed, many thanks!]]>
   </description>
   <pubDate>Mon, 19 Mar 2007 13:31:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6279&amp;PID=21269&amp;title=cxtbutton#21269</guid>
  </item> 
  <item>
   <title><![CDATA[CXTButton : Hi,   ok, one more fix -   in...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6279&amp;PID=21264&amp;title=cxtbutton#21264</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 6279<br /><strong>Posted:</strong> 19 March 2007 at 12:04pm<br /><br />Hi, <DIV>&nbsp;</DIV><DIV>ok, one more fix - </DIV><DIV>&nbsp;</DIV><DIV>in XTThemeManager.h</DIV><DIV>&nbsp;</DIV><DIV>add in IMPLEMENT_THEME_REFRESH:</DIV><DIV>&nbsp;</DIV><DIV>#define IMPLEMENT_THEME_REFRESH(theClass, theBase)\<BR>BOOL theClass::OnWndMsg(UINT message, WPARAM wParam, LPARAM lParam, LRESULT* pResult) {\<BR>&nbsp;if (message == WM_SETTINGCHANGE || message == WM_SYSCOLORCHANGE)\<BR>&nbsp;{\<BR>&nbsp;&nbsp;GetTheme()-&gt;RefreshMetrics();\<BR>&nbsp;&nbsp;<strong>Invalidate(FALSE);\</strong><BR>&nbsp;}\<BR>&nbsp;return theBase::OnWndMsg(message, wParam, lParam, pResult);\<BR>}</DIV><DIV>&nbsp;</DIV><DIV>Thanks!</DIV>]]>
   </description>
   <pubDate>Mon, 19 Mar 2007 12:04:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6279&amp;PID=21264&amp;title=cxtbutton#21264</guid>
  </item> 
  <item>
   <title><![CDATA[CXTButton : I think an extra refresh / redraw...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6279&amp;PID=21262&amp;title=cxtbutton#21262</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1305">Simon HB9DRV</a><br /><strong>Subject:</strong> 6279<br /><strong>Posted:</strong> 19 March 2007 at 9:47am<br /><br />I think an extra refresh / redraw is needed - I can do this myself. Look at the picture below, you see there's a button next to <strong>Reset</strong>&nbsp;with a bitmap where I&nbsp;have caused half to be redrawn by moving another window over it. <DIV>&nbsp;</DIV><DIV><strong><EM>&#091;Edit - redraw isn't enough - control needs to receive focus I think.&#093;</EM></strong></DIV><DIV><BR>I modified code as suggested:</DIV><DIV>&nbsp;</DIV><DIV><FONT face="Courier New, Courier, mono" size=1>void CXTButtonTheme::RefreshMetrics()<BR>{<BR>&nbsp;CXTThemeManagerStyle::RefreshMetrics();</FONT></DIV><DIV><FONT face="Courier New, Courier, mono" size=1>&nbsp;// background colors.<BR>&nbsp;m_crBack.SetStandardValue(GetXtremeColor(COLOR_BTNFACE));</FONT></DIV><DIV><FONT face="Courier New, Courier, mono" size=1>&nbsp;// text colors.<BR>&nbsp;m_crText.SetStandardValue(GetXtremeColor(COLOR_BTNTEXT));<BR>&nbsp;m_crTextDisabled.SetStandardValue(GetXtremeColor(COLOR_GRAYTEXT));</FONT></DIV><DIV><FONT face="Courier New, Courier, mono" size=1>&nbsp;// border colors.<BR>&nbsp;m_crBorderHilite.SetStandardValue(GetXtremeColor(COLOR_BTNFACE));<BR>&nbsp;m_crBorderShadow.SetStandardValue(GetXtremeColor(COLOR_3DSHADOW));<BR>&nbsp;m_crBorder3DHilite.SetStandardValue(GetXtremeColor(COLOR_3DHILIGHT));<BR>&nbsp;m_crBorder3DShadow.SetStandardValue(GetXtremeColor(COLOR_3DDKSHADOW));</FONT></DIV><DIV><FONT face="Courier New" size=1></FONT>&nbsp;</DIV><DIV><FONT face="Courier New, Courier, mono" size=1><strong>&nbsp;if (m_themeWrapper.ThemeDataOpen())<BR>&nbsp;&nbsp;m_themeWrapper.OpenThemeData(0, L"BUTTON");</strong><BR>}<BR></FONT></DIV><DIV><BR>(I hope this makes sense.)<BR><BR><img src="https://forum.codejock.com/uploads/20070319_094552_Jock003.JPG" border="0"></DIV>]]>
   </description>
   <pubDate>Mon, 19 Mar 2007 09:47:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6279&amp;PID=21262&amp;title=cxtbutton#21262</guid>
  </item> 
  <item>
   <title><![CDATA[CXTButton :   oleg wrote:  Please add in...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6279&amp;PID=21261&amp;title=cxtbutton#21261</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1305">Simon HB9DRV</a><br /><strong>Subject:</strong> 6279<br /><strong>Posted:</strong> 19 March 2007 at 9:20am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by oleg" alt="Originally posted by oleg" style="vertical-align: text-bottom;" /> <strong>oleg wrote:</strong><br /><br /><P><img src="https://forum.codejock.com/smileys/smiley18.gif" border="0">&nbsp;</P><DIV>Please add in&nbsp; void CXTButtonTheme::RefreshMetrics()<BR><BR>this line</DIV><DIV>&nbsp;if (m_themeWrapper.ThemeDataOpen()) m_themeWrapper.OpenThemeData(0, L"BUTTON");</DIV><DIV>&nbsp;</DIV><DIV>button didn't refresh theme if systemcolors was changed.</DIV><DIV>&nbsp;</DIV><DIV>Thanks!<BR></DIV></td></tr></table> <DIV>Heh - thanks very much - great support.<BR><BR>This is for you:-)</DIV><DIV>&nbsp;</DIV><DIV><img src="http://www.beartownbrewery.co.uk/art/specilist%20beers%20art/ERDINGER.jpg" border="0"></DIV>]]>
   </description>
   <pubDate>Mon, 19 Mar 2007 09:20:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6279&amp;PID=21261&amp;title=cxtbutton#21261</guid>
  </item> 
  <item>
   <title><![CDATA[CXTButton :  Please add in void CXTButtonTheme::RefreshMetrics()this...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6279&amp;PID=21258&amp;title=cxtbutton#21258</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 6279<br /><strong>Posted:</strong> 19 March 2007 at 9:05am<br /><br /><P><img src="https://forum.codejock.com/smileys/smiley18.gif" border="0">&nbsp;</P><DIV>Please add in&nbsp; void CXTButtonTheme::RefreshMetrics()<BR><BR>this line</DIV><DIV>&nbsp;if (m_themeWrapper.ThemeDataOpen()) m_themeWrapper.OpenThemeData(0, L"BUTTON");</DIV><DIV>&nbsp;</DIV><DIV>button didn't refresh theme if systemcolors was changed.</DIV><DIV>&nbsp;</DIV><DIV>Thanks!<BR></DIV>]]>
   </description>
   <pubDate>Mon, 19 Mar 2007 09:05:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6279&amp;PID=21258&amp;title=cxtbutton#21258</guid>
  </item> 
  <item>
   <title><![CDATA[CXTButton :   Simon HB9DRV wrote:  oleg...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6279&amp;PID=21252&amp;title=cxtbutton#21252</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1305">Simon HB9DRV</a><br /><strong>Subject:</strong> 6279<br /><strong>Posted:</strong> 19 March 2007 at 4:53am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by Simon HB9DRV" alt="Originally posted by Simon HB9DRV" style="vertical-align: text-bottom;" /> <strong>Simon HB9DRV wrote:</strong><br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by oleg" alt="Originally posted by oleg" style="vertical-align: text-bottom;" /> <strong>oleg wrote:</strong><br /><br />Lets try together: <DIV>&nbsp;</DIV><DIV>In SkinMDI sample:</DIV><DIV>&nbsp;</DIV><DIV>in SkinPropertyPageControls.h add</DIV><DIV>CXTButton m_btn;</DIV><DIV>&nbsp;</DIV><DIV>in SkinPropertyPageControls.cpp add</DIV><DIV>&nbsp;DDX_Control(pDX, IDC_BTN_NORMAL, m_btn);</DIV><DIV>and</DIV><DIV>&nbsp;m_btn.SetXButtonStyle(BS_XT_WINXP_COMPAT);<BR></DIV><DIV>&nbsp;</DIV><DIV>run sample. Don't you see skinned button?</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV></td></tr></table> <DIV>Yes, that works.<BR><BR>Now select a new skin in <strong><EM>Skins and Themes</EM></strong>, then look at the button in the <EM><strong>Options</strong></EM> page&nbsp;- the skin doesn't get applied; the button is drawn incorrectly.</DIV><DIV>&nbsp;</DIV><DIV>What happens when you change the skin by just clicking an entry on <EM><strong>Skins and Themes</strong></EM>? Do NOT restart the program or apply fairy dust (!), just click back to the <EM><strong>Options</strong></EM> page.</DIV></td></tr></table> <DIV>BTW - using 10.4.2 static UNICODE library (not DLL).</DIV>]]>
   </description>
   <pubDate>Mon, 19 Mar 2007 04:53:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6279&amp;PID=21252&amp;title=cxtbutton#21252</guid>
  </item> 
  <item>
   <title><![CDATA[CXTButton :   oleg wrote:Lets try together:...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6279&amp;PID=21251&amp;title=cxtbutton#21251</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1305">Simon HB9DRV</a><br /><strong>Subject:</strong> 6279<br /><strong>Posted:</strong> 19 March 2007 at 4:47am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by oleg" alt="Originally posted by oleg" style="vertical-align: text-bottom;" /> <strong>oleg wrote:</strong><br /><br />Lets try together: <DIV>&nbsp;</DIV><DIV>In SkinMDI sample:</DIV><DIV>&nbsp;</DIV><DIV>in SkinPropertyPageControls.h add</DIV><DIV>CXTButton m_btn;</DIV><DIV>&nbsp;</DIV><DIV>in SkinPropertyPageControls.cpp add</DIV><DIV>&nbsp;DDX_Control(pDX, IDC_BTN_NORMAL, m_btn);</DIV><DIV>and</DIV><DIV>&nbsp;m_btn.SetXButtonStyle(BS_XT_WINXP_COMPAT);<BR></DIV><DIV>&nbsp;</DIV><DIV>run sample. Don't you see skinned button?</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV></td></tr></table> <DIV>Yes, that works.<BR><BR>Now select a new skin in <strong><EM>Skins and Themes</EM></strong>, then look at the button in the <EM><strong>Options</strong></EM> page&nbsp;- the skin doesn't get applied; the button is drawn incorrectly.</DIV><DIV>&nbsp;</DIV><DIV>What happens when you change the skin by just clicking an entry on <EM><strong>Skins and Themes</strong></EM>? Do NOT restart the program or apply fairy dust (!), just click back to the <EM><strong>Options</strong></EM> page.</DIV>]]>
   </description>
   <pubDate>Mon, 19 Mar 2007 04:47:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6279&amp;PID=21251&amp;title=cxtbutton#21251</guid>
  </item> 
 </channel>
</rss>