03-28-2015, 09:38 AM
In System folder functions I use function TO_CBFill. The same as your code. Not faster.
Function Dialog162
Function Dialog162
\Dialog_Editor
str dd=
;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 224 136 "Dialog"
;4 ComboBox 0x54230243 0x0 0 0 96 213 ""
;5 Button 0x54032000 0x0 52 16 48 14 "Button"
;END DIALOG
;DIALOG EDITOR: "" 0x2040202 "*" "" "" ""
if(!ShowDialog(dd &sub.DlgProc 0)) ret
#sub DlgProc
function# hDlg message wParam lParam
sel message
,case WM_INITDIALOG
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case 5
,TO_CBFill id(4 hDlg) "a[]b[]c" ;;DT_SetControls uses it too
ret 1