Click here to Skip to main content
15,921,463 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I have a list control object using the Report view, in my dialog. It has
only a single column with no header text. The header gets displayed
with no text, of course, but I would like to hide it. How do I do this?
My listcontrol is created by dynamically.So how can i hide it?
Posted

1 solution

You can hide the header of a list control.
But it is not possible to hide the header of a single column.That is what i understand from your qstn.also it doesnt make any sense.
to hide the list control header u can code as below.

CHeaderCtrl* pHdr = m_ListCtrl.GetHeaderCtrl();
pHdr->ShowWindow(SW_HIDE);
 
Share this answer
 
Comments
Member 11489130 18-Jun-15 10:14am    
Header of list control not hiding.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900