From: Robin Dunn Date: Wed, 5 Jan 2000 04:51:14 +0000 (+0000) Subject: Fixed a bug so the toggle flag is set correctly X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/82dd98a702e7dd277c36a6d6c53879893dfc3250 Fixed a bug so the toggle flag is set correctly git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5249 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/tbar95.cpp b/src/msw/tbar95.cpp index 5f9153e7b8..6a84b47a6b 100644 --- a/src/msw/tbar95.cpp +++ b/src/msw/tbar95.cpp @@ -655,7 +655,7 @@ bool wxToolBar::MSWCommand(WXUINT cmd, WXWORD id) if ( tool->CanBeToggled() ) { LRESULT state = ::SendMessage(GetHwnd(), TB_GETSTATE, id, 0); - tool->SetToggle((state & TBSTATE_CHECKED) != 0); + tool->Toggle((state & TBSTATE_CHECKED) != 0); } bool toggled = tool->IsToggled();