Ticket #59 (closed defect)

Opened 8 years ago

Last modified 8 years ago

Menubar of Maximized Childwindow in MDI

Reported by: walky_one Owned by: vadz
Priority: normal Milestone:
Component: wxMSW Version:
Keywords: Cc: walky_one, vadz
Blocked By: Patch: no
Blocking:

Description

at destruction of the Menu (wxWindows::MSWDetachWindowMenu) the Controls of the Childwindow do also count as MenuItems, so the first attempt of GetMenuString() results in an error because it's trying to get the string of the child window icon.

Beside this, it's quite ugly code if u ask me: The last item that get's deleted is the "&Window"-item. What if I want to have a "Help" item to its right?

No need to do this immediatly, works well without a Memory leak.... still it's not the most beautiful part of wxWindows....

Change History

Changed 8 years ago by vadz

sorry, I don't understand what exactly is wrong, please describe what the problem is and how to reproduce it (ideally by making a patch to the mdi sample showing it) and then reopen the bug. thanks.

Note: See TracTickets for help on using tickets.