[英]C# Draw Custom Button on Existing Window's TitleBar
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. 最终产品将是“最小化”按钮旁边的按钮(在每个窗口上),该按钮将允许该窗口移动并调整大小到另一个监视器。
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.
这是非常困难的,由于安全问题,您仍然无法在所有Windows上使用它-唯一的方法是将代码注入到其他所有进程中。
see this thread for a slightly longer explanation. 请参阅此线程以获取稍长的解释。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.