<?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 : CXTFontCombo no indication when focused</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : CXTFontCombo no indication when focused]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 13 Jun 2026 05:59:10 +0000</pubDate>
  <lastBuildDate>Tue, 12 Sep 2006 08:35:01 +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=5033</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[CXTFontCombo no indication when focused :  CXTFontCombo control desn&amp;#039;t...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5033&amp;PID=15646&amp;title=cxtfontcombo-no-indication-when-focused#15646</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2036">Kukis</a><br /><strong>Subject:</strong> 5033<br /><strong>Posted:</strong> 12 September 2006 at 8:35am<br /><br /><FONT face="Times New Roman, Times, serif"><P><FONT size=2>CXTFontCombo control desn't indicate focused state when font isn't selected (edit part of the combobox is empty).&nbsp;I dont want to select anything on init to let the user to decide what should be selected and to know has user selected anything or not. Right now CXTFontCombo control skips drawing entirely if no selection was done:</P><DIV></DIV><DIV style="MARGIN: 0cm 0cm 0pt"><strong>void</strong> CXTFontCombo::DrawItem(LPDRAWITEMSTRUCT lpDIS)</DIV><DIV style="MARGIN: 0cm 0cm 0pt">{</DIV><DIV style="MARGIN: 0cm 0cm 0pt 35.4pt"><strong>if</strong> (lpDIS-&gt;itemID == (UINT)-1)</DIV><DIV style="MARGIN: 0cm 0cm 0pt 35.4pt">{</DIV><DIV style="MARGIN: 0cm 0cm 0pt 35.4pt; TEXT-INDENT: 35.4pt"><strong>return</strong>;</DIV><DIV style="MARGIN: 0cm 0cm 0pt 35.4pt">}</DIV><DIV style="MARGIN: 0cm 0cm 0pt 35.4pt"><DIV style="MARGIN: 0cm 0cm 0pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ……….</DIV><DIV style="mso-layout-grid-align: n&#111;ne">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong>if</strong> (nState &amp; ODS_SELECTED)</DIV><DIV style="mso-layout-grid-align: n&#111;ne">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</DIV><DIV style="mso-layout-grid-align: n&#111;ne">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pDC-&gt;FillSolidRect(rcItem, GetXtremeColor(COLOR_HIGHLIGHT));</DIV><DIV style="mso-layout-grid-align: n&#111;ne">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pDC-&gt;SetTextColor(GetXtremeColor(COLOR_HIGHLIGHTTEXT));</DIV><DIV style="mso-layout-grid-align: n&#111;ne">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pDC-&gt;DrawFocusRect(&amp;rcItem);</DIV><DIV style="mso-layout-grid-align: n&#111;ne">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</DIV><DIV style="mso-layout-grid-align: n&#111;ne">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong>else</strong></DIV><DIV style="mso-layout-grid-align: n&#111;ne">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</DIV><DIV style="mso-layout-grid-align: n&#111;ne">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pDC-&gt;FillSolidRect(rcItem, GetXtremeColor(COLOR_WINDOW));</DIV><DIV style="mso-layout-grid-align: n&#111;ne">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pDC-&gt;SetTextColor(GetXtremeColor(COLOR_WINDOWTEXT));</DIV><DIV style="mso-layout-grid-align: n&#111;ne">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</DIV></DIV><DIV style="MARGIN: 0cm 0cm 0pt">…….</DIV><DIV style="MARGIN: 0cm 0cm 0pt">}</DIV><DIV style="MARGIN: 0cm 0cm 0pt">&nbsp;</DIV><DIV style="MARGIN: 0cm 0cm 0pt">Should't it draw background and focus rectangle anyway?</DIV><DIV style="MARGIN: 0cm 0cm 0pt">&nbsp;</DIV><DIV style="MARGIN: 0cm 0cm 0pt">P.S. And check ODS_NOFOCUSRECT before drawing a focus rectangle <img src="https://forum.codejock.com/smileys/smiley2.gif" border="0">:</DIV><DIV style="MARGIN: 0cm 0cm 0pt">&nbsp;</DIV><DIV style="MARGIN: 0cm 0cm 0pt"><DIV style="mso-layout-grid-align: n&#111;ne"><strong>if</strong>(!(nState &amp; ODS_NOFOCUSRECT))</DIV><DIV style="mso-layout-grid-align: n&#111;ne">&nbsp;&nbsp;&nbsp; pDC-&gt;DrawFocusRect(&amp;rcItem);</DIV></DIV></FONT></FONT>]]>
   </description>
   <pubDate>Tue, 12 Sep 2006 08:35:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5033&amp;PID=15646&amp;title=cxtfontcombo-no-indication-when-focused#15646</guid>
  </item> 
 </channel>
</rss>