public void btDock_Click(object sender, EventArgs e) { LastTickTime = DateTime.Now; if (!Root.Docked) { Root.Dock(); } else { Root.UnDock(); } }
public bool PreFilterMessage(ref Message m) { if (m.Msg == 0x0312) { //Keys key = (Keys)(((int)m.LParam >> 16) & 0xFFFF); // The key of the hotkey that was pressed. //int modifier = (int)m.LParam & 0xFFFF; // The modifier of the hotkey that was pressed. //int id = m.WParam.ToInt32(); // The id of the hotkey that was pressed. if (Root.FormCollection == null && Root.FormDisplay == null) { Root.StartInk(); } else if (Root.Docked) { Root.UnDock(); } else { Root.Dock(); } } return(false); }