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
This commit is contained in:
Vadim Zeitlin
2005-05-20 12:34:47 +00:00
parent 35cb486ae0
commit b3433ee72c

View File

@@ -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)