03-01-2009, 01:56 PM
Function dialog
this is what i tried...basically the way it is everytime i hit button 13 it adds the same windows that are already in the CB Box. I tried this as shown above
ARRAY(int) a
GetWindowList 0 0 1|4 0 0 a
int i
int h
int g = ""
for i 0 a.len
,h=a[i]
,if(!wintest(h "" "ATL:007C37C8")) continue
,str s.getwintext(h)
,int dd=id(13 "dialog")
,SendMessage dd CB_RESETCONTENT 0 0 ;;;i tried to add it right here but it didnt work. it would only add one window but didnt add the others or duplicate any as well.
,SendMessage dd i 0 0
,SendMessage dd CB_ADDSTRING 0 s
this is what i tried...basically the way it is everytime i hit button 13 it adds the same windows that are already in the CB Box. I tried this as shown above