Пример #1
0
 protected override void OnGotFocus(EventArgs e)
 {
     if (this.m_RenderWindow != null)
     {
         IntPtr genericWindowId = this.m_RenderWindow.GetGenericWindowId();
         if (IntPtr.Zero != genericWindowId)
         {
             try
             {
                 RenderWindowControl.SetFocus(genericWindowId);
             }
             catch
             {
             }
         }
     }
     base.OnGotFocus(e);
 }