IVsUIShellArrangeWindows.ComputeWindowSizeChange(IntPtr, WINDOWPOS[]) 方法

定义

计算窗口的当前大小和 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[]

新位置。

返回

SIZE

此 HRESULT。

适用于