From b3433ee72c6c1d31b26c3e10265da811165c3a54 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 20 May 2005 12:34:47 +0000 Subject: [PATCH] native checkbox didn't have correct state after switching from owner drawn to normal mode git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34196 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/checkbox.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/msw/checkbox.cpp b/src/msw/checkbox.cpp index 1734a9b214..da41a256e0 100644 --- a/src/msw/checkbox.cpp +++ b/src/msw/checkbox.cpp @@ -374,6 +374,12 @@ void wxCheckBox::MakeOwnerDrawn(bool ownerDrawn) } ::SetWindowLong(GetHwnd(), GWL_STYLE, style); + + if ( !ownerDrawn ) + { + // ensure that controls state is consistent with internal state + DoSet3StateValue(m_state); + } } void wxCheckBox::OnMouseEnterOrLeave(wxMouseEvent& event) -- 2.45.2