Exemple #1
0
 /// <summary>
 /// 窗口缺省过程函数
 /// </summary>
 /// <param name="m">消息</param>
 protected override void WndProc(ref Message m)
 {
     if (m.Msg == API.WM_DEVICECHANGE)
     {
         if (m.WParam.ToInt32() == API.DBT_DEVNODES_CHANGED)
         {
             _RefreshCameraDevList d = new _RefreshCameraDevList(RefreshCameraDevList);
             this.BeginInvoke(d);
         }
     }
     base.WndProc(ref m);
 }
Exemple #2
0
 /// <summary>
 /// 窗口缺省过程函数
 /// </summary>
 /// <param name="m">消息</param>
 protected override void WndProc(ref Message m)
 {
     if (m.Msg == API.WM_DEVICECHANGE)
     {
         if (m.WParam.ToInt32() == API.DBT_DEVNODES_CHANGED)
         {
             _RefreshCameraDevList d = new _RefreshCameraDevList(RefreshCameraDevList);
             this.BeginInvoke(d);
         }
     }
     base.WndProc(ref m);
 }