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

后端 未结 4 1219
刺人心
刺人心 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:50

    Once you have another window's top level handle, you may be able to call GetMenu() to retrieve the Window's system menu and then modify it, eg:

    HMENU hMenu = GetMenu(hwndNext);
    

提交回复
热议问题