Re: Selecting only one list item from ListView
Thanks that solved my prob .... ]
I have a splitterwind with list view on top pane . When I select one
of the list item , some data should be displayed in bottom pane ,
well this works fine when I click on any of the list items ,
But when I open the splitterwnd one of the list items is selected by
default, unable to display its data in bottom pane ...
I have OnItemchanged() which internally calls UpdateAllViews() and
OnUpdate of bottom view displays the data in bottom pane
but facing one more problem,
On Jul 15, 11:46 am, "Doug Harrison [MVP]" <d...@mvps.org> wrote:
On Mon, 14 Jul 2008 23:19:58 -0700 (PDT), "njoycod...@gmail.com"
<njoycod...@gmail.com> wrote:
I have a listView in MDI Application , ....
By default multiple list items can be selected .
How do I make it to select only one list item at a time ?
You need to specify the LVS_SINGLESEL style, probably in PreCreateWindow,
e.g.
BOOL MyListView::PreCreateWindow(CREATESTRUCT& cs)
{
cs.style |= LVS_REPORT | LVS_SINGLESEL;
return CListView::PreCreateWindow(cs);
}
--
Doug Harrison
Visual C++ MVP