Re: Scrolling.

Tech-Archive recommends: Fix windows errors by optimizing your registry



"TonyG" <TonyG@xxxxxxxx> wrote in message
news:%quci.4066$bP5.864@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I'm confused. Do I call SetItemHeight directly? Or do I post a message
with LB_SETITEMHEIGHT? What value do I pass for the height. Do I have to
figure that out? I thought that's what the function MeasureItem did.


SetItemHeight() internally sends the LB_SETITEMHEIGHT message (see by
tracing into the MFC code). If MeasureItem() is not being called, then you
need to do call SetItemHeight(). I would think MeasureItem() would not be
called after resizing the listbox, since normally the item heights are not
affected by the height of the listbox!

-- David


.