ComponentFactory.Krypton.Toolkit.VisualTaskDialog.MessageButton.WndProc C# (CSharp) Метод

WndProc() защищенный Метод

Processes Windows messages.
protected WndProc ( Message &m ) : void
m Message The Windows Message to process.
Результат void
            protected override void WndProc(ref Message m)
            {
                switch (m.Msg)
                {
                    case PI.WM_KEYDOWN:
                    case PI.WM_SYSKEYDOWN:
                        if (IgnoreAltF4)
                        {
                            // Extract the keys being pressed
                            Keys keys = ((Keys)((int)m.WParam.ToInt64()));

                            // If the user standard combination ALT + F4
                            if ((keys == Keys.F4) && ((Control.ModifierKeys & Keys.Alt) == Keys.Alt))
                            {
                                // Eat the message, so standard window proc does not close the window
                                return;
                            }
                        }
                        break;
                }

                base.WndProc(ref m);
            }
VisualTaskDialog.MessageButton