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:
parent
81b931f8d1
commit
f1be272d32
@ -396,6 +396,9 @@ bool wxCheckBox::MSWOnDraw(WXDRAWITEMSTRUCT *item)
|
||||
break;
|
||||
}
|
||||
|
||||
if ( m_isPressed )
|
||||
flags |= wxCONTROL_PRESSED;
|
||||
|
||||
if ( wxFindWindowAtPoint(wxGetMousePosition()) == this )
|
||||
flags |= wxCONTROL_CURRENT;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user