[EXPLORER] Start menu: Fix Small Icons flag (#6651)

Follow-up to #6646.
Fix wrong flag use: #6646 (comment)
JIRA issue: CORE-19494
- Delete SmallStartMenu flag (wrong) from
  _TW_STUCKRECTS2.
- Rename _TW_STUCKRECTS2.SmallIcons as
  SmSmallIcons.
- Use SmSmallIcons flag.
This commit is contained in:
Katayama Hirofumi MZ
2024-03-22 21:15:22 +09:00
committed by GitHub
parent 2ec785b1ee
commit 17b0623cf8
5 changed files with 33 additions and 17 deletions

View File

@@ -23,7 +23,8 @@
HRESULT
UpdateStartMenu(IN OUT IMenuPopup *pMenuPopup,
IN HBITMAP hbmBanner OPTIONAL,
IN BOOL bSmallIcons)
IN BOOL bSmallIcons,
IN BOOL bRefresh)
{
CComPtr<IBanneredBar> pbb;
HRESULT hRet;
@@ -37,6 +38,11 @@ UpdateStartMenu(IN OUT IMenuPopup *pMenuPopup,
hRet = pbb->SetIconSize(bSmallIcons ? BMICON_SMALL : BMICON_LARGE);
}
if (bRefresh)
{
FIXME("Refresh the Start menu with communicating with SHELL32\n");
}
return hRet;
}
@@ -97,7 +103,7 @@ CreateStartMenu(IN ITrayWindow *Tray,
if (FAILED_UNEXPECTEDLY(hr))
return NULL;
UpdateStartMenu(pMp, hbmBanner, bSmallIcons);
UpdateStartMenu(pMp, hbmBanner, bSmallIcons, FALSE);
*ppMenuBand = pMb.Detach();