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 cmutex?
What is the Use of the Developer Studio Editor?
What is visual c++ redistributable?
Can I delete old microsoft visual c++?
Is it ok to uninstall microsoft visual c++?
What is odbc in vc ++?
What is microsoft visual c++ 2013 redistributable?
Explain the advantages of cwinthread class.
Difference between critical section, mutex and semaphore.
difference between assert and verify.
Is visual c++ the same as c++?
What is microsoft visual c++ 2008 redistributable and do I need it?
Is microsoft visual c++ a virus?
Where can I find microsoft visual c++ on my computer?
What is vcredist?