Checkable items in wxToolMenuBarTool supported.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37003 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2006-01-19 22:03:03 +00:00
parent b156929dd0
commit c616c2e834
2 changed files with 11 additions and 1 deletions

View 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:

View 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);