不要な_WIN32_WINNTのチェックを削除
@@ -1826,8 +1826,6 @@ | ||
1826 | 1826 | */ |
1827 | 1827 | void GetDesktopRect(HWND hWnd, RECT *rect) |
1828 | 1828 | { |
1829 | -#if _WIN32_WINNT >= 0x0500 | |
1830 | - // Windows 2000 以上 | |
1831 | 1829 | if (HasMultiMonitorSupport()) { |
1832 | 1830 | // マルチモニタがサポートされている場合 |
1833 | 1831 | MONITORINFO monitorInfo; |
@@ -1835,9 +1833,7 @@ | ||
1835 | 1833 | monitorInfo.cbSize = sizeof(MONITORINFO); |
1836 | 1834 | GetMonitorInfo(hMonitor, &monitorInfo); |
1837 | 1835 | *rect = monitorInfo.rcWork; |
1838 | - } else | |
1839 | -#endif | |
1840 | - { | |
1836 | + } else { | |
1841 | 1837 | // マルチモニタがサポートされていない場合 |
1842 | 1838 | SystemParametersInfo(SPI_GETWORKAREA, 0, rect, 0); |
1843 | 1839 | } |