X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/04ef50df3a0fa3c343800c554e609f98fc7575cc..8f974c520a8733158591891458fda10fae4c3950:/src/msw/utils.cpp diff --git a/src/msw/utils.cpp b/src/msw/utils.cpp index b117cb09c1..f9db6a472b 100644 --- a/src/msw/utils.cpp +++ b/src/msw/utils.cpp @@ -1233,8 +1233,12 @@ int wxDisplayDepth() void wxDisplaySize(int *width, int *height) { #ifdef __WXMICROWIN__ - // MICROWIN_TODO - *width = 0; * height = 0; + RECT rect; + HWND hWnd = GetDesktopWindow(); + ::GetWindowRect(hWnd, & rect); + + *width = rect.right - rect.left; + *height = rect.bottom - rect.top; #else ScreenHDC dc;