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
What is dao in vc ++?
What is the Use of the Developer Studio Editor?
Explain pointer to the constant and constant pointer?
How do I get rid of microsoft visual c++ runtime library error?
What is microsoft visual c++ 2017 redistributable?
What is vcredist_x86 exe?
What is microsoft visual c++ 2010 x86 redistributable?
How do I uninstall and reinstall microsoft visual c++ runtime libraries?
Explain the important features of vc++?
What is visual c++ used for?
What is visual c++ redistributable?
What is the use of microsoft visual c++ 2015 redistributable?
How do I uninstall vc++ 2015?
How do I install microsoft visual c++ 2015?
Explain some of commonly used methods provided by iunknown.