Ownerdraw combobox item height
Posted on 1998-07-24
If combobox or listbox is defined as fixed ownerdraw, height of its items is changed by MFC. I am doing the following thing for getting back normal size. But may be there is more simple or elegant solution.
CFont* pOldFont = dc.SelectObject(GetFont());
VERIFY (dc.GetTextMetrics ( &tm ));
SetItemHeight (0, tm.tmHeight + 2);