git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@582
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
bool RegTreeCtrl::TreeNode::OnExpand()
{
// remove dummy item
bool RegTreeCtrl::TreeNode::OnExpand()
{
// remove dummy item
m_pTree->DeleteItem(m_lDummy);
m_pTree->DeleteItem(m_lDummy);
+ m_lDummy = 0;
+ }
+ else {
+ // we've been already expanded
+ return TRUE;
+ }
if ( IsRoot() ) {
// we're the root key
if ( IsRoot() ) {
// we're the root key
}
if ( !m_pKey->Open() ) {
}
if ( !m_pKey->Open() ) {
wxLogError("The key '%s' can't be opened.", FullName());
return false;
}
wxLogError("The key '%s' can't be opened.", FullName());
return false;
}