added wxSystemSettings::HasFrameDecorations (anybody knows a better name?)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11773 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2001-10-01 22:11:56 +00:00
parent 2343d81ba2
commit f8e3449ceb
7 changed files with 24 additions and 4 deletions

View File

@@ -35,6 +35,9 @@ public:
// 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

View File

@@ -35,6 +35,9 @@ public:
// 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

View File

@@ -127,6 +127,9 @@ public:
// 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

View File

@@ -36,6 +36,9 @@ public:
// 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

View File

@@ -33,6 +33,9 @@ public:
// 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

View File

@@ -24,6 +24,7 @@ public:
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

View File

@@ -26,9 +26,14 @@
#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"
@@ -71,9 +76,8 @@ bool wxTopLevelWindow::Create(wxWindow *parent,
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 )
{