add last backwards-compatible version

This commit is contained in:
2021-12-14 00:33:46 -07:00
parent 68b10d413b
commit b0dd3f07f3
335 changed files with 4746 additions and 19627 deletions

View File

@@ -3,13 +3,13 @@
#ifdef FOOBAR2000_DESKTOP_WINDOWS
#include "dialog_resize_helper.h"
static BOOL GetChildWindowRect(HWND wnd, UINT id, RECT* child)
BOOL GetChildWindowRect(HWND wnd,UINT id,RECT* child)
{
RECT temp;
HWND wndChild = GetDlgItem(wnd, id);
if (wndChild == NULL) return FALSE;
if (!GetWindowRect(wndChild, &temp)) return FALSE;
if (!MapWindowPoints(0, wnd, (POINT*)&temp, 2)) return FALSE;
if (!GetWindowRect(wndChild,&temp)) return FALSE;
if (!MapWindowPoints(0,wnd,(POINT*)&temp,2)) return FALSE;
*child = temp;
return TRUE;
}