mirror of
https://github.com/valinet/ExplorerPatcher.git
synced 2025-02-21 12:50:08 +01:00
StartDocked: Disable "Recommended" section works on newer OS builds (#995)
This commit is contained in:
parent
045a104239
commit
32e1621f3a
@ -594,7 +594,16 @@ void LVT_StartDocked_DisableRecommendedSection(HWND hWnd, BOOL bApply)
|
||||
Windows_UI_Xaml_IDependencyObject* pMainContent = LVT_FindChildByName(pRootContent, pVisualTreeHelperStatics, L"MainContent");
|
||||
if (pMainContent)
|
||||
{
|
||||
Windows_UI_Xaml_IDependencyObject* pInnerContent = NULL;
|
||||
Windows_UI_Xaml_IDependencyObject* pUndockedRoot = LVT_FindChildByName(pMainContent, pVisualTreeHelperStatics, L"UndockedRoot");
|
||||
if (!pUndockedRoot)
|
||||
{
|
||||
pInnerContent = LVT_FindChildByName(pMainContent, pVisualTreeHelperStatics, L"InnerContent");
|
||||
if (pInnerContent)
|
||||
{
|
||||
pUndockedRoot = LVT_FindChildByName(pInnerContent, pVisualTreeHelperStatics, L"UndockedRoot");
|
||||
}
|
||||
}
|
||||
if (pUndockedRoot)
|
||||
{
|
||||
Windows_UI_Xaml_IDependencyObject* pStartInnerFrame = LVT_FindChildByClassName(pUndockedRoot, pVisualTreeHelperStatics, L"StartMenu.StartInnerFrame", NULL);
|
||||
@ -657,6 +666,10 @@ void LVT_StartDocked_DisableRecommendedSection(HWND hWnd, BOOL bApply)
|
||||
}
|
||||
pUndockedRoot->lpVtbl->Release(pUndockedRoot);
|
||||
}
|
||||
if (pInnerContent)
|
||||
{
|
||||
pInnerContent->lpVtbl->Release(pInnerContent);
|
||||
}
|
||||
pMainContent->lpVtbl->Release(pMainContent);
|
||||
}
|
||||
pRootContent->lpVtbl->Release(pRootContent);
|
||||
|
Loading…
x
Reference in New Issue
Block a user