<?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 : owner draw buttons not checking ODS_NOFOCUSRECT</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : owner draw buttons not checking ODS_NOFOCUSRECT]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 06 Apr 2026 01:20:33 +0000</pubDate>
  <lastBuildDate>Thu, 03 Aug 2006 03:37:02 +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=4709</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[owner draw buttons not checking ODS_NOFOCUSRECT :  Hello, I&amp;#039;ve noticed that...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4709&amp;PID=14585&amp;title=owner-draw-buttons-not-checking-ods-nofocusrect#14585</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2036">Kukis</a><br /><strong>Subject:</strong> 4709<br /><strong>Posted:</strong> 03 August 2006 at 3:37am<br /><br /><FONT color=#000080 size=2><DIV><FONT face="Times New Roman, Times, serif" color=#000000>Hello,</FONT></DIV><DIV><FONT face="Times New Roman" color=#000000>I've noticed that cxtButtonTheme is not checking ODS_NOFOCUSRECT flag to check&nbsp;is focus rectangle&nbsp;visible. </FONT></DIV><DIV><FONT face="Times New Roman" color=#000000></FONT>&nbsp;</DIV><DIV><strong>void</strong></FONT><FONT size=2> CXTButtonTheme::DrawItem(LPDRAWITEMSTRUCT lpDIS, CXTButton* pButton)</DIV><P>{</P><DIV>.....................</FONT></DIV><DIV><FONT color=#008000 size=2>// Draw the focus rect if style is set and we have focus.</DIV></FONT><FONT size=2><P></FONT><B><FONT color=#000080 size=2>if</B></FONT><FONT size=2> ((pButton-&gt;GetXButtonStyle() &amp; BS_XT_SHOWFOCUS) &amp;&amp; (nState &amp; ODS_FOCUS)) <FONT color=#0000ff>// shouldnt be here additional check <FONT size=2>!(nState &amp; ODS_NOFOCUSRECT)?</P></FONT></FONT><DIV>{</DIV><P>DrawFocusRect(pDC, nState, rcItem, pButton);</P><P>}</P><P>}</P><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><FONT face="Times New Roman, Times, serif">P.S. not big deal, but I havent found at least one such check in all your library code</FONT>&nbsp; <img src="https://forum.codejock.com/smileys/smiley2.gif" border="0"></FONT>]]>
   </description>
   <pubDate>Thu, 03 Aug 2006 03:37:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4709&amp;PID=14585&amp;title=owner-draw-buttons-not-checking-ods-nofocusrect#14585</guid>
  </item> 
 </channel>
</rss>