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
51
votes
5 answers

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

I want to add the age old About menu item to my application. I want to add it to the 'system menu' of the application (the one which pops up when we click the application icon in the top-left corner). So, how can I do it in .NET?
rsjethani
  • 2,179
  • 6
  • 24
  • 30
8
votes
2 answers

How to Disable the Move System Menu Item?

In Microsoft Windows, this works: mnu := GetSystemMenu(h, false); EnableMenuItem(mnu, SC_CLOSE, MF_BYCOMMAND or MF_GRAYED); But this does not work: mnu := GetSystemMenu(h, false); EnableMenuItem(mnu, SC_MOVE, MF_BYCOMMAND or MF_GRAYED); Hence…
Andreas Rejbrand
  • 105,602
  • 8
  • 282
  • 384
6
votes
1 answer

WPF: Add an "Always On Top" menu item to the system menu

I have a monitoring tool where some, but not all, users want it to be displayed always on top. I would like to add this option to the system menu in the upper-left corner. How would I do that?
Jonathan Allen
  • 68,373
  • 70
  • 259
  • 447
5
votes
1 answer

WPF: How do I disable the SystemMenu shortcut 'Alt+Space'?

I have a borderless window and created the chrome but I need to disable the 'Alt+Space' shortcut. Any thoughts?
Brad
  • 1,187
  • 3
  • 23
  • 44
5
votes
3 answers

Adding an entry to the System Menu (Left-Upper-Corner Icon Menu) in WinForms?

I have a WinForms app, and I would like to add a menu entry to the menu that opens when the user clicks on the upper left corner of a window (the Icon) or presses ALT+SPACE. Form only shows me a MainMenu and a ContextMenu, but no SystemMenu or…
Michael Stum
  • 177,530
  • 117
  • 400
  • 535
4
votes
1 answer

System Menu for Layered Windows?

We're having an issue with layered windows and system menus in Delphi 2009. That is, our layered windows (which have no border) have no system menu. When I say system menu, I am referring to the menu you get when clicking an application's icon,…
John Chadwick
  • 3,193
  • 19
  • 19
4
votes
0 answers

How to implement JavaFX MacOS app with system menu bar and handle desktop events.

I'm struggling to implement the application menu bar correctly in a JavaFX application that runs on MacOS. As of JDK9, is seems that the supported way to set up the application menu correctly on a Mac is to: 1) package the app with javapackager…
4
votes
0 answers

how to capture system-menu event in console application in windows?

It's easy to get system menu on console application (GetSystemMenu) and add some own entries (AppendMenu). But then these menu items are useless for the app. Is there any way to get into message stream that would identify what menu item was clicked…
rsk82
  • 28,217
  • 50
  • 150
  • 240
2
votes
1 answer

Remove Move and Close commands from Windows' system menu without losing functionality

I want to remove the Move and Close commands from the system menu in a Windows dialog-based application without losing the functionality of those commands or removing the system menu. (I'm using MFC, but open to a pure c++ solution.) The following…
Steve A
  • 1,798
  • 4
  • 16
  • 34
2
votes
1 answer

Handle clicks to custom buttons in the System Menu

I've managed to create a Class that allows me to add an 'About...' button to the System Menu of any form. This part works fine, with the button being added by the load event of the form, but how do I handle clicks of that button? Thanks. Here is how…
David Gard
  • 11,225
  • 36
  • 115
  • 227
2
votes
1 answer

Recursive message loop

I am having trouble correctly running a message loop from within a message handler. In effect replicating how DialogBox() processes messages, minus all of the windowing. Simply invoking GetMessage() from within a message handler nearly works except…
doynax
  • 4,285
  • 3
  • 23
  • 19
1
vote
0 answers

How to make Windows 11 menu bar active item visible

In Windows 11, Visual FoxPro 9 and applications created by it active system menu item background is almost invisible. It is difficult to distinquish active menu bar from others. To reproduce: Run Foxpro 9 in Windows 11 Press Alt key Press right…
Andrus
  • 26,339
  • 60
  • 204
  • 378
1
vote
1 answer

How to disable the right click context menu on the title bar of a Windows Form using PowerShell

Is it possible to disable the right-click context menu on the TitleBar, WITHOUT removing the title bar and/or the icon? If yes, how? I am using PowerShell. I found these two posts, but they are in C# specifically. I don't have enough experience…
howdoicode
  • 779
  • 8
  • 16
1
vote
3 answers

System Menu: How to hide/move standard menuitems

In the system menu (topleft of titlebar), I can add my own menu items. I can also delete e.g.DeleteMenu(SysMenu, SC_MINIMIZE, MF_BYCOMMAND) ; However if I delete the standard ones [restore,minimize,maximize,size,close] their functionality is lost…
Henry Crun
  • 235
  • 1
  • 11
1
vote
0 answers

How do I change the menu items that appear in all applications' system menu?

The system menu of every application in my version of Windows 7 has the following menu items: Restore, Move, Size, Minimize, Maximize, and Close. I want to add one more item to all applications named "Always on Top". Is this possible? And in what…
mfgravesjr
  • 37
  • 5
1
2