title: MFC CWnd height and width
body: <p>How do you get the height and width of a CWnd*? The CWnd is the window correct? Why isn't the command:</p>
  
  <pre><code>CWnd* parent = this-&gt;GetParent(); // C++ command
  parent-&gt;GetSize(); // what I think the method should be OR ...
  parent-&gt;GetWindowRect(); // what i think it should be (no arguments)
  </code></pre>
  
  <p>what is this LPRECT? I already have the object ... why and what is the argument going into GetWindowRect? What am I pointing to? I already have the object i want to find the size of ... just give me the size.</p>