When the list view control is in the report it usually
displays a header control to label the columns. Often times we need to
get hold of the header control. This header control is a child window of
the list view control and always has the ID 0.
CHeaderCtrl* pHeader =(CHeaderCtrl*)m_listctrl.GetDlgItem(0);
The header control exists even if the list view is not in the report mode.
When the list view mode is other that the LVS_REPORT, the dimensions of
the header control is zero.
Comments:
- Disabling column resizing – cagatay aksaray (2003/08/07)
- Add Column to Outlook Address Book – Andy Grubenhoff (2002/03/27)
- How do we get header information when we are clicked right mouse button? – Hong sung dong (2001/12/03)
- Sort order arrow in Header control – dany (2001/08/09)
- What about for a list control in a dialogue – Tommy Klausen (2001/07/19)
- activex and ie 5.5 conflict – having to do with list views!! Please help! – Ryan Dennis (2001/06/07)
- How do you put your own header control in a listview? – Stephen Bayard (2001/06/06)
- How do I change the CHeaderCtrl’s style – Masoud (2001/04/24)
- How to change Header Ctrl’s font color – puzm (2000/11/07)
- How to get back text from column Header – Jerry Gadd (2000/09/01)
- display the caption in 2 line – ning (2000/04/27)
- Use GetHeaderCtrl () – Amir Salzberg (2000/04/03)
- Header control problems – Valery Krasovsky (2000/03/10)
- How to change header ctrl’s bk color and… – jijon (1999/06/30)
- When do we need to use it? – Shahzad (1999/05/13)
- Simple ListCtrl Header AutoSize – Larry Yates (1999/02/25)
- Accessing the header control – voko (1999/01/14)
- How to change the font of listctrl’s header? – ShaoJun (1999/01/10)
- How to change the font of listctrl’s header? – ShaoJun (1999/01/10)