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 microsoft visual c++ runtime library error?
What is difference between c++ and vc++?
What is microsoft visual c++ used for?
What is ole? How do you handle drag and drop in ole?
What is visual c++ runtime error?
What is the difference between an MLE and an SLE?
Is it safe to uninstall microsoft visual c++ 2008 redistributable?
How you build a project using Developer Studio?
Explain pointer to the constant and constant pointer?
What is microsoft visual c++ 2005 redistributable?
How do I change visual code font?
Can I uninstall visual c++ 2005?
Explain the advantages of cwinthread class.
What is the difference between turbo c++ and visual c++?
In which Way invoke context-sensitive help inside the editor?