05-25-2016, 09:13 PM
I would appreciate any advice regarding the best way to close a dialogue (self-destroy it) when an external condition is met.
In the example which it follows, the dialogue is closed, by its window it is still displayed, until I move the mouse over it.
Many thanks in advance.
Function GCTw_Dlg2
In the example which it follows, the dialogue is closed, by its window it is still displayed, until I move the mouse over it.
Many thanks in advance.
Function GCTw_Dlg2
;\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg)
;,External condition to be tested
,goto messages
;BEGIN DIALOG
;0 "" 0x90000A40 0x80 0 0 116 15 "Form"
;3 Static 0x54800201 0x0 26 0 49 14 "Time Set"
;4 Button 0x54030300 0x0 0 0 22 14 "Res"
;5 Static 0x54000201 0x204 78 0 36 14 "dt"
;END DIALOG
;DIALOG EDITOR: "" 0x2040307 "" "" "" ""
ret
;messages
sel message
,case WM_INITDIALOG
,case WM_DESTROY DT_DeleteData(hDlg)
,case WM_COMMAND goto messages2
,case WM_CTLCOLORSTATIC
ret
;messages2
sel wParam
,case IDOK DT_Ok hDlg
,case IDCANCEL DT_Cancel hDlg
,case [4]
,out "4"
,
ret 1