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

What are the advantages of a message map

0 Answers  


How can we allow no selection of radio button in grouped radio buttons?

2 Answers  


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

0 Answers  


What is the RGB macro used for?

1 Answers  


What is splitter window in vc++?

0 Answers  






Name some examples of the different types of windows found in a Windows application?

4 Answers  


Explain some of commonly used methods provided by iunknown.

0 Answers  


Is microsoft visual c++ a virus?

0 Answers  


What is microsoft visual c++ 2015 redistributable?

0 Answers  


What is command routing in VC++

3 Answers   Siemens,


What Is InfoViewer?

1 Answers  


How do I install microsoft visual c++ 2015?

0 Answers  


Categories