public override void setWindowPos(CRect mx_wnd) { base.setWindowPos(mx_wnd); if (direction == Direction.VERTICAL) { mx_prevWindow.setWindowPos(new CRect(mx_window.left, mx_window.top, mx_X, mx_Y)); mx_forwWindow.setWindowPos(new CRect(mx_window.left, mx_window.bottom - mx_Y, mx_X, mx_Y)); } else { mx_prevWindow.setWindowPos(new CRect(mx_window.left, mx_window.top, mx_X, mx_Y)); mx_forwWindow.setWindowPos(new CRect(mx_window.right - mx_X, mx_window.top - mx_Y, mx_X, mx_Y)); } }