04-24-2012, 05:36 AM
Hi Gintaras
I would like to expand/reduce the dropped width of an editable combobox to the lenght of the longest item.
I looked it up in msdn libary and found CB_SETDROPPEDWIDTH but how do you measure and compare the text lenght of all added items? and how do u keep it updating if one of the items gets deleted or added?
I know i have to work with WM_MEASUREITEM / MEASUREITEMSTRUCT but cant work out how to use it correctly.
I didnt give up yet but any help would be appreciated.
thank you
I would like to expand/reduce the dropped width of an editable combobox to the lenght of the longest item.
I looked it up in msdn libary and found CB_SETDROPPEDWIDTH but how do you measure and compare the text lenght of all added items? and how do u keep it updating if one of the items gets deleted or added?
I know i have to work with WM_MEASUREITEM / MEASUREITEMSTRUCT but cant work out how to use it correctly.
I didnt give up yet but any help would be appreciated.
thank you