
CListCtrl Row Highlight disappears when control loses focus
Thanks -
The Show Selection Always box worked - can't believe I missed it. I
tried first to just use LVS_SHOWSELALWAYS via the SendMessage method,
but that didn't work. Not sure why, but since I got this baby to work
via one method it doesn't really matter.
Thanks for your help -
I really appreciate.
Jen Studer
Quote:
> You can set the list control to always show the selection when it
doesn't
> have focus. Either check the "Show selection always" box in the
resource
> editor or if your creating the control dynamically, specify the
> LVS_SHOWSELALWAYS style.
> Stu
> > Hi -
> > I'm trying to use a CListCtrl to show a list of items that the user
can
> > singly or multiply select from. The problem I am having is that
when
> > the user highlights the row(s) they want, if the user clicks on
another
> > control on the screen, the list control loses the focus and the
> > highlighting is no longer visible to the user. Their first reaction
is
> > that the rows are no longer selected. (But they still are, it's
just
> > no longer visible).
> > Does anyone know how to fix this problem so that the rows the user
> > highlights in a control list stay visibly selected when the user
clicks
> > elsewhere on the app screen?
> > Thanks,
> > Jen Studer
> > Sent via Deja.com http://www.deja.com/
> > Before you buy.
Sent via Deja.com http://www.deja.com/
Before you buy.