]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/listctrl.cpp
Added support more support for DB2
[wxWidgets.git] / src / msw / listctrl.cpp
index 6f8fe1c01a4906954280ca14ea0418bcce05add2..633cc77ce830a3ef1623e8882606210e718a8626 100644 (file)
@@ -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)