<?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 : SetFont(BOLD or UNDERLINE)</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : SetFont(BOLD or UNDERLINE)]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 17 Apr 2026 11:02:56 +0000</pubDate>
  <lastBuildDate>Tue, 26 Apr 2005 06:47:17 +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=2138</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[SetFont(BOLD or UNDERLINE) : Hi Oleg, You were correct. I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2138&amp;PID=6383&amp;title=setfontbold-or-underline#6383</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=7">jwhagen</a><br /><strong>Subject:</strong> 2138<br /><strong>Posted:</strong> 26 April 2005 at 6:47am<br /><br /><P><IMG src="http://forum.codejock.com/smileys/smiley17.gif" border="0">&nbsp;&nbsp; Hi Oleg,</P><P>You were correct. I did not have <strong>myFont</strong> as a member of CAboutDlg. Thanks for setting me straight. It now works great!</P><P>John</P><span style="font-size:10px"><br /><br />Edited by jwhagen</span>]]>
   </description>
   <pubDate>Tue, 26 Apr 2005 06:47:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2138&amp;PID=6383&amp;title=setfontbold-or-underline#6383</guid>
  </item> 
  <item>
   <title><![CDATA[SetFont(BOLD or UNDERLINE) : I create new sample and it works....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2138&amp;PID=6369&amp;title=setfontbold-or-underline#6369</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 2138<br /><strong>Posted:</strong> 25 April 2005 at 11:10pm<br /><br /><P>I create new sample and it works. </P><P>Check if myFont&nbsp; is member of CAboutDlg.</P>]]>
   </description>
   <pubDate>Mon, 25 Apr 2005 23:10:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2138&amp;PID=6369&amp;title=setfontbold-or-underline#6369</guid>
  </item> 
  <item>
   <title><![CDATA[SetFont(BOLD or UNDERLINE) : Hi Oleg, Thanks for your quick...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2138&amp;PID=6352&amp;title=setfontbold-or-underline#6352</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=7">jwhagen</a><br /><strong>Subject:</strong> 2138<br /><strong>Posted:</strong> 23 April 2005 at 1:41pm<br /><br /><P>Hi Oleg,</P><P>Thanks for your quick response! I tried what you suggested and I was still unable to have the title underlined AND in bold. This is what I used in the ListCtrl_vc60 sample program, in the AboutDlg.h file:</P><P><table width="99%"><tr><td><pre class="BBcode">CFont&nbsp;myFont;<BR>NONCLIENTMETRICS ncm = { sizeof(NONCLIENTMETRICS) };<BR>VERIFY(::SystemParametersInfo(SPI_GETNONCLIENTMETRICS, sizeof(NONCLIENTMETRICS), &amp;ncm, 0));<BR>ncm.lfSmCaptionFont.lfWeight = FW_BOLD;<BR>ncm.lfSmCaptionFont.lfUnderline = 1;<BR>myFont.CreateFontIndirect(&amp;ncm.lfSmCaptionFont);</pre></td></tr></table><BR></P><P>then...</P><P><table width="99%"><tr><td><pre class="BBcode">#ifdef _XTP_INCLUDE_CONTROLS<BR>&nbsp;&nbsp;// set the title text to bold font.<BR>&nbsp;&nbsp;m_txtTitle.SetFont( &amp;myFont );<BR>&nbsp; //&nbsp;&nbsp;m_txtTitle.SetFont( &amp;XTAuxData().fontBold );<BR>...</pre></td></tr></table></P><P>All I get is the new font in bold, without the underline. Suggestions?</P><P>John Hagen</P><P><IMG height=427 src="http://forum.codejock.com/uploads/jwhagen/2005-04-23_133950_AboutDlg.jpg" width=640 border="0"></P><span style="font-size:10px"><br /><br />Edited by jwhagen</span>]]>
   </description>
   <pubDate>Sat, 23 Apr 2005 13:41:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2138&amp;PID=6352&amp;title=setfontbold-or-underline#6352</guid>
  </item> 
  <item>
   <title><![CDATA[SetFont(BOLD or UNDERLINE) : You must create new font NONCLIENTMETRICS...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2138&amp;PID=6331&amp;title=setfontbold-or-underline#6331</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 2138<br /><strong>Posted:</strong> 21 April 2005 at 11:17pm<br /><br /><P>You must create new font</P><FONT size=2><P>NONCLIENTMETRICS ncm = { </FONT><FONT color=#0000ff size=2>sizeof</FONT><FONT size=2>(NONCLIENTMETRICS) };</P><P>VERIFY(::SystemParametersInfo(SPI_GETNONCLIENTMETRICS, </FONT><FONT color=#0000ff size=2>sizeof</FONT><FONT size=2>(NONCLIENTMETRICS), &amp;ncm, 0));</P></FONT><FONT size=2><P>ncm.lfSmCaptionFont.lfWeight = <FONT size=2>FW_BOLD;</FONT></P><FONT size=2><P>ncm.lfSmCaptionFont.lfUnderline = 1;</P><P>&nbsp;</P><FONT size=2><P>font.CreateFontIndirect(&amp;ncm.lfSmCaptionFont);</P></FONT></FONT></FONT>]]>
   </description>
   <pubDate>Thu, 21 Apr 2005 23:17:14 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2138&amp;PID=6331&amp;title=setfontbold-or-underline#6331</guid>
  </item> 
  <item>
   <title><![CDATA[SetFont(BOLD or UNDERLINE) : I&amp;#039;m trying to set the Title...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2138&amp;PID=6318&amp;title=setfontbold-or-underline#6318</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=7">jwhagen</a><br /><strong>Subject:</strong> 2138<br /><strong>Posted:</strong> 21 April 2005 at 7:57am<br /><br /><P>I'm trying to set the Title to be in BOLD font and UNDERLINED but don't know how to make this work. I can get one or the other, but not both. Any help would be appreciated!</P><P>&nbsp;// set the title text to bold font.<BR>&nbsp;m_Title.SetFont( &amp;XTAuxData().fontBold );<BR>&nbsp;m_Title.SetFont( &amp;XTAuxData().fontULine );<BR></P><P>In the instance above, whatever line is last is the one that works. In this example, the font is does not display as&nbsp;BOLD, but only UNDERLINED. Can they be ORd together? If so, how?</P><P>John Hagen</P>]]>
   </description>
   <pubDate>Thu, 21 Apr 2005 07:57:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2138&amp;PID=6318&amp;title=setfontbold-or-underline#6318</guid>
  </item> 
 </channel>
</rss>