the control does not have focus, so I changed EditLabel to always set focus to *this
before calling LV_EditLabel). This fixes wxEditableListBox.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10112
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
{
wxASSERT( (textControlClass->IsKindOf(CLASSINFO(wxTextCtrl))) );
{
wxASSERT( (textControlClass->IsKindOf(CLASSINFO(wxTextCtrl))) );
+ // VS: ListView_EditLabel requires that the list has focus.
+ SetFocus();
HWND hWnd = (HWND) ListView_EditLabel(GetHwnd(), item);
if (m_textCtrl)
HWND hWnd = (HWND) ListView_EditLabel(GetHwnd(), item);
if (m_textCtrl)