me
2005-01-14 20:14:15 UTC
Hi, i've written an owner-draw ListBox but I get some strange effects when
using the scroll-wheel to scroll the window.
If I set the type to "Fixed" the scroll-wheel causes the window to scroll
correctly but for some reason my MeasureItem function never gets called and
the items in the listbox are the wrong height (they just use some kind of
default value).
If I set the type to "Variable" the MeasureItem function gets called for
every item as expected and the listbox looks correct (all items are the
correct height). But when I use the scroll-wheel to scroll the window it
always scrolls downwards one whole page before stopping at the correct
window position.
A friend said that he might have seen this scroll behavior on some other
windows applications - is this a known problem? How come my MeasureItem
function doesn't get called (not even once) when the owner-draw type is set
to "Fixed"?
Is there a function I can call to set the "fixed" height manually?
Any help greatly appreciated!
Karl.
using the scroll-wheel to scroll the window.
If I set the type to "Fixed" the scroll-wheel causes the window to scroll
correctly but for some reason my MeasureItem function never gets called and
the items in the listbox are the wrong height (they just use some kind of
default value).
If I set the type to "Variable" the MeasureItem function gets called for
every item as expected and the listbox looks correct (all items are the
correct height). But when I use the scroll-wheel to scroll the window it
always scrolls downwards one whole page before stopping at the correct
window position.
A friend said that he might have seen this scroll behavior on some other
windows applications - is this a known problem? How come my MeasureItem
function doesn't get called (not even once) when the owner-draw type is set
to "Fixed"?
Is there a function I can call to set the "fixed" height manually?
Any help greatly appreciated!
Karl.