]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/utils.cpp
added wxListView class: this is going to be a wxListCtrl with human (inter)face
[wxWidgets.git] / src / msw / utils.cpp
index b117cb09c1f3e0a2ba62a8807b0430b8bc09d74d..f9db6a472b51f1a2914aa9e8784bf4208478bc68 100644 (file)
@@ -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;