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


Please Help Members By Posting Answers For Below Questions

How do I uninstall visual c++?

735


What is microsoft visual c++ 2008 redistributable and do I need it?

738


Can I delete old microsoft visual c++?

745


Explain the important features of vc++?

788


Do I need the microsoft visual c++?

767


What is odbc in vc ++?

831


Explain some of commonly used methods provided by iunknown.

693


What is vcredist?

856


Where can I find microsoft visual c++ on my computer?

775


Can I uninstall visual c++?

787


What is microsoft visual c++ 2015 redistributable?

794


How many microsoft visual c++ do you need?

801


What is microsoft visual c++ used for?

741


What is cmutex? How can we use it?

752


Do I need all the microsoft visual c++ redistributable?

736