title: Resize Combobox in win32 (change width)
body: <p>I have the following code to generate a ComboBox:</p>
  
  <pre><code>HWND h = CreateWindowEx("COMBOBOX", "Text", CBS_DROPDOWN | WS_CHILD, WS_EX_CLIENTEDGE, ParentWnd, 0, 0, 200, 24);
  </code></pre>
  
  <p>The combobox is created on my form no problem, however if I try resizing it with the following it won't work:</p>
  
  <pre><code>SetWindowPos(h, 0, 0, 0, NewWidth, OldHeight, SWP_NOMOVE | SWP_NOZORDER | SWP_NOACTIVATE);
  </code></pre>
  
  <p>Any idea why would this happen? It seems to resize the wrong portion of the combobox which is somehow transparent.</p>
  
  <p>I have been trying for days with different things, it is probably something stupid but I cannot put my finger on it.</p>
  
  <p>Best Regards,
  Alain Deschenes
  <a href="http://www.arianesoft.ca" rel="nofollow noreferrer">http://www.arianesoft.ca</a></p>