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
Is it safe to uninstall microsoft visual c++ 2008 redistributable?
Is microsoft visual c++ a virus?
What is microsoft visual c++ 2015 redistributable?
What is visual c++ runtime?
Can I uninstall visual c++?
What is vcruntime?
What is microsoft visual c++ 2008 redistributable?
What is microsoft visual c++ 2015 redistributable package x64?
What is visual c++ 2008 redistributable x64?
How do I reinstall microsoft visual c++?
What is iunknown?
What is visual c++ 2010 redistributable package x64?
Difference between getmessage, postmessage & peakmessage.
What is the difference between an MLE and an SLE?
What is the use of message map? Advantages of a message map.