rodrigocfd / windigo

Windows API and GUI in idiomatic Go.
https://pkg.go.dev/github.com/rodrigocfd/windigo
MIT License
417 stars 23 forks source link

How to I enable "clickthrough" in windigo? #32

Open offles2 opened 10 months ago

offles2 commented 10 months ago

If I have a Window, I need to be able to "clickthrough" it, such that mouse actions affects the background Window like as if this Window does not exist.

In WPF I achieve this via :

       protected override System.Windows.Forms.CreateParams CreateParams
        {
            get
            {
                CreateParams cp = base.CreateParams;
                cp.ExStyle = cp.ExStyle | WS_EX_TRANSPARENT;
                return cp;
            }
        }