Decompile fn_04731 (CMouse::Message)
Batch #10993 by cremane: 0 byte-identical, 1 confirmed by peer review. - fn_04731 CMouse::Message: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, dori, StrawberrysherbetIX Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
parent
1f50a1f230
commit
e20b198c62
3 changed files with 30 additions and 29 deletions
|
|
@ -126,17 +126,17 @@ LRESULT CALLBACK sub_E5C430(HWND window, UINT message, WPARAM wParam, LPARAM lPa
|
|||
}
|
||||
return 1;
|
||||
}
|
||||
if (g_isAppActive != 1) {
|
||||
CWebBrowser* browser = g_windowMgr.FindBrowser(reinterpret_cast<HWND>(lParam));
|
||||
if (browser && browser->MatchesWindow(reinterpret_cast<HWND>(lParam))) {
|
||||
SetApplicationActive(1);
|
||||
} else {
|
||||
ShowWindow(window, SW_MINIMIZE);
|
||||
}
|
||||
if (g_isAppActive == 1) {
|
||||
g_restoreSurfaces = 1;
|
||||
ShowWindow(window, SW_MAXIMIZE);
|
||||
return 1;
|
||||
}
|
||||
g_restoreSurfaces = 1;
|
||||
ShowWindow(window, SW_MAXIMIZE);
|
||||
CWebBrowser* browser = g_windowMgr.FindBrowser(reinterpret_cast<HWND>(lParam));
|
||||
if (browser && browser->MatchesWindow(reinterpret_cast<HWND>(lParam))) {
|
||||
SetApplicationActive(1);
|
||||
} else {
|
||||
ShowWindow(window, SW_MINIMIZE);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
case WM_ERASEBKGND:
|
||||
|
|
@ -171,10 +171,11 @@ LRESULT CALLBACK sub_E5C430(HWND window, UINT message, WPARAM wParam, LPARAM lPa
|
|||
case WM_GETMINMAXINFO:
|
||||
if (hWnd) {
|
||||
MINMAXINFO* info = reinterpret_cast<MINMAXINFO*>(lParam);
|
||||
info->ptMinTrackSize.x = Rect.right - Rect.left;
|
||||
info->ptMaxTrackSize.x = Rect.right - Rect.left;
|
||||
info->ptMinTrackSize.y = Rect.bottom - Rect.top;
|
||||
info->ptMaxTrackSize.y = Rect.bottom - Rect.top;
|
||||
const RECT bounds = Rect;
|
||||
info->ptMinTrackSize.x = bounds.right - bounds.left;
|
||||
info->ptMaxTrackSize.x = bounds.right - bounds.left;
|
||||
info->ptMinTrackSize.y = bounds.bottom - bounds.top;
|
||||
info->ptMaxTrackSize.y = bounds.bottom - bounds.top;
|
||||
}
|
||||
return 0;
|
||||
case WM_NCACTIVATE:
|
||||
|
|
@ -263,7 +264,7 @@ LRESULT CALLBACK sub_E5C430(HWND window, UINT message, WPARAM wParam, LPARAM lPa
|
|||
case WM_RBUTTONUP:
|
||||
case WM_RBUTTONDBLCLK:
|
||||
case WM_MOUSEWHEEL:
|
||||
g_mouse.Message(g_mouse, hWnd, window, message, wParam, lParam);
|
||||
g_mouse.Message(window, message, wParam, lParam);
|
||||
break;
|
||||
case WM_ENTERMENULOOP:
|
||||
case WM_ENTERSIZEMOVE:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue