About SetRedraw(FALSE) And EnsureVisible()



I encounter a problem about CListControl's SetRedraw() & EnsureVisible().

Event after call SetRedraw(FALSE);, EnsureVisible() will cause CListCtrl
udpate display immediately. SetRedraw() doesn't work when call EnsureVisible()?
Who can tell me why?

And another question, how to set the CListControl's TopIndex? I only found
a GetTopIndex() function, but no SetTopIndex().
How to achieve this?

Thanks

Leon .



Relevant Pages

  • SOS! About SetRedraw()
    ... I encounter a problem about CListControl's SetRedraw() & EnsureVisible. ... Event after call SetRedraw;, EnsureVisiblewill cause CListCtrl ... Leon ...
    (microsoft.public.vc.mfc)
  • About SetRedraw(FALSE) and EnsureVisible()
    ... I encounter a problem about CListControl's SetRedraw() & EnsureVisible. ... Event after call SetRedraw;, EnsureVisiblewill cause CListCtrl ... a GetTopIndex() function, but no SetTopIndex. ...
    (microsoft.public.vc.language)
  • Re: CListCtrl::GetTopIndex() returns negative value?
    ... SetRedraw is the one to use. ... I've replaced my calls to LockWindowUpdate() with SetRedrawnow, and, ... after a bit of fiddling, things work fine in that respect. ... called during the call to GettopIndex() and, yes, it still returns a negative ...
    (microsoft.public.vc.mfc)
  • Re: CListCtrl debug assert failure when adding row
    ... >>Is it there some sort of setting that stops a CListCtrl from being ... >>after it is initially drawn? ... > SetRedraw - are you calling it? ...
    (microsoft.public.vc.mfc)

Loading