Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Set ComboBox dropdown list width
#1
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


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)