]> git.saurik.com Git - wxWidgets.git/commitdiff
call SetCanFocus(false) to prevent the control window itself from getting focus,...
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 11 Jul 2007 23:16:26 +0000 (23:16 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 11 Jul 2007 23:16:26 +0000 (23:16 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47347 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/listctrl.cpp

index c0fe60314fb797d12c42396968c8909407eae4f1..67562c04aa3c3c3458f30ae4c3c9e11520db88f2 100644 (file)
@@ -5000,6 +5000,9 @@ bool wxGenericListCtrl::Create(wxWindow *parent,
     if ( !wxControl::Create( parent, id, pos, size, style, validator, name ) )
         return false;
 
+    // this window itself shouldn't get the focus, only m_mainWin should
+    SetCanFocus(false);
+
     // don't create the inner window with the border
     style &= ~wxBORDER_MASK;