示例#1
0
 protected override void OnHandleCreated(EventArgs e)
 {
     base.OnHandleCreated(e);
     if (this.hostVisual != null)
     {
         VirtualTouchDevice.RegisterTouchWindow(this.Handle, 0);
     }
 }
示例#2
0
 protected override void WndProc(ref Message m)
 {
     if (VirtualTouchDevice.WndProc(this.hostVisual, ref m))
     {
         this.DefWndProc(ref m);
     }
     else
     {
         base.WndProc(ref m);
     }
 }