]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/settings.cpp
docopydocs is not needed for this script.
[wxWidgets.git] / src / msw / settings.cpp
index 76d77a96bfceb083f2d395fa53bd494136ecbdb9..97c7d9f9ebfe0eb63110d68cccf40f750ecc4f78 100644 (file)
@@ -40,9 +40,8 @@
 #include "wx/module.h"
 #include "wx/fontutil.h"
 
-#ifdef __WXWINCE__ // for SM_CXCURSOR and SM_CYCURSOR
-#include "wx/msw/wince/missing.h"
-#endif // __WXWINCE__
+// for SM_CXCURSOR, SM_CYCURSOR, SM_TABLETPC
+#include "wx/msw/missing.h"
 
 // ----------------------------------------------------------------------------
 // private classes
@@ -310,8 +309,12 @@ static const int gs_metricsMap[] =
 
     SM_CXBORDER,
     SM_CYBORDER,
-    SM_CXCURSOR,
+#ifdef SM_CXCURSOR
+       SM_CXCURSOR,
     SM_CYCURSOR,
+#else
+       -1, -1,
+#endif
     SM_CXDOUBLECLK,
     SM_CYDOUBLECLK,
 #if defined(__WIN32__) && defined(SM_CXDRAG)
@@ -419,6 +422,9 @@ bool wxSystemSettingsNative::HasFeature(wxSystemFeature index)
         case wxSYS_CAN_DRAW_FRAME_DECORATIONS:
             return true;
 
+        case wxSYS_TABLET_PRESENT:
+            return ::GetSystemMetrics(SM_TABLETPC) != 0;
+
         default:
             wxFAIL_MSG( _T("unknown system feature") );