From 8358211e9ab996a62bb8caabb0c52d702dd7c0be Mon Sep 17 00:00:00 2001 From: toehead2001 Date: Tue, 10 Nov 2015 03:04:11 -0700 Subject: [PATCH] Remove some leftover code from the old About box This allowed you click the top region of the About box to move the window. --- Source/Project64/User Interface/Gui Class.cpp | 25 ------------------- 1 file changed, 25 deletions(-) diff --git a/Source/Project64/User Interface/Gui Class.cpp b/Source/Project64/User Interface/Gui Class.cpp index 57661ec1b..f1ba42901 100644 --- a/Source/Project64/User Interface/Gui Class.cpp +++ b/Source/Project64/User Interface/Gui Class.cpp @@ -1017,31 +1017,6 @@ DWORD CALLBACK AboutBoxProc(HWND hWnd, DWORD uMsg, DWORD wParam, DWORD lParam) SetWindowText(GetDlgItem(hWnd, IDC_VERSION), VersionDisplay.c_str()); } break; - case WM_NCHITTEST: - { - int xPos = LOWORD(lParam); - int yPos = HIWORD(lParam); - RECT client, a; - GetClientRect(hWnd, &a); - GetClientRect(hWnd, &client); - ClientToScreen(hWnd, (LPPOINT)&client); - client.right += client.left; - client.bottom += client.top; - - int nCaption = GetSystemMetrics(SM_CYCAPTION) * 4; - - LRESULT lResult = HTCLIENT; - - //check caption - if (xPos <= client.right && xPos >= client.left && - (yPos >= client.top + 0) && (yPos <= client.top + 0 + nCaption)) - { - lResult = HTCAPTION; - } - SetWindowLong(hWnd, DWLP_MSGRESULT, lResult); - return TRUE; - } - break; case WM_CTLCOLORSTATIC: { HDC hdcStatic = (HDC)wParam;