]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/sysopt.h
Don't create multiple parent-less top level frames in layout sample.
[wxWidgets.git] / include / wx / sysopt.h
index 90d802215be6c030c868f3e4214cbca086ab2b7c..5dde52c6ddae77b7e11c7943a961ac853c909c37 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        sysopt.h
+// Name:        wx/sysopt.h
 // Purpose:     wxSystemOptions
 // Author:      Julian Smart
 // Modified by:
 // Enables an application to influence the wxWidgets implementation
 // ----------------------------------------------------------------------------
 
-class WXDLLIMPEXP_BASE wxSystemOptions : public wxObject
+class
+#if wxUSE_SYSTEM_OPTIONS
+WXDLLIMPEXP_BASE
+#endif
+wxSystemOptions : public wxObject
 {
 public:
     wxSystemOptions() { }
@@ -34,6 +38,11 @@ public:
     static wxString GetOption(const wxString& name);
     static int GetOptionInt(const wxString& name);
     static bool HasOption(const wxString& name);
+
+    static bool IsFalse(const wxString& name)
+    {
+        return HasOption(name) && GetOptionInt(name) == 0;
+    }
 };
 
 #if !wxUSE_SYSTEM_OPTIONS