08-25-2012, 06:32 PM
Any window? I think it is impossible or dirty/unreliable. You probably can get and modify menu using GetSystemMenu, but on click it will send WM_SYSCOMMAND to that window, not to you. Unless you intercept mouse clicks with a mouse trigger or mouse hook.