wxMenu::Insert() seems to work, bug in wxMenuBase::Insert() is corrected
(inserting an item at pos == GetCount() should be the same as appending and not an error) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4818 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
		| @@ -460,6 +460,8 @@ void MyFrame::OnCheckMenuItem(wxCommandEvent& WXUNUSED(event)) | ||||
|  | ||||
| void MyFrame::OnUpdateCheckMenuItemUI(wxUpdateUIEvent& event) | ||||
| { | ||||
|     wxLogNull nolog; | ||||
|  | ||||
|     wxMenuItem *item = GetLastMenuItem(); | ||||
|  | ||||
|     event.Enable(item && item->IsCheckable()); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user