// 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
void RegTreeCtrl::DeleteSelected()
{
long lCurrent = GetSelection(),
- lParent = GetParent(lCurrent);
+ lParent = GetItemParent(lCurrent);
if ( lParent == 0 ) {
wxLogError(wxT("Can't delete root key."));