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
Do I need microsoft visual c++?
What is the use of microsoft visual c++ 2015 redistributable?
Difference between critical section, mutex and semaphore.
What is microsoft visual c++ 2013 redistributable?
What is a thread (VC++) and state the difference between Cmutex and Csemaphone?
What is ole? How do you handle drag and drop in ole?
What is vc++ redistributable?
Is visual c++ the same as c++?
How do I fix microsoft visual c++ 2015 setup failed?
What is odbc in vc ++?
Do I need all the microsoft visual c++ redistributable?
Can I remove microsoft visual c++?
What is visual c++ 2008 redistributable x64?
How do I get rid of microsoft visual c++ runtime library error?
Explain the important features of vc++?