mdi: Fix vanishing system menu in IDA MDI
Andrew de Quincey
adq_dvb at lidskialf.net
Tue Dec 2 22:28:15 CST 2003
IDA uses MDI, so when the mini-windows are maximised, the menubar of the main
window should contain the windows system menu for the mini-windows.
In IDA however, the icon for this menu appears briefly before vanishing. This
occurs whenever you change mini-window.
The reason is:
User changes to a different mini-window.
IDA allows this to occur, and the normal MDI processing occurs.
The MDI_AugmentFrameMenu function is called as normal as a result. This makes
the system icon appear.
IDA now removes everything on its MDI menus (it has different menus for each
mini-window). This takes the system menu with it.
It then sets the menus back up again using WM_MDISETMENU. As the main menubar
HWND has not changed, the system menu is not added again by WINE, so it
doesn't re-appear.
This patch just moves some pre-existing code out of an if() so that it runs
every time MDI_MdiSetMenu is called. It checks if a system menu already
exists, and if not, adds one.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wine-mdi-reaugment.patch
Type: text/x-diff
Size: 2012 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20031203/63c1778a/wine-mdi-reaugment.bin
More information about the wine-patches
mailing list