title: (PPT Add in) Width and Height of PowerPoint Window
body: <p>in my PPT Add in i want to display a WPF pop up window and it should be centered according to PPT window.</p>
  
  <p>here's my code:</p>
  
  <pre><code>// get the postion and size of ppt window
  float winLeft = Globals.ThisAddIn.Application.Left;
  float winTop = Globals.ThisAddIn.Application.Top;
  float winWidth = Globals.ThisAddIn.Application.Width;
  float winHeight = Globals.ThisAddIn.Application.Height;
  
  // set the position of WPF window            
  this.Left = winLeft + (winWidth - this.Width) / 2;
  this.Top = winTop + (winHeight - this.Height) / 2;
  </code></pre>
  
  <p>i can obtain the current PPT window using <em>Globals.ThisAddIn.Application</em> and somehow <em>Left</em> , <em>Top</em>, <em>Width</em>, and <em>Height</em> are different to the actual size on the screen (in my PC, the values are smaller)</p>
  
  <p>i am wondering if there's a conversion of window size to actual size on screen</p>