private void Form1_Load(object sender, EventArgs e) { var result = -1U; try { result = HWSignApi.HWInit(new IntPtr(0)); Thread.Sleep(200); result = HWSignApi.GetDeviceStatus(); DEVICE_INFO dEVICE_INFO = new DEVICE_INFO(); result = HWSignApi.GetDeviceInfo(ref dEVICE_INFO); HWSignApi.RegisterTouchInfoCallBack(TouchInfoCallBack); graphics = pictureBox1.CreateGraphics(); graphics.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality; } catch (Exception ex) { } }
public MainWindow() { InitializeComponent(); HWSignApi.RegisterTouchInfoCallBack(new callBackTouchInfoFunc(TouchOver)); }