Hi,
I am creating a MDI application for macOS. IMMO, for an MDI application, the parent window does nothing but hold there to prevent application from exit. However, this invisible parent window will show up in the right-click menu of the application on dock.
Please see the attachment. It is from the sample docview. The "unnamed1" is the newly created empty document, and the "wxWIdgets DocView Sample" is the MDI parent window.
Is there a way I can prevent the MDI parent from being displayed in the right-click menu?
Thanks!
macOS: Hide MDI Parent Window in Dock Right-Click Menu
macOS: Hide MDI Parent Window in Dock Right-Click Menu
- Attachments
-
- Screen Shot 2018-05-28 at 10.48.11 PM.png (61.1 KiB) Viewed 856 times
Re: macOS: Hide MDI Parent Window in Dock Right-Click Menu
not sure, but on mac you can safly close main window if you overide
at least I can
Code: Select all
#ifndef __WXOSX__
EVT_CLOSE(MyFrame::OnCloseWindow)
#endif