Page 1 of 1

macOS: Hide MDI Parent Window in Dock Right-Click Menu

Posted: Mon May 28, 2018 1:53 pm
by TextEdit
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!

Re: macOS: Hide MDI Parent Window in Dock Right-Click Menu

Posted: Wed Jun 13, 2018 9:12 pm
by cutecode
not sure, but on mac you can safly close main window if you overide

Code: Select all

#ifndef __WXOSX__
	EVT_CLOSE(MyFrame::OnCloseWindow)
#endif
at least I can