public override bool WindowChanged(VisualizationWindow vizWindow) { base.WindowChanged(vizWindow); if (vizWindow == null) { return(false); } BassVis.BASSVIS_Resize(_visParam, 0, 0, VisualizationWindow.Width, VisualizationWindow.Height); return(true); }
public override bool WindowSizeChanged(Size newSize) { // If width or height are 0 the call to CreateVis will fail. // If width or height are 1 the window is in transition so we can ignore it. if (VisualizationWindow.Width <= 1 || VisualizationWindow.Height <= 1) { return(false); } // Do a move of the Bassbox Viz if (_visParam.VisHandle != 0) { // Hide the Viswindow, so that we don't see it, while moving Win32API.ShowWindow(VisualizationWindow.Handle, Win32API.ShowWindowFlags.Hide); BassVis.BASSVIS_Resize(_visParam, 0, 0, newSize.Width, newSize.Height); } return(true); }
public override bool WindowSizeChanged(Size newSize) { BassVis.BASSVIS_Resize(_visParam, 0, 0, VisualizationWindow.Width, VisualizationWindow.Height); return(true); }