Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 microsoft visual c++ runtime library error?

1031


What is difference between c++ and vc++?

1162


What is microsoft visual c++ used for?

975


What is ole? How do you handle drag and drop in ole?

908


What is visual c++ runtime error?

1144


What is the difference between an MLE and an SLE?

6489


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

1024


How you build a project using Developer Studio?

2240


Explain pointer to the constant and constant pointer?

888


What is microsoft visual c++ 2005 redistributable?

1000


How do I change visual code font?

1046


Can I uninstall visual c++ 2005?

942


Explain the advantages of cwinthread class.

935


What is the difference between turbo c++ and visual c++?

969


In which Way invoke context-sensitive help inside the editor?

2158