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 splitter window in vc++?
Do I need microsoft visual c++?
What is mfc in vc++?
How do I get rid of microsoft visual c++ runtime library error?
Is microsoft visual c++ important?
Can I uninstall visual c++ 2005?
How do I uninstall vc++ 2015?
What is visual c++ redistributable?
What is microsoft visual c++ 2010 x86 redistributable?
What is microsoft visual c++ 2015 redistributable?
What is microsoft visual c++ used for?
What is visual c++ used for?
Explain pointer to the constant and constant pointer? Explain difference between them.
What is the use of microsoft visual c++ 2015 redistributable?
What is the difference between an MLE and an SLE?