|
|
|
@ -103,19 +103,14 @@ LRESULT CALLBACK HideExplorerSearchBarSubClass( |
|
|
|
DWORD_PTR dwRefData |
|
|
|
DWORD_PTR dwRefData |
|
|
|
) |
|
|
|
) |
|
|
|
{ |
|
|
|
{ |
|
|
|
switch (uMsg) |
|
|
|
if (uMsg == WM_SIZE || uMsg == WM_PARENTNOTIFY) |
|
|
|
{ |
|
|
|
{ |
|
|
|
case WM_PARENTNOTIFY: |
|
|
|
if (uMsg == WM_SIZE && IsWindows11Version22H2OrHigher()) HideExplorerSearchBar(hWnd); |
|
|
|
if ((WORD)wParam == 1) |
|
|
|
else if (uMsg == WM_PARENTNOTIFY && (WORD)wParam == 1) HideExplorerSearchBar(hWnd); |
|
|
|
{ |
|
|
|
|
|
|
|
HideExplorerSearchBar(hWnd); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
break; |
|
|
|
else if (uMsg == WM_DESTROY) |
|
|
|
|
|
|
|
{ |
|
|
|
case WM_DESTROY: |
|
|
|
|
|
|
|
RemoveWindowSubclass(hWnd, HideExplorerSearchBarSubClass, (UINT_PTR)HideExplorerSearchBarSubClass); |
|
|
|
RemoveWindowSubclass(hWnd, HideExplorerSearchBarSubClass, (UINT_PTR)HideExplorerSearchBarSubClass); |
|
|
|
break; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return DefSubclassProc(hWnd, uMsg, wParam, lParam); |
|
|
|
return DefSubclassProc(hWnd, uMsg, wParam, lParam); |
|
|
|
} |
|
|
|
} |