Questions tagged [systemmenu]

In Microsoft Windows, the system menu is a popup menu that contains common window operations such as "Minimize" and "Close".

In Microsoft Windows, the system menu is a popup menu that contains common window operations such as "Minimize" and "Close". It can be opened by clicking on the icon in the upper-left corner, by pressing alt+space, or by right-clicking on the title bar.

An application can modify this menu (e.g. add a custom entry) with GetSystemMenu and related WinAPI functions.

30 questions
1
vote
4 answers

WM_SYSCOMMAND oddities

An application recieves the WM_SYSCOMMAND message when the user selects a menu item command on the system menu, and so wParam can be SC_CLOSE, SC_CONTEXTHELP, SC_MAXIMIZE, SC_MINIMIZE, SC_RESTORE etc. That's logical. (Of course you can also send…
Andreas Rejbrand
  • 105,602
  • 8
  • 282
  • 384
1
vote
1 answer

WPF: Examples of using a Style on a Window

I have created a borderless window style wherein I draw the chrome (Borders, TitleBar, Min, Max, Close, SystemMenu, etc) and I would like to check it against an existing example. Specifically for the SystemMenu but also in case I missed something. …
Brad
  • 1,187
  • 3
  • 23
  • 44
1
vote
0 answers

Is it possible to disable the Alt-Space key combination in a Java application

The Alt-space key combination in Windows brings up the "Window Menu" -i.e., the menu you get when right-clicking the title bar. It has items "Restore", "Maximize", "Minimize", "Close", etc. I'd like to disable it. Is there any way to do so in a…
Steve Cohen
  • 4,679
  • 9
  • 51
  • 89
1
vote
1 answer

GetMenuItemInfo does not retrieve the menu item information

I have this mii variable which allocates a MenuItemInfo structure to set (or get) items of the system menu. Private mii As New…
ElektroStudios
  • 19,105
  • 33
  • 200
  • 417
0
votes
0 answers

Borderless form cannot be minimize by clicking on the taskbar application icon

I have a Delphi VCL application with the following settings: BorderIcons = [] BorderStyle = bsNone I have then already implemented various functions such as minimizing, closing, etc. via buttons. Now I've noticed that when I minimize my application…
Athris
  • 57
  • 6
0
votes
1 answer

How to display system menu on CDialog popup?

I have a CDialog based application. In the Visual Studio resource editor the properties for my dialog show the style is set to "Popup" and the System Menu value is "True". However when I run my application there is no system menu; how can I get a…
User
  • 62,498
  • 72
  • 186
  • 247
0
votes
1 answer

Get system menu width in pixels using winapi

I need to obtain the total width in pixels of the window/system menu (minimize, maximize and close) in C using basic WINAPI. I came across the WM_GETTITLEBARINFOEX message which is good for me, but unfortunately it is supported starting with Vista…
alp
  • 3
  • 2
0
votes
0 answers

How can I edit the system menu in the Tkinter window Python?

I want to edit the system menu in the Tkinter window to show custom options. When I say system menu, I mean this, the menu that can be opened by right-clicking the title bar of a window, not this, the dropdown menu in a window. I want to be able to…
user17763721
0
votes
1 answer

How to customize the system menu of a Windows Form?

I want to add the "About" menu to context menu of title bar in my application. I made many searches over internet and found this great topic How can I customize the system menu of a Windows Form? but there is no solution for visual C++. I tried to…
Simon
  • 123
  • 3
0
votes
0 answers

How can I close the system menu of a Windows Form?

I want to know Is the system menu (in the top-left corner of form) open? and if yes Close it. How can I do it in .NET?
sde.mahdi
  • 41
  • 5
0
votes
0 answers

Styling the SystemMenu

We have fully styled WPF Menus and ContextMenus in our Product. They are all implicit styles. But, what I found was that the System Menu (Alt + Space) displays a Menu that is not according to our Styles but instead displays the Windows Default…
Harsha
  • 103
  • 1
  • 2
  • 13
0
votes
1 answer

How do i get menu events from a menu item in the system menu of a console window?

I have added a menu item to the SystemMenu of the console window of my application which i created using the AllocConsole() function. but I could not figure out how to process the events for the menu items I've added. How can i process those menu…
Ranjith
  • 796
  • 8
  • 27
0
votes
1 answer

WinAPI Copy System Menu to new Window

I am docking another application's window inside of my WPF window using HwndHost. To do this, I have to set the WS_CHILD style attribute of the window I am docking and I lose the system menu of that window which is not acceptable. Using HwndHost…
0
votes
1 answer

How do you correctly add an 'About' button to the System Menu?

I am trying to add an 'About' button to the System menu of my app, but the code that I found is throwing an error - Unable to find an entry point named 'AppendMenu' in DLL 'user32'. I wonder if someone could please take a look at the code and…
David Gard
  • 11,225
  • 36
  • 115
  • 227
0
votes
2 answers

Size option disable from the system menu in c# application

I have a c# windows base application.Now I want that the in the system menu the size option should be disable. To add the option in system menu I am using user32.dll. I am using windows form.
jiten
  • 5,128
  • 4
  • 44
  • 73
1
2