C# 在现有窗口的标题栏上绘制自定义按钮
我需要弄清楚如何在所有打开的窗口的标题栏中的最小化、最大化和关闭按钮旁边绘制自定义按钮。我已经看到了一些关于如何针对用户创建的表单执行此操作的解决方案,但没有针对现有窗口的解决方案。
最终产品将是最小化按钮(在每个窗口上)旁边的一个按钮,允许将该窗口移动并调整大小到第二个监视器。
I need to figure out how to draw a custom button next to the minimize, maximize and close buttons within the Titlebar for ALL open windows. I have seen some solutions for how this might be done for a user created form, but none for existing windows.
The end product will be a button next to the minimize button (on every window) that will allow that window to be moved and resized to a second monitor.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
忘记它吧。这是非常困难的,而且出于安全考虑,您仍然无法让它在所有 Windows 上运行 - 实现这一点的唯一方法是将代码注入到每个其他进程中。
请参阅此线程以获得稍长的解释。
修改全局系统菜单
Forget about it. This is monstrously difficult, and you still wouldn't get it to work on all Windows because of security concerns - The only way to do this involves injecting code into every other process.
see this thread for a slightly longer explanation.
Modifying global system menus