Using ComboBox on FlexGrid - Cant set the ComboBox Size correctly
Posted on 2006-11-24
I am using a FlexGrid Control, and want to use, depending on the current cell, either a CComboBox or a CEdit.
I have no trouble at all, sizing the CEdit, simply convert TWIPS to Pixels, and, call Create.
With the ComboBox, I am unable to make the height the correct value. The cells are 15 Pixels tall, and no matter what I do, the CComboBox insists on being 24 pixels tall.
I've set the Font to a smaller font, tried SetItemHeight(), tried MoveWindow(), etc. Nothing works.
Any Ideas, Rick