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

What is splitter window in vc++?

784


Do I need microsoft visual c++?

636


What is mfc in vc++?

786


How do I get rid of microsoft visual c++ runtime library error?

756


Is microsoft visual c++ important?

715






Can I uninstall visual c++ 2005?

643


How do I uninstall vc++ 2015?

587


What is visual c++ redistributable?

661


What is microsoft visual c++ 2010 x86 redistributable?

632


What is microsoft visual c++ 2015 redistributable?

674


What is microsoft visual c++ used for?

638


What is visual c++ used for?

654


Explain pointer to the constant and constant pointer? Explain difference between them.

764


What is the use of microsoft visual c++ 2015 redistributable?

603


What is the difference between an MLE and an SLE?

5888