From 6ac902639c8d424a0d3b1c1b43a284eb26e7b0ea Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 11 Jul 2007 23:16:26 +0000 Subject: [PATCH] call SetCanFocus(false) to prevent the control window itself from getting focus, only m_mainWin should have it git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47347 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/listctrl.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index c0fe60314f..67562c04aa 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -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; -- 2.45.2