I have this procedure to fill the COMBOBOXes of a dialog box but it only works the first time aorund. If i call the dialogbox a second time the COMBOBOXes appear empty. Help neededSetupLibDialog PROC hDlg:DWORD
local hDlgItemx:DWORD
invoke GetDlgItem,hDlg,1016
or eax,eax
jnz skip_0
invoke Beep,1000,100
skip_0:
mov hDlgItemx,eax
lea esi,MachineItems
mov ecx,9
cld
loop_0:
push ecx
invoke SendMessageA,hDlgItemx,CB_INSERTSTRING,LibParamsId,esi
inc LibParamsId
loop_1:
lodsb
or al,al
jnz loop_1
pop ecx
loop loop_0
invoke SendMessage,hDlgItemx,CB_SETCURSEL,0,0
invoke GetDlgItem,hDlg,1028
mov hDlgItemx,eax
lea esi,SubSystemItems
mov ecx,5
loop_2:
push ecx
invoke SendMessageA,hDlgItemx,CB_INSERTSTRING,SysParamsId,esi
inc SysParamsId
loop_3:
lodsb
or al,al
jnz loop_3
pop ecx
loop loop_2
invoke SendMessage,hDlgItemx,CB_SETCURSEL,0,0
ret
SetupLibDialog endp