Пример #1
0
 // --------------------------------------------------------------------------------------------
 /// <summary>
 /// Notifies the VSPackage that a window is being resized.
 /// </summary>
 /// <param name="x">New horizontal position.</param>
 /// <param name="y">New vertical position.</param>
 /// <param name="w">New window width.</param>
 /// <param name="h">New window height.</param>
 /// <returns>
 /// If the method succeeds, it returns S_OK. If it fails, it returns an error code.
 /// </returns>
 // --------------------------------------------------------------------------------------------
 int IVsWindowFrameNotify3.OnSize(int x, int y, int w, int h)
 {
     if (OnResize != null)
     {
         var e = new WindowFramePositionChangedEventArgs(new Rectangle(x, y, w, h));
         OnResize(this, e);
     }
     InvokeStatusChanged();
     return(VSConstants.S_OK);
 }
Пример #2
0
 // --------------------------------------------------------------------------------------------
 /// <summary>
 /// Notifies the VSPackage that a window is being resized.
 /// </summary>
 /// <param name="x">New horizontal position.</param>
 /// <param name="y">New vertical position.</param>
 /// <param name="w">New window width.</param>
 /// <param name="h">New window height.</param>
 /// <returns>
 /// If the method succeeds, it returns S_OK. If it fails, it returns an error code.
 /// </returns>
 // --------------------------------------------------------------------------------------------
 int IVsWindowFrameNotify3.OnSize(int x, int y, int w, int h)
 {
   if (OnResize != null)
   {
     var e = new WindowFramePositionChangedEventArgs(new Rectangle(x, y, w, h));
     OnResize(this, e);
   }
   InvokeStatusChanged();
   return VSConstants.S_OK;
 }