<?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 and focus rectangle</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : CXTButton and focus rectangle]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 14 Jun 2026 18:06:16 +0000</pubDate>
  <lastBuildDate>Fri, 23 Feb 2007 01:54: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=6491</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 and focus rectangle : Hello, Thanks, we agree this...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6491&amp;PID=20696&amp;title=cxtbutton-and-focus-rectangle#20696</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 6491<br /><strong>Posted:</strong> 23 February 2007 at 1:54am<br /><br />Hello,<DIV>Thanks, we agree this bug. </DIV><DIV>Fixed for next release.</DIV>]]>
   </description>
   <pubDate>Fri, 23 Feb 2007 01:54:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6491&amp;PID=20696&amp;title=cxtbutton-and-focus-rectangle#20696</guid>
  </item> 
  <item>
   <title><![CDATA[CXTButton and focus rectangle : Noticed that CXTButton tends to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6491&amp;PID=20661&amp;title=cxtbutton-and-focus-rectangle#20661</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2036">Kukis</a><br /><strong>Subject:</strong> 6491<br /><strong>Posted:</strong> 22 February 2007 at 10:56am<br /><br />Noticed that <FONT color=#010001 size=2>CXTButton tends to loose focus rectangle(all correct styles are set). If button is clicked focus rectangle appears. But if window containing that button is deactivated and activated again focus rectangle is gone. That button is still focused but no focus rectangle. Investigated whats going under the hood and found problem in <B><FONT color=#000080 size=2>void</B></FONT><FONT color=#000000 size=2> </FONT><FONT color=#010001 size=2>CXTButtonTheme</FONT><FONT color=#000000 size=2>::</FONT><FONT color=#010001 size=2>DrawItem(<FONT color=#010001 size=2>LPDRAWITEMSTRUCT</FONT><FONT color=#000000 size=2> </FONT><FONT color=#010001 size=2>lpDIS</FONT><FONT color=#000000 size=2>, </FONT><FONT color=#010001 size=2>CXTButton</FONT><FONT color=#000000 size=2>* </FONT><FONT color=#010001 size=2>pButton)<DIV></DIV><DIV></DIV><DIV>&nbsp;</DIV><DIV>this part:</DIV><FONT size=2><P>&nbsp;// Draw the focus rect if style is set and we have focus.<BR>&nbsp;if ((pButton-&gt;GetXButtonStyle() &amp; BS_XT_SHOWFOCUS))<BR>&nbsp;{<BR>&nbsp;&nbsp;if (lpDIS-&gt;itemAction &amp; ODA_FOCUS)<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;DrawFocusRect(pDC, nState, rcItem, pButton);<BR>&nbsp;&nbsp;}<BR>&nbsp;}<BR></FONT><FONT color=#008000 size=2></FONT><FONT size=2></P><DIV></DIV><DIV>should look like this:</DIV><DIV>&nbsp;if ((pButton-&gt;GetXButtonStyle() &amp; BS_XT_SHOWFOCUS))<BR>&nbsp;{<BR>&nbsp;&nbsp;if (lpDIS-&gt;itemState &amp; ODS_FOCUS &amp;&amp; (lpDIS-&gt;itemState &amp; 0x0200/*ODS_NOFOCUSRECT*/) == 0)<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;DrawFocusRect(pDC, nState, rcItem, pButton);<BR>&nbsp;&nbsp;}<BR>&nbsp;}<BR></DIV><DIV>Because when drawitem message is generated with <SPAN =eter>itemAction == <strong>ODA_DRAWENTIRE</strong>&nbsp;&nbsp;&nbsp;no focus rectangle is drawn at all.</SPAN></DIV><DIV></FONT>&nbsp;</DIV></FONT></FONT></FONT>]]>
   </description>
   <pubDate>Thu, 22 Feb 2007 10:56:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6491&amp;PID=20661&amp;title=cxtbutton-and-focus-rectangle#20661</guid>
  </item> 
 </channel>
</rss>