]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed a bug so the toggle flag is set correctly
authorRobin Dunn <robin@alldunn.com>
Wed, 5 Jan 2000 04:51:14 +0000 (04:51 +0000)
committerRobin Dunn <robin@alldunn.com>
Wed, 5 Jan 2000 04:51:14 +0000 (04:51 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5249 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/tbar95.cpp

index 5f9153e7b82ce9832f3dd00e9be7cc49f6723941..6a84b47a6b48a8bd0906a175435a195bf681d3f7 100644 (file)
@@ -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();