X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=win%2FC%23%2FfrmPreview.cs;h=3a8a2207c8b663327de134d8eb5f54c64024b87d;hb=4560ade3c833f282f02d15a9473e233488617df9;hp=bbf8c78e405967e3ecee2d894e810cc622913741;hpb=bbe87db90ddfabd358e9b9b69816e8dab558fcd5;p=handbrake-jp%2Fhandbrake-jp-git.git diff --git a/win/C#/frmPreview.cs b/win/C#/frmPreview.cs index bbf8c78e..3a8a2207 100644 --- a/win/C#/frmPreview.cs +++ b/win/C#/frmPreview.cs @@ -10,6 +10,7 @@ namespace Handbrake using System.IO; using System.Runtime.InteropServices; using System.Threading; + using System.Windows; using System.Windows.Forms; using Functions; @@ -19,6 +20,8 @@ namespace Handbrake using QTOControlLib; using QTOLibrary; + using MessageBox = System.Windows.Forms.MessageBox; + /// /// The Preview Window /// @@ -73,6 +76,13 @@ namespace Handbrake catch (Exception) { this.noQt = true; + + int borderWidth = (this.Width - this.ClientSize.Width) / 2; + int titlebarAndBorder = this.Height - this.ClientSize.Height; + + this.Height = toolBar.Height + titlebarAndBorder + 1; + btn_playQT.Enabled = false; + btn_playQT.Visible = false; } this.mainWindow = mw; @@ -400,7 +410,7 @@ namespace Handbrake QTControl.Show(); this.ClientSize = QTControl.Size; - this.Height += 25; + this.Height += toolBar.Height; } catch (COMException ex) {