]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/settings.cpp
Removed code duplication introduced during wxUniv merge in 1.132
[wxWidgets.git] / src / msw / settings.cpp
index 9ba29bc069f33617f7b15b8df470adc93422525b..13dbf8e2d26e1dd817c2815a2557c953704929f5 100644 (file)
 #include "wx/module.h"
 #include "wx/fontutil.h"
 
+#ifdef __WXWINCE__ // for SM_CXCURSOR and SM_CYCURSOR
+#include "wx/msw/wince/missing.h"
+#endif // __WXWINCE__
+
 // ----------------------------------------------------------------------------
 // private classes
 // ----------------------------------------------------------------------------
@@ -250,6 +254,16 @@ wxFont wxCreateFontFromStockObject(int index)
 
 wxFont wxSystemSettingsNative::GetFont(wxSystemFont index)
 {
+#ifndef __WXWINCE__
+    // this one is special: we don't get it from GetStockObject()
+    if ( index == wxSYS_ICONTITLE_FONT )
+    {
+        LOGFONT lf;
+        SystemParametersInfo(SPI_GETICONTITLELOGFONT, sizeof(lf), &lf, 0);
+        return wxCreateFontFromLogFont(&lf);
+    }
+#endif // __WXWINCE__
+
     // wxWindow ctor calls GetSystemFont(wxSYS_DEFAULT_GUI_FONT) so we're
     // called fairly often - this is why we cache this particular font
     bool isDefaultRequested = index == wxSYS_DEFAULT_GUI_FONT;