先看看效果
頭文件:
once<atlimage.h> CAddressComboBox : ~ OnSize(UINT nType, cx, DrawItem(LPDRAWITEMSTRUCT MeasureItem(LPMEASUREITEMSTRUCT *
源文件:
==~& CAddressComboBox::OnSize(UINT nType, cx, = &= == = = lpDrawItemStruct-> nItem = lpDrawItemStruct->= lpDrawItemStruct->= (HICON)lpDrawItemStruct->, rcItem.top, hIcon, , , , (nItem !=== (lpDrawItemStruct->itemState & ODS_SELECTED) == ~::GetSysColor(COLOR_WINDOWTEXT) & ==, , ETO_OPAQUE, rcText, NULL, |DT_VCENTER|DT_SINGLELINE|->itemHeight = (CComboBox::OnCreate(lpCreateStruct) == - --, (!m_imgComboBox.IsNull()) (!m_imgComboBoxThump.IsNull()) ); (m_imgComboBox.IsNull()) (m_imgComboBoxThump.IsNull()) & CRect rcComboLeft == ,,, CRect rcComboTop == = = ,,, CRect rcComboBottom == = = ,,, = &==-= = rcComboThump.left + = = ,,,,,,,,,=, , , , , m_hIcon, , , , = == TME_HOVER |= ; TrackMouseEvent(& (!= &&== += = ==== wParam == == nItem = nItem = (nItem == -) =