05-20-2013, 02:38 PM
Function Dialog124
\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages
if(!ShowDialog("Dialog124" &Dialog124)) ret
;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 223 135 "Dialog"
;1 Button 0x54030001 0x4 120 116 48 14 "OK"
;2 Button 0x54030000 0x4 170 116 48 14 "Cancel"
;END DIALOG
;DIALOG EDITOR: "" 0x2030503 "" "" "" ""
ret
;messages
sel message
,case WM_INITDIALOG
,SetTimer hDlg 1 2000 0 ;;timer 1
,SetTimer hDlg 2 1000 0 ;;timer 2
,
,case WM_TIMER
,sel wParam
,,case 1
,,;timer 1 code
,,;...
,,
,,case 2
,,;timer 2 code
,,DateTime dt; int hour
,,dt.FromComputerTime; dt.GetParts(0 0 0 hour)
,,sel hour
,,,case 14: out "IN PROGRESS"
,,
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK
,case IDCANCEL
ret 1