]> git.saurik.com Git - wxWidgets.git/commitdiff
Checkable items in wxToolMenuBarTool supported.
authorWłodzimierz Skiba <abx@abx.art.pl>
Thu, 19 Jan 2006 22:03:03 +0000 (22:03 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Thu, 19 Jan 2006 22:03:03 +0000 (22:03 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37003 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/changes.txt
src/msw/wince/tbarwce.cpp

index 3eb8bb1ed28ced96fd332a18ff39205bbb893188..9242504877fc07173fd27061a67f3ce32f1b4c60 100644 (file)
@@ -127,8 +127,9 @@ wxWinCE:
 - ::wxGetUserName() implemented.
 - wxDisplay enumeration support.
 - Fixed wxFileDialog breakage on WinCE due to incorrect structure size.
-- new wxSystemOption "wince.dialog.real-ok-cancel" to switch between WinCE
+- New wxSystemOption "wince.dialog.real-ok-cancel" to switch between WinCE
   guidelines with Ok-only dialogs and dialogs using wxButtons.
+- Checkable items in wxToolMenuBarTool supported.
 
 Unix:
 
index 4d5f0e3f494e35651057d417141ee046b2033fc9..cc3aa112d2a565438a39ad1f047176f251a7888f 100644 (file)
@@ -491,6 +491,15 @@ bool wxToolMenuBar::MSWCommand(WXUINT WXUNUSED(cmd), WXWORD id)
     wxToolBarToolBase *tool = FindById((int)id);
     if ( !tool )
     {
+        if (m_menuBar)
+        {
+            wxMenuItem *item = m_menuBar->FindItem(id);
+            if (item && item->IsCheckable())
+            {
+                item->Toggle();
+            }
+        }
+
         wxCommandEvent event(wxEVT_COMMAND_MENU_SELECTED);
         event.SetEventObject(this);
         event.SetId(id);