0
votes

I want to replace the default sys menu(Restore, Move, Size etc.) with my custom entries. The menu I'm talking about can be opened either by clicking left button on window icon or by clicking right button on window title. I can remove all the items and populate this menu with my own entries. But if I remove all entries then minimize, maximize and close buttons become inactive. So they depend on those menu items.

I want to have min, max, close buttons working as usual but system menu which contains my own items(like it is done in Windows Media Player). I'm using Qt, but I'm almost sure it can't be done with it so any solution would be appreciated.

1

1 Answers

1
votes

Do not remove Min/Max/Close items from system menu. It's much better to process WM_SYSCOMMAND message instead (SC_MINIMIZE, SC_MAXIMIZE, SC_RESTORE, SC_CLOSE).