Re: Scrolling.
- From: "David Ching" <dc@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 15 Jun 2007 14:54:09 GMT
"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
.
- References:
- Scrolling.
- From: TonyG
- Re: Scrolling.
- From: AliR \(VC++ MVP\)
- Re: Scrolling.
- From: TonyG
- Re: Scrolling.
- From: AliR \(VC++ MVP\)
- Re: Scrolling.
- From: TonyG
- Re: Scrolling.
- From: David Ching
- Re: Scrolling.
- From: TonyG
- Scrolling.
- Prev by Date: Re: Writing Add-ins for Excel
- Next by Date: Re: Debug Assertion Failure
- Previous by thread: Re: Scrolling.
- Next by thread: Re: Scrolling.
- Index(es):