Remove some leftover code from the old About box

This allowed you click the top region of the About box to move the
window.
This commit is contained in:
toehead2001 2015-11-10 03:04:11 -07:00
parent fbd863e6fd
commit 8358211e9a
1 changed files with 0 additions and 25 deletions

View File

@ -1017,31 +1017,6 @@ DWORD CALLBACK AboutBoxProc(HWND hWnd, DWORD uMsg, DWORD wParam, DWORD lParam)
SetWindowText(GetDlgItem(hWnd, IDC_VERSION), VersionDisplay.c_str()); SetWindowText(GetDlgItem(hWnd, IDC_VERSION), VersionDisplay.c_str());
} }
break; 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: case WM_CTLCOLORSTATIC:
{ {
HDC hdcStatic = (HDC)wParam; HDC hdcStatic = (HDC)wParam;