|
|
|
@ -4257,10 +4257,14 @@ LRESULT CJupiterWindow_StaticCoreWindowSubclassProcHook( |
|
|
|
FreeLibrary(hModule); |
|
|
|
FreeLibrary(hModule); |
|
|
|
if (!dwStatus) |
|
|
|
if (!dwStatus) |
|
|
|
{ |
|
|
|
{ |
|
|
|
BOOL bIsAtBottom = FALSE, bIsAtRight = FALSE; |
|
|
|
|
|
|
|
POINT pt = GetDefaultWinXPosition(TRUE, &bIsAtBottom, &bIsAtRight); |
|
|
|
|
|
|
|
RECT rc; |
|
|
|
RECT rc; |
|
|
|
GetWindowRect(hWnd, &rc); |
|
|
|
GetWindowRect(hWnd, &rc); |
|
|
|
|
|
|
|
if (rc.top > 10) // this differentiates between the search
|
|
|
|
|
|
|
|
// interface (Win+Q) and the search box in
|
|
|
|
|
|
|
|
// Explorer
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
BOOL bIsAtBottom = FALSE, bIsAtRight = FALSE; |
|
|
|
|
|
|
|
POINT pt = GetDefaultWinXPosition(TRUE, &bIsAtBottom, &bIsAtRight); |
|
|
|
LPWINDOWPOS wp = lParam; |
|
|
|
LPWINDOWPOS wp = lParam; |
|
|
|
wp->x = pt.x - (bIsAtRight ? (rc.right - rc.left) : 0); |
|
|
|
wp->x = pt.x - (bIsAtRight ? (rc.right - rc.left) : 0); |
|
|
|
wp->y = pt.y - (bIsAtBottom ? (rc.bottom - rc.top) : 0); |
|
|
|
wp->y = pt.y - (bIsAtBottom ? (rc.bottom - rc.top) : 0); |
|
|
|
@ -4269,6 +4273,7 @@ LRESULT CJupiterWindow_StaticCoreWindowSubclassProcHook( |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
return CJupiterWindow_StaticCoreWindowSubclassProcFunc(hWnd, uMsg, wParam, lParam); |
|
|
|
return CJupiterWindow_StaticCoreWindowSubclassProcFunc(hWnd, uMsg, wParam, lParam); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|