title: How to change combobox to ownerdraw at runtime?
body: <p>I'd like to change a combobox control to owner-draw at runtime. In the resource script the control is layed out as a standard control.</p>
  
  <p>I've experimented with setting the style bits to CBS_OWNERDRAW | CBS_HASSTRINGS but somehow this does not help.</p>
  
  <p>Before doing subclass, set window style..</p>
  
  <pre><code>    // turn to ownerdraw
  DWORD dwStyle = ::GetWindowLong(hwnd, GWL_STYLE);
  dwStyle |= CBS_OWNERDRAWVARIABLE | CBS_HASSTRINGS;
  SetWindowLong(hwnd, GWL_STYLE, dwStyle);
  </code></pre>
  
  <p>Does anybody know the trick?</p>