Exemple #1
0
 // --------------------------------------------------------------------------------------------
 /// <summary>
 /// Notifies the VSPackage that a window's docked state is being altered.
 /// </summary>
 /// <param name="fDockable">true if the window frame is being docked.</param>
 /// <param name="x">Horizontal position of undocked window.</param>
 /// <param name="y">Vertical position of undocked window.</param>
 /// <param name="w">Width of undocked window.</param>
 /// <param name="h">Height of undocked window.</param>
 /// <returns>
 /// If the method succeeds, it returns S_OK. If it fails, it returns an error code.
 /// </returns>
 // --------------------------------------------------------------------------------------------
 int IVsWindowFrameNotify3.OnDockableChange(int fDockable, int x, int y, int w, int h)
 {
     if (OnDockChange != null)
     {
         var e = new WindowFrameDockChangedEventArgs(new Rectangle(x, y, w, h), fDockable != 0);
         OnDockChange(this, e);
     }
     InvokeStatusChanged();
     return(VSConstants.S_OK);
 }
Exemple #2
0
 // --------------------------------------------------------------------------------------------
 /// <summary>
 /// Notifies the VSPackage that a window's docked state is being altered.
 /// </summary>
 /// <param name="fDockable">true if the window frame is being docked.</param>
 /// <param name="x">Horizontal position of undocked window.</param>
 /// <param name="y">Vertical position of undocked window.</param>
 /// <param name="w">Width of undocked window.</param>
 /// <param name="h">Height of undocked window.</param>
 /// <returns>
 /// If the method succeeds, it returns S_OK. If it fails, it returns an error code.
 /// </returns>
 // --------------------------------------------------------------------------------------------
 int IVsWindowFrameNotify3.OnDockableChange(int fDockable, int x, int y, int w, int h)
 {
   if (OnDockChange != null)
   {
     var e = new WindowFrameDockChangedEventArgs(new Rectangle(x, y, w, h), fDockable != 0);
     OnDockChange(this, e);
   }
   InvokeStatusChanged();
   return VSConstants.S_OK;
 }