Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# pass mouse events to parent

//Create a control inherited from Label and add the following code.
protected override void WndProc(ref Message m)
{
    const int WM_NCHITTEST = 0x0084;
    const int HTTRANSPARENT = (-1);

    if (m.Msg == WM_NCHITTEST)
    {
        m.Result = (IntPtr)HTTRANSPARENT;
    }
    else
    {
        base.WndProc(ref m);
    }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pass #mouse #events #parent
ADD COMMENT
Topic
Name
4+5 =