]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/settings.cpp
compilation fix for VC6 with standard (i.e. not updated) SDK (patch 1828610)
[wxWidgets.git] / src / msw / settings.cpp
index 85f5a95a4797d284e74e6668bbaa90ccfe26ab02..7601841a0cdb201b8eea523e44177c664f87c9a1 100644 (file)
@@ -380,8 +380,9 @@ static const int gs_metricsMap[] =
 #ifdef SM_SWAPBUTTON
     SM_SWAPBUTTON,
 #else
-    -1
+    -1,
 #endif
+    -1   // wxSYS_DCLICK_MSEC - not available as system metric
 };
 
 // Get a system metric, e.g. scrollbar size
@@ -394,6 +395,12 @@ int wxSystemSettingsNative::GetMetric(wxSystemMetric index, wxWindow* WXUNUSED(w
     wxCHECK_MSG( index > 0 && (size_t)index < WXSIZEOF(gs_metricsMap), 0,
                  _T("invalid metric") );
 
+    if ( index == wxSYS_DCLICK_MSEC )
+    {
+        // This one is not a Win32 system metric
+        return ::GetDoubleClickTime();
+    }
+
     int indexMSW = gs_metricsMap[index];
     if ( indexMSW == -1 )
     {