X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/04ef50df3a0fa3c343800c554e609f98fc7575cc..f35719ef1d3b34fb42ebfab33944ea9cdc4413eb:/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;