title: Changing resolution in DirectX9
body: <p>I'm finding it hard to find good sources of information for explanations of DirectX API although I've been looking at the DirectX Documentation for a while.</p>
  
  <p>I'm trying to create a method for a wrapper class for DX9 that changes the resolution during runtime. I've managed to handle this with DirectDraw but I find no information regarding DX9 even though it should be more common.</p>
  
  <p>All I found was a reference to SetDisplayMode, but neither my Direct Object or my DirectX Device has this method.</p>
  
  <p>I'm using DirectX 9.</p>
  
  <p>Example method:</p>
  
  <pre><code>void SetResolution(int width, int height, int depth)
  {
     // I have access to DirectX device, object and the window HWND in this class
  };
  </code></pre>
  
  <p>...do I change the HWND window size, or do I handle this in DirectX? I know how to change resolution in a Windows application but no clue how to do it in DX9.</p>