Hi guys,
I'm using a wxframe to create a windows application, is there anyone know how to disable the window system menu? I have tried to remove the system menu flag from window style setting, but when pressing "alt+space", the system menu is still popped up.
[img]system%20menu.png[/img]
How to disable system menu for windows application
How to disable system menu for windows application
- Attachments
-
- system menu.png (40.72 KiB) Viewed 1921 times
Re: How to disable system menu for windows application
There is no wxWidgets way for that.
I found this article that describes how to add items to the system menu:
http://www.codeguru.com/csharp/csharp/c ... sing-C.htm
Maybe you can use DeleteMenu to also remove entries from the menu:
https://msdn.microsoft.com/en-us/librar ... 85%28.aspx
Untested, give it a try.
I found this article that describes how to add items to the system menu:
http://www.codeguru.com/csharp/csharp/c ... sing-C.htm
Maybe you can use DeleteMenu to also remove entries from the menu:
https://msdn.microsoft.com/en-us/librar ... 85%28.aspx
Untested, give it a try.
Use the source, Luke!
-
- Filthy Rich wx Solver
- Posts: 235
- Joined: Fri Sep 14, 2012 8:26 am
- Location: Kontich, Belgium
- Contact:
Re: How to disable system menu for windows application
Remove the wxSYSTEM_MENU flag from the style option of your application's frame while creating or from the resource file if you're using XRC files.
regards,
Nunki
regards,
Nunki
Re: How to disable system menu for windows application
I had tried this, but it's still popped up.Nunki wrote:Remove the wxSYSTEM_MENU flag from the style option of your application's frame while creating or from the resource file if you're using XRC files.
regards,
Nunki
Re: How to disable system menu for windows application
Hi,
You probably need to get rid of the title bar or try to catch "ALT+F4" in the wxEVT_CHAR_HOOK.
Thank you.
You probably need to get rid of the title bar or try to catch "ALT+F4" in the wxEVT_CHAR_HOOK.
Thank you.