title: How to control the position of edit control in ListView
body: <p>I have used the <code>CreateWindow</code> function to create a ListView control with style <code>LVS_EDITLABELS</code>.</p>
  <pre><code>HWND hWndEditBox = CreateWindow(...LVS_EDITLABELS | LVS_OWNERDRAWFIXED | LVS_REPORT...);
  </code></pre>
  <p>It looks good, except for only one problem:</p>
  <p>The edit control was alway in the first column of an item, no matter which sub item I click.</p>
  <p>I got infomation from MSDN that says:</p>
  <blockquote>
  <p>you can get the handle of a edit control using the macro <code>ListView_GetEditControl</code>, then you can subclass the edit control</p>
  </blockquote>
  <p>I did, but nothing changed.</p>
  <p>From debugging:</p>
  <pre><code>EditBoxProc &gt;&gt; USER_DEFINED_MSG &gt;&gt; xy[80,20],wh[180,60]
  EditBoxProc &gt;&gt; WM_MOVE &gt;&gt; xy[80,20]
  EditBoxProc &gt;&gt; WM_SIZE &gt;&gt; xy[3,0],wh[180,60]
  EditBoxProc &gt;&gt; WM_MOVE &gt;&gt; xy[2,40]
  EditBoxProc &gt;&gt; WM_SIZE &gt;&gt; xy[3,0],wh[80,20]
  </code></pre>