Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Updating Combo Box
#6
TheVig Wrote:Gosh that was easy!! Thanks bunches. I was trying all sorts of stuff. I thought it had to do with one of the flags on the send message. Is there any way you could break down some of the theory on this? I would love to understand it better!

Thanks so much for your help.


ill give it ago,

When combo is dropped down it runs the refresh combo.

case CBN_DROPDOWN<<16|3
,_i=CB_SelectedItem(lParam)
,RefreshCombo(id(3 hDlg))

this resets the combo with nothing.
SendMessage(lis CB_RESETCONTENT 0 0)
now that its empty time to populate it

this inserts the new string with each file found,
Dir d
foreach(d "$desktop$\*" FE_Dir)
,tmp.getfilename(d.FileName)
,SendMessage(lis CB_INSERTSTRING 0 tmp)

hope that explains it a little more


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)