title: How to properly use DDX (Data Exchange) with the CComboBox Control?
body: <p>The MFC offers a function called <code>DDX_CBIndex</code> to get the Index of the current selected ComboBox item. But in most cases I'm not interested about the index, instead I want to get the 32 bit application-supplied value, which I get when calling <code>GetItemData</code>. Therefore I always have to override <code>OnOk</code> and use <code>GetCurSel</code> and <code>GetItemData</code> to retrieve this value.</p>
  
  <p>Is there a more elegant way to get/set the CComboBox item not depending on the index but depending on the application-supplied 32 bit value?</p>
  
  <p>Thank you!</p>