![]() |
Set header font for CXTListCtrl |
Post Reply
|
| Author | |
jlee
Newbie
Joined: 06 December 2004 Status: Offline Points: 6 |
Post Options
Thanks(0)
Quote Reply
Topic: Set header font for CXTListCtrlPosted: 23 August 2005 at 12:50pm |
|
Hi Oleg, I was trying to set the font for the header of CXTListCtrl 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: m_userList.GetFont()->GetLogFont(&logFont); // where m_userList is a 'CXTListCtrl' logFont.lfHeight = -15; pFont = new CFont;pFont->CreateFontIndirect(&logFont); HWND hWndHeader = m_userList.GetDlgItem(0)->GetSafeHwnd(); m_header.SubclassWindow(hWndHeader); // where m_header is a 'CXTHeaderCtrl' m_header.SetFont(pFont); // enable auto sizing. m_header.EnableAutoSize(TRUE); m_header.ResizeColumnsToFit(); m_header.SetTheme(new CXTHeaderThemeOffice2003()); ...
Thanks alot, JLee |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |