Which steps are required to add a column to a list view?
Answers were Sorted based on User's Feedback
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 |
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 |
What is the return value when the InsertItem function fails?
Name the three attributes of a pen?
How do you specify which control is the buddy control?
What is a microsoft visual c++ 2008 redistributable?
How do I get rid of microsoft visual c++ runtime library error?
how to declare and populate an array of checkBoxes
hello sir i need movie editing and mixing software .where it is available and what is the site address
What is cwinthread class?
What is microsoft visual c++ redistributable and do I need it?
What is more efficient to pass as a parameter--a pointer or an object? Why?
How a dll will be sharable by more than one exe?
Where can I find microsoft visual c++ on my computer?