]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/regtest/regtest.cpp
generate trace messages with dialup mask so that they're not shown by default
[wxWidgets.git] / samples / regtest / regtest.cpp
index 9e4c080e48307a7a5d451b0f9009e8d9ea10a60e..d9fdca92ef0fdaaac1ecf5c97c81285e46f4b1f8 100644 (file)
@@ -104,7 +104,7 @@ private:
   // structure describing a registry key/value
   class TreeNode : public wxTreeItemData
   {
-  WX_DEFINE_ARRAY(TreeNode *, TreeChildren);
+  WX_DEFINE_ARRAY_NO_PTR(TreeNode *, TreeChildren);
   public:
       RegTreeCtrl  *m_pTree;     // must be !NULL
       TreeNode     *m_pParent;    // NULL only for the root node
@@ -1071,7 +1071,7 @@ void RegTreeCtrl::GoTo(const wxString& location)
 void RegTreeCtrl::DeleteSelected()
 {
   long lCurrent = GetSelection(),
-       lParent  = GetParent(lCurrent);
+       lParent  = GetItemParent(lCurrent);
 
   if ( lParent == 0 ) {
     wxLogError(wxT("Can't delete root key."));