Tag: 可点击

为添加到窗体的控件除外,创建一个半透明或透明窗口窗口trasparent到鼠标事件

嗨,我试图获得一个像玻璃一样透明的forms,可以使点击和每个鼠标事件传递到窗户或玻璃后面的项目。 所以这是我用WindowForms编写的代码: namespace ClickThroughMe { public partial class ClickThroughForm : Form { private int currentWindowStyle; public ClickThroughForm() { InitializeComponent(); } private void ClickThroughForm_Load(object sender, EventArgs e) { // Grab the Extended Style information for this window and store it. currentWindowStyle = WindowLibrary.User32Wrappers.GetWindowLong(this.Handle, User32Wrappers.GWL.ExStyle); // Set our window to “transparent”, or invisible to the mouse. SetFormToTransparent(); […]