fixed wxListCtrl::EditLabel for MSW (ListView_EditLabel fails if
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
This commit is contained in:
@@ -1049,6 +1049,8 @@ wxTextCtrl* wxListCtrl::EditLabel(long item, wxClassInfo* textControlClass)
|
||||
{
|
||||
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)
|
||||
|
Reference in New Issue
Block a user