コード例 #1
0
        protected override void WndProc(ref Message m)
        {
            const int WM_HOTKEY = 0x0312;

            //按快捷键
            if (m.Msg == WM_HOTKEY)
            {
                switch (m.WParam.ToInt32())
                {
                case 100:

                    break;

                case 101:        //shift+S
                    if (!isSysFormOpen)
                    {
                        isSysFormOpen = true;
                        Form systacticForm = new SyntacticAnalyzerForm();
                        systacticForm.ShowDialog();
                        isSysFormOpen = false;
                    }
                    break;

                case 102:
                    break;
                }
            }
            base.WndProc(ref m);
        }
コード例 #2
0
        private void SyntacticAnalyzerItem_Click(object sender, EventArgs e)
        {
            Form systacticForm = new SyntacticAnalyzerForm();

            systacticForm.ShowDialog();
        }