IVsUIShellArrangeWindows.ComputeWindowSizeChange(IntPtr, WINDOWPOS[]) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
计算窗口的当前大小和 newPos 中所述的新大小之间的差异。 此函数通常在接收到 WM_WINDOWPOSCHANGING 时调用,以便为调用 CArrangeWindowHelper::编排做准备。
public:
Microsoft::VisualStudio::OLE::Interop::SIZE ComputeWindowSizeChange(IntPtr hwnd, cli::array <Microsoft::VisualStudio::Shell::Interop::WINDOWPOS> ^ newPos);
public Microsoft.VisualStudio.OLE.Interop.SIZE ComputeWindowSizeChange (IntPtr hwnd, Microsoft.VisualStudio.Shell.Interop.WINDOWPOS[] newPos);
abstract member ComputeWindowSizeChange : nativeint * Microsoft.VisualStudio.Shell.Interop.WINDOWPOS[] -> Microsoft.VisualStudio.OLE.Interop.SIZE
Public Function ComputeWindowSizeChange (hwnd As IntPtr, newPos As WINDOWPOS()) As SIZE
参数
- hwnd
-
IntPtr
nativeint
窗口的句柄。
- newPos
- WINDOWPOS[]
新位置。
返回
此 HRESULT。