Which steps are required to add a column to a list view?

Answers were Sorted based on User's Feedback



Which steps are required to add a column to a list view? ..

Answer / 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

Which steps are required to add a column to a list view? ..

Answer / poonam

i want to know list view indicates list box or list control
please explain that...

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More VC++ AllOther Interview Questions

How do I reinstall visual c++ on windows 10?

0 Answers  


What is a copy constructor? What is the need for it?

0 Answers  


How many microsoft visual c++ do you need?

0 Answers  


hello sir i need movie editing and mixing software .where it is available and what is the site address

0 Answers  


What is microsoft visual c++ 2017 redistributable?

0 Answers  






What is visual c++ runtime?

0 Answers  


What is the default label used for in a switch statement?

2 Answers  


What is microsoft visual c++ 2013 redistributable?

0 Answers  


What is cwinthread class? Explain its advantages.

0 Answers  


Do I need ms visual c++ on my computer?

0 Answers  


How a dll will be sharable by more than one exe?

4 Answers   CA,


What is visual c++ 2010 redistributable package x64?

0 Answers  


Categories