public void OnResizeDialog() { foreach (OneDialog dlg in m_dialogs) { BVRect rect = new BVRect(); rect.left = dlg.panel.DisplayRectangle.Left; rect.top = dlg.panel.DisplayRectangle.Top; rect.right = dlg.panel.DisplayRectangle.Right; rect.bottom = dlg.panel.DisplayRectangle.Bottom; BVCU.ManagedLayer_CuResizeDialogWindow(m_bvsdkHandle, dlg.dialogHandle, ref rect); } }