Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ListView control bug with more than 32768 items.

0 views
Skip to first unread message

darrenw

unread,
Sep 14, 2003, 9:57:42 PM9/14/03
to
Can someone please confirm whether the following is a bug or not. I
have a listview control with more than 32,768 items loaded. I have it
in report view and I have enabled checkboxes. When I click an item
past the 32,768 item the ItemCheck event is fired correct but the
Checked property on the Item passed into the event is always False. If
I click any items from 1-32,768 the Checked is correct - True when on
and False when off.

I'm using MS Windows Common Controls 6.0 (SP4).

Thanks in advance,
Darren.

cor_blimey

unread,
Sep 15, 2003, 3:40:01 AM9/15/03
to
Darren,

I believe the index for listviews and listboxes etc is an integer.

therefore you will not be able to get past these numbers anyway because it
woud cause an overflow.

Why on earth would you want to list that many items anyway?

"darrenw" <dar...@pipeline.com.au> wrote in message
news:6f651e9e.03091...@posting.google.com...

Frank Adam

unread,
Sep 15, 2003, 3:54:23 AM9/15/03
to
On 14 Sep 2003 18:57:42 -0700, dar...@pipeline.com.au (darrenw)
wrote:

>Can someone please confirm whether the following is a bug or not. I
>have a listview control with more than 32,768 items loaded. I have it
>in report view and I have enabled checkboxes. When I click an item
>past the 32,768 item the ItemCheck event is fired correct but the
>Checked property on the Item passed into the event is always False. If
>I click any items from 1-32,768 the Checked is correct - True when on
>and False when off.
>

Use the APIs, Luke. :)
When your click triggers, you can get the index via the API.
Actually, maybe even the .HitTest() might return a valid index into a
long, but that means you have to grab the cursor position with
GetCursorPos first.
Then with SendMessage again, you can test for the checked state. I
can't remember the exact flags and stuff, but if you have probs let me
know and i'll whip up a small example.

--

Regards, Frank

0 new messages