News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

LB_SETTOPINDEX

Started by Grincheux, March 23, 2005, 09:40:42 PM

Previous topic - Next topic

Grincheux

 :naughty:

Microsoft says : "An application sends an LB_SETTOPINDEX message to ensure that a particular item in a list box is visible."

That's right if the listbox has no more than 32767 items.
In my listobx I have 50000 strings.
How is it possible that LB_SETTOPINDEX works fine with more than 32767 strings.
Kenavo

Grincheux
_____________________________________________________
http://www.phrio.biz

00100b

Looking at the descriptions of the LB_SETTOPINDEX and LB_INITSTORAGE, I don't think that a List class was ever meant to hold more than 32767 items.

Now, those same MSDN topics on those messages does specifically place the text for that limitation under a Win95/98 sub-heading, but there is also nothing specifically stated concerning this allocation for NT and above.

What happens is that you get a sign roll-over when you have items starting at an ordinal of 32768.

Grincheux

The first selected item is not a the top of the listbox instead this message.
If the first selected item is in te range 1..32767 the item is correctly displayed.
In the listbox I have the "Not Integral height" parameter set.

Before initializing the listbox I have used the LB_INITSTORAGE for 50 000 strings of 80 characters length.

Thanks
Kenavo

Grincheux
_____________________________________________________
http://www.phrio.biz