문제

Im trying to make my winforms app respond to Shift + double click left mouse button

Using WndProc

Any suggestions would be great!!

도움이 되었습니까?

해결책

Try something like this.

    protected override void WndProc(ref Message m)
    {
        const int WM_LBUTTONDBLCLK = 0x0203;
        switch (m.Msg)
        {
            case WM_LBUTTONDBLCLK:
                {
                    if (Control.ModifierKeys.HasFlag(Keys.Shift))
                    { 
                        //Shift plus mouse left button double clicked
                    }
                    break;
                }
        }
        base.WndProc(ref m);
    }
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top