vc CListView header color

Category: VC/MFC -> UI Author: june_ma Date: 2007-02-06 11:49:03
 
june_ma
2007-02-06 11:49:03
? How to   CListView   table header add color
nacny
2007-02-06 11:52:49
reload CHeaderCtrl,   then ClistCtrl neutron classed ,  
follows :

1.   class   CMyHearderCtrl  :   public   CHeaderCtrl
2.   CMyHearderCtrl   m_wndHeader;   // clistCtrl.h

3.   // Clistctrl.cpp    
void CMyList::PreSubclassWindow()
{
CListCtrl::PreSubclassWindow();

_AFX_THREAD_STATE* pThreadState = AfxGetThreadState();
if (pThreadState->m_pWndInit == NULL)
{
m_wndHeader.SubclassDlgItem(0, this);
}
}
a306203403
2007-02-06 12:10:06


funny ,   you do not deal with is to do CListCtrl < ? br />
then CListView in the same subclass in its Clistctrl ah ,  

or to write their own CListView,   create this listctrl you do in the oncreate in CView
d7661388
2007-02-06 12:22:07
  listview in that CListCtrl, use & GetListCtrl () can get pointers. In OnInitialUpdate in subclass should be on it .
key416
2007-02-06 12:37:33
on Codeproject find some self- painted CListCtrl, should be a lot of
f568897389
2007-02-06 12:43:54
CListCtrl I know ,   online bunch CListCtrl table header redraw I want is  . direct inherited from CListView   listview   table header color how to deal with
liuling0612
2007-02-06 13:03:45
Oh ,  ? buttoned up