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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user