コード例 #1
0
        protected override bool HandleLButtonDblClick(ref Message m)
        {
            int x = Control.LowOrder((int)m.LParam.ToInt32());
            int y = Control.HighOrder((int)m.LParam.ToInt32());

            // Correct since we are in NC land.
            NCClientToNC(ref x, ref y);

            if (IconRectangleContains(x, y))
            {
                icon_popup_menu.Hide();
                form.Close();
                return(true);
            }

            return(base.HandleLButtonDblClick(ref m));
        }
コード例 #2
0
ファイル: TrayIcon.cs プロジェクト: orf53975/srepp_client
 private void SettingsToolStripMenuItem_Click(object sender, EventArgs e)
 {
     TrayContextMenuStrip.Hide();
     ShowSettingsForm();
 }