diff --git a/shareaza/LiveList.cpp b/shareaza/LiveList.cpp index 24b74fdfb..2aa395168 100644 --- a/shareaza/LiveList.cpp +++ b/shareaza/LiveList.cpp @@ -98,6 +98,8 @@ void CLiveList::Apply(CListCtrl* pCtrl, BOOL bSort) BOOL bModified = FALSE; + pCtrl->SetRedraw(0); + for ( int nItem = 0 ; nItem < pCtrl->GetItemCount() ; nItem++ ) { DWORD nParam = (DWORD)pCtrl->GetItemData( nItem ); @@ -136,6 +138,9 @@ void CLiveList::Apply(CListCtrl* pCtrl, BOOL bSort) m_pItems.RemoveAll(); if ( bModified && bSort ) Sort( pCtrl, -1 ); + + pCtrl->SetRedraw(1); + pCtrl->Invalidate(); } ////////////////////////////////////////////////////////////////////// diff --git a/shareaza/WndSecurity.cpp b/shareaza/WndSecurity.cpp index 923b85f6d..63287a07d 100644 --- a/shareaza/WndSecurity.cpp +++ b/shareaza/WndSecurity.cpp @@ -103,10 +103,12 @@ int CSecurityWnd::OnCreate(LPCREATESTRUCT lpCreateStruct) m_pSizer.Attach( &m_wndList ); + m_wndList.SendMessage( LVM_SETEXTENDEDLISTVIEWSTYLE, LVS_EX_DOUBLEBUFFER|LVS_EX_FULLROWSELECT|LVS_EX_HEADERDRAGDROP|LVS_EX_LABELTIP, LVS_EX_DOUBLEBUFFER|LVS_EX_FULLROWSELECT|LVS_EX_HEADERDRAGDROP|LVS_EX_LABELTIP ); + CoolInterface.LoadIconsTo( m_gdiImageList, nImageID ); m_wndList.SetImageList( &m_gdiImageList, LVSIL_SMALL );