Skip to content

Commit

Permalink
Merge pull request #143 from ansani/139-network-window-continuously-c…
Browse files Browse the repository at this point in the history
…lear-and-refresh-unable-to-select-and-click-on-a-neighbour

139 network window continuously clear and refresh unable to select and click on a neighbour
  • Loading branch information
ansani committed Apr 24, 2024
2 parents 69b0fbe + a4a7d18 commit bf87d58
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions shareaza/LiveList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down Expand Up @@ -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();
}

//////////////////////////////////////////////////////////////////////
Expand Down
2 changes: 2 additions & 0 deletions shareaza/WndSecurity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );

Expand Down

0 comments on commit bf87d58

Please sign in to comment.