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.PointerMode) { //Root.UnPointer(); Root.SelectPen(Root.LastPen); } else { //Root.Pointer(); Root.SelectPen(-2); } } return(false); }
public void ExitSnapping() { IC.SetWindowInputRectangle(new Rectangle(0, 0, this.Width, this.Height)); Root.SnappingX = -1; Root.SnappingY = -1; Root.Snapping = -60; Root.SelectPen(Root.CurrentPen); }