Click to See Complete Forum and Search --> : How to create ListView without LVS_REPORT
Markovich
March 31st, 2008, 05:15 PM
I created ListView with two Columns with LVS_REPORT style. But than i tries to create such list without LVS_REPORT then no data is shown it this ListView. What combination of flags I need to use to creta such ListView without LVS_REPORT?
Marc G
April 1st, 2008, 08:53 AM
When you removed the LVS_REPORT style, did you add another style like LVS_ICON, LVS_LIST or LVS_SMALLICON?
Markovich
April 1st, 2008, 05:50 PM
I tried to add LVS_LIST style. But then only first column is shawn.
Arjay
April 1st, 2008, 06:24 PM
I tried to add LVS_LIST style. But then only first column is shawn.When the LVS_LIST style is set, there is only one column. You need to use LVS_REPORT if you want more than one column.
Marc G
April 2nd, 2008, 09:06 AM
What exactly do you want to do?
Markovich
April 3rd, 2008, 09:22 AM
I want to create ListView with two columns but without scroles
Arjay
April 3rd, 2008, 10:11 AM
In the properties dialog of the list control, set the "No Scroll" style to 'true'. (This is on Visual Studio 2005, find the equivalent on earlier versions).
Markovich
April 3rd, 2008, 04:24 PM
I use CreateWindow to create ListView
Igor Vartanov
April 3rd, 2008, 04:33 PM
I want to create ListView with two columns but without scrolesSorry, what do you mean with that "two columns"? Two columns of list entries? Or two columns of list enrty attributes? Or something else?
Arjay
April 3rd, 2008, 04:42 PM
I use CreateWindow to create ListViewFine, review the control styles and set the equivalent one in CreateWindow.
Markovich
April 3rd, 2008, 06:11 PM
LVS_NOSCROLL
Scrolling is disabled. All items must be within the client area. This style is not compatible with the LVS_LIST or LVS_REPORT styles.
Arjay
April 3rd, 2008, 08:10 PM
You aren't going to have scrolling anyway if your items fit within the available client area. If you have more than one column, you have to size the second column such that it doesn't extend into (what would be) the vertical scroll bar area.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.