]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/propgrid/tests.cpp
VC6 SDK doesn't define INVALID_FILE_ATTRIBUTES, do it ourselves
[wxWidgets.git] / samples / propgrid / tests.cpp
index eb22e52437fd54fbdcb29d5b68fc137dfa36fe5c..1c066ca0d9431561d16ba99af2e1a643fe02204c 100644 (file)
@@ -918,6 +918,23 @@ bool FormMain::RunTests( bool fullTest, bool interactive )
         pgman->EnsureVisible(wxT("Cell Colour"));
     }
 
+    {
+        RT_START_TEST(RemoveProperty)
+
+        wxPGProperty* p;
+
+        wxPGProperty* origParent =
+            pgman->GetProperty(wxT("Window Styles"))->GetParent();
+
+        p = pgman->RemoveProperty(wxT("Window Styles"));
+        pgman->Refresh();
+        pgman->Update();
+
+        pgman->AppendIn(origParent, p);
+        pgman->Refresh();
+        pgman->Update();
+    }
+
     {
         RT_START_TEST(SetPropertyBackgroundColour)
         wxCommandEvent evt;