X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fa88bebec1b984ff49e2b22ad91999d1e514d75e..e64dd5d6524e2284f585c97514421e029a320393:/src/msw/display.cpp?ds=inline diff --git a/src/msw/display.cpp b/src/msw/display.cpp index 74b0e7bbd5..d970102c71 100644 --- a/src/msw/display.cpp +++ b/src/msw/display.cpp @@ -621,3 +621,21 @@ int wxDisplayFactoryMSW::GetFromWindow(const wxWindow *window) } #endif // wxUSE_DISPLAY + +void wxClientDisplayRect(int *x, int *y, int *width, int *height) +{ +#if defined(__WXMICROWIN__) + *x = 0; *y = 0; + wxDisplaySize(width, height); +#else + // Determine the desktop dimensions minus the taskbar and any other + // special decorations... + RECT r; + + SystemParametersInfo(SPI_GETWORKAREA, 0, &r, 0); + if (x) *x = r.left; + if (y) *y = r.top; + if (width) *width = r.right - r.left; + if (height) *height = r.bottom - r.top; +#endif +}