// Get a system metric, e.g. scrollbar size
static int GetSystemMetric(int index);
+
+ // Return true if the port can draw frame titlebar (i.e. doesn't need wxUniv for it)
+ static bool HasFrameDecorations() { return TRUE; }
};
#endif
// Get a system metric, e.g. scrollbar size
static int GetSystemMetric(int index);
+
+ // Return true if the port can draw frame titlebar (i.e. doesn't need wxUniv for it)
+ static bool HasFrameDecorations() { return TRUE; }
};
#endif
// Get a system metric, e.g. scrollbar size
static int GetSystemMetric(int index);
+
+ // Return true if the port can draw frame titlebar (i.e. doesn't need wxUniv for it)
+ static bool HasFrameDecorations() { return TRUE; }
};
#endif
// Get a system metric, e.g. scrollbar size
static int GetSystemMetric(int index);
+
+ // Return true if the port can draw frame titlebar (i.e. doesn't need wxUniv for it)
+ static bool HasFrameDecorations() { return TRUE; }
};
#endif
// Get a system metric, e.g. scrollbar size
static int GetSystemMetric(int index);
+ // Return true if the port can draw frame titlebar (i.e. doesn't need wxUniv for it)
+ static bool HasFrameDecorations() { return TRUE; }
+
};
#endif
static wxColour GetSystemColour(int index);
static wxFont GetSystemFont(int index);
static int GetSystemMetric(int index);
+ static bool HasFrameDecorations() { return TRUE; }
}; // end of CLASS wxSystemSettings
#endif
#endif
#include "wx/defs.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/dcclient.h"
+ #include "wx/settings.h"
+#endif
+
#include "wx/toplevel.h"
#include "wx/univ/renderer.h"
-#include "wx/dcclient.h"
#include "wx/bitmap.h"
#include "wx/image.h"
#include "wx/cshelp.h"
exstyleOrig = 0;
if ( ms_drawDecorations == -1 )
- ms_drawDecorations = TRUE;
- // FIXME_MGL -- this is temporary; we assume for now that native TLW
- // can't do decorations, which is not true
+ ms_drawDecorations = !wxSystemSettings::HasFrameDecorations();
+ // FIXME -- wxUniv should provide a way to force non-native decorations!
if ( ms_drawDecorations )
{