title: How can I check if a combobox is a dropdown or a drop list?
body: <p>Is there a way to retrieve the type of a CComboBox?<P>
  I need to know if it is a "Dropdown" or a "Drop List".<P>
  I've tried the following:</p>
  
  <pre><code>if (m_MyComboBox.GetStyle() &amp; CBS_DROPDOWN)
     // do some stuff
  </code></pre>
  
  <p>and</p>
  
  <pre><code>if (m_MyComboBox.GetStyle() &amp; CBS_DROPDOWNLIST)
     // do some stuff
  </code></pre>
  
  <p>But both expressions seem to evaluate to TRUE regardless of the CComboBox being a dropdown or a drop list.</p>