git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27719
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
- fixed wrong colour of tooltips under some themes
- implemented wxColourDialog as native dialog
+- wxTreeCtrl::GetCount() counts root as well now (compatible with MSW)
wxMotif:
HWND hwndEdit = TreeView_GetEditControl(GetHwnd());
if ( hwndEdit )
{
- if ( item == GetSelection() )
+ if ( item == m_idEdited )
{
::SetWindowText(hwndEdit, text);
}
m_textCtrl->SetHWND(0);
delete m_textCtrl;
m_textCtrl = NULL;
+
+ m_idEdited.Unset();
}
}
DeleteTextCtrl();
+ m_idEdited = item;
m_textCtrl = (wxTextCtrl *)textControlClass->CreateObject();
HWND hWnd = (HWND) TreeView_EditLabel(GetHwnd(), HITEM(item));