From f1be272d3294e942864748ecc5eb332354239b6f Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 4 May 2014 22:13:22 +0000 Subject: [PATCH] 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 --- src/msw/checkbox.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/msw/checkbox.cpp b/src/msw/checkbox.cpp index dc0aa10361..1029c74da0 100644 --- a/src/msw/checkbox.cpp +++ b/src/msw/checkbox.cpp @@ -396,6 +396,9 @@ bool wxCheckBox::MSWOnDraw(WXDRAWITEMSTRUCT *item) break; } + if ( m_isPressed ) + flags |= wxCONTROL_PRESSED; + if ( wxFindWindowAtPoint(wxGetMousePosition()) == this ) flags |= wxCONTROL_CURRENT;