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

Is it safe to uninstall microsoft visual c++ 2008 redistributable?

804


Is microsoft visual c++ a virus?

918


What is microsoft visual c++ 2015 redistributable?

814


What is visual c++ runtime?

783


Can I uninstall visual c++?

807


What is vcruntime?

793


What is microsoft visual c++ 2008 redistributable?

831


What is microsoft visual c++ 2015 redistributable package x64?

753


What is visual c++ 2008 redistributable x64?

745


How do I reinstall microsoft visual c++?

721


What is iunknown?

757


What is visual c++ 2010 redistributable package x64?

756


Difference between getmessage, postmessage & peakmessage.

803


What is the difference between an MLE and an SLE?

6121


What is the use of message map? Advantages of a message map.

789