Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Populate ComboBox at runtime
#1
Supposed that you need to change the content of a ComboBox at runtime in a dialogue. The following procedure works properly. I wonder whether there exists another one more effective procedure to populate the ComboBox.

Many thanks in advance.

Function tempf14
Code:
Copy      Help
;messages2
sel wParam
,case 5
,int hcb=id(4 hDlg)
,SendMessage  hcb CB_RESETCONTENT 0 0
,str s2="a[]b[]c"
,str s
,foreach s s2
,,CB_Add hcb s


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)