TreeBox::Node::Node( TreeBox& parentTree, int index ) : UIObject( (*API->TreeBox->CreateTreeBoxNode)( ModuleHandle(), this ) ) { if ( IsNull() ) throw APIFunctionError( "CreateTreeBoxNode" ); if ( !parentTree.IsNull() ) parentTree.Insert( index, this ); }