How to add custom item to system menu in C++?

后端 未结 4 1264
刺人心
刺人心 2021-01-13 03:05

I need to enumerate all running applications. In particular, all top windows. And for every window I need to add my custom item to the system menu of that window.

Ho

4条回答
  •  滥情空心
    2021-01-13 03:47

    You can use EnumWindows() to enumerate top level Windows.

    I don't have a specific answer for the second part of your question, but if you subclass the window, I imagine you can modify the system menu.

    EDIT: or do what Chris said: call GetMenu()

提交回复
热议问题