Which steps are required to add a column to a list view?
Answer Posted / shadab ali
To add a column in List view, steps are as follows-
1. Create an object of LVCOLUMN structure.
Initilize the structure meeber variable.
2. LVCOLUMN lvcolm
lvcolm.mask=LVCF_TEXT|LVCF_FMT|LVCF_WIDTH|LVCF_SUBITEM;//Var
iable specifying which members contain valid information
lvcolm.fmt=LVCFMT_LEFT;//Alignment of the column header
lvcolm.cx=100;//Width of the column, in pixels
lvcolm.pszText="First"; //column header text
3. ListObj.InsertColumn(0,&lvcolm);
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Explain the significance of initapplication() in vc++.
What is microsoft visual c++ 2013 redistributable package x64?
What is microsoft visual c++ 2015 redistributable package x64?
Does visual c++ 2017 replace 2015?
Can I uninstall visual c++?
What is visual c++ used for?
Explain pointer to the constant and constant pointer? Explain difference between them.
How do I uninstall and reinstall microsoft visual c++ runtime libraries?
What is the Use of the Developer Studio Editor?
What is microsoft visual c++ runtime library error?
What is microsoft visual c++ redistributable and do I need it?
In which Way invoke context-sensitive help inside the editor?
What is microsoft visual c++ used for?
How do I uninstall vc++ 2015?
Do I need all the microsoft visual c++ redistributable?