Fix pressed owner-drawn checkbox appearance in wxMSW.

Handle the "pressed" state correctly in wxCheckBox::MSWOnDraw().

See #10137.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76458 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2014-05-04 22:13:22 +00:00
parent 81b931f8d1
commit f1be272d32

View File

@ -396,6 +396,9 @@ bool wxCheckBox::MSWOnDraw(WXDRAWITEMSTRUCT *item)
break;
}
if ( m_isPressed )
flags |= wxCONTROL_PRESSED;
if ( wxFindWindowAtPoint(wxGetMousePosition()) == this )
flags |= wxCONTROL_CURRENT;