use LVSICF_NOINVALIDATEALL in SetItemCount() to reduce flicker
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24160 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2460,7 +2460,8 @@ void wxListCtrl::SetItemCount(long count)
|
|||||||
{
|
{
|
||||||
wxASSERT_MSG( IsVirtual(), _T("this is for virtual controls only") );
|
wxASSERT_MSG( IsVirtual(), _T("this is for virtual controls only") );
|
||||||
|
|
||||||
if ( !::SendMessage(GetHwnd(), LVM_SETITEMCOUNT, (WPARAM)count, LVSICF_NOSCROLL) )
|
if ( !::SendMessage(GetHwnd(), LVM_SETITEMCOUNT, (WPARAM)count,
|
||||||
|
LVSICF_NOSCROLL | LVSICF_NOINVALIDATEALL) )
|
||||||
{
|
{
|
||||||
wxLogLastError(_T("ListView_SetItemCount"));
|
wxLogLastError(_T("ListView_SetItemCount"));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user