12-20-2008, 06:56 PM
Function Dialog13
\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages
str controls = "3"
str cb3
if(!ShowDialog("Dialog13" &Dialog13 &controls)) ret
;BEGIN DIALOG
;0 "" 0x90C80A44 0x100 0 0 223 135 "Dialog"
;1 Button 0x54030001 0x4 120 116 48 14 "OK"
;2 Button 0x54030000 0x4 170 116 48 14 "Cancel"
;3 ComboBox 0x54230641 0x0 2 2 118 114 ""
;END DIALOG
;DIALOG EDITOR: "" 0x2030004 "*" "" ""
ret
;messages
sel message
,case WM_INITDIALOG
,QmRegisterDropTarget id(3 hDlg) hDlg 16
,case WM_QM_DRAGDROP
,QMDRAGDROPINFO& di=+lParam
,str s.getl(di.files 0) ;;get first dropped file
,str s2.getfile(s)
,int hcb=id(3 hDlg)
,SendMessage hcb CB_RESETCONTENT 0 0
,foreach s s2
,,CB_Add hcb s
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK
,case IDCANCEL
ret 1