[RAPPS] Show the user that there are no search results

CORE-17944
This commit is contained in:
Mark Jansen 2021-12-30 20:17:32 +01:00
parent d59f5ae2a5
commit acc25ce914
30 changed files with 84 additions and 1 deletions

View file

@ -706,6 +706,14 @@ VOID CMainWindow::UpdateApplicationsList(INT EnumType)
m_ApplicationView->SetRedraw(TRUE);
m_ApplicationView->RedrawWindow(0, 0, RDW_INVALIDATE | RDW_ALLCHILDREN); // force the child window to repaint
UpdateStatusBarText();
CStringW text;
if (m_ApplicationView->GetItemCount() == 0 && !szSearchPattern.IsEmpty())
{
text.LoadString(IDS_NO_SEARCH_RESULTS);
}
m_ApplicationView->SetWatermark(text);
bUpdating = FALSE;
}