<?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 : Set header font for CXTListCtrl</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Set header font for CXTListCtrl]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 21 Apr 2026 21:43:27 +0000</pubDate>
  <lastBuildDate>Tue, 23 Aug 2005 12:50:56 +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=2770</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[Set header font for CXTListCtrl : Hi Oleg, I was trying to set...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2770&amp;PID=8305&amp;title=set-header-font-for-cxtlistctrl#8305</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=870">jlee</a><br /><strong>Subject:</strong> 2770<br /><strong>Posted:</strong> 23 August 2005 at 12:50pm<br /><br /><P>Hi Oleg,</P><P>I was trying to set the font for the header of CXTListCtrl&nbsp;using the 'SetFont' function, but it didn't seem to work. Could you please give me some help here? My code is something like this:</P><FONT size=3><P><FONT size=1>m_userList.GetFont()-&gt;GetLogFont(&amp;logFont);&nbsp; // where m_userList is a 'CXTListCtrl'</FONT></P><P><FONT size=1>logFont.lfHeight = -15;</FONT></P><P></FONT><FONT size=1>pFont = <FONT color=#0000ff>new</FONT> CFont;</FONT></P><P><FONT size=1>pFont-&gt;CreateFontIndirect(&amp;logFont);</FONT></P><P><FONT size=1></FONT></P><P><FONT size=1>HWND hWndHeader = m_userList.GetDlgItem(0)-&gt;GetSafeHwnd();</FONT></P><P><FONT size=1>m_header.SubclassWindow(hWndHeader);&nbsp; // where m_header is a 'CXTHeaderCtrl'</FONT></P><P><FONT size=1>m_header.SetFont(pFont);</FONT></P><FONT color=#008000 size=1><P>// enable auto sizing.</P></FONT><P><FONT size=1>m_header.EnableAutoSize(TRUE);</FONT></P><P><FONT size=1>m_header.ResizeColumnsToFit();</FONT></P><P><FONT size=1>m_header.SetTheme(<FONT color=#0000ff>new</FONT> CXTHeaderThemeOffice2003());</FONT></P><P><FONT size=2>... </FONT></P><P><FONT size=2></FONT>&nbsp;</P><P><FONT size=2>Thanks alot,</FONT></P><P><FONT size=2>JLee</FONT></P><!-- Message  ''"" -->]]>
   </description>
   <pubDate>Tue, 23 Aug 2005 12:50:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2770&amp;PID=8305&amp;title=set-header-font-for-cxtlistctrl#8305</guid>
  </item> 
 </channel>
</rss>