03-21-2007, 03:16 PM
I made another two dialogs and found that the problem is occurred only when I put quit message with mes.
caller2:
another:
caller2:
\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages
if(!ShowDialog("caller2" &caller2)) ret
;BEGIN DIALOG
;0 "" 0x90C80A44 0x100 0 0 71 97 "Dialog"
;1 Button 0x54030001 0x4 10 14 48 14 "Call"
;2 Button 0x54030000 0x4 10 34 48 14 "Exit"
;3 Static 0x54000000 0x0 10 52 48 34 "I simplified this dialog for testing. Still same issue.."
;END DIALOG
;DIALOG EDITOR: "" 0x2020002 "" ""
ret
;messages
sel message
,case WM_INITDIALOG
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK
,if(!ShowDialog("another" &another)) ret
,case IDCANCEL
ret 1
another:
\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages
if(!ShowDialog("another" &another)) ret
;BEGIN DIALOG
;0 "" 0x90C80A44 0x100 0 0 85 46 "Dialog"
;4 Button 0x54030000 0x4 8 24 68 14 "Close this one"
;3 Static 0x54000000 0x0 8 10 68 10 "I have been called.."
;END DIALOG
;DIALOG EDITOR: "" 0x2020002 "" ""
ret
;messages
sel message
,case WM_INITDIALOG
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case 4
,mes "I'm going to be closed."
,end
,
,case IDOK
,case IDCANCEL
ret 1