09-03-2010, 03:53 AM
Well, as usual, I figured it out after I posted my question. ShowDesktop should be ShowDialog in the Options: Security section of help, where there is adequate documentation under Dialog Editor -> Encrypted macros. One minor difference, keep the dlgproc parameter to ShowDialog, not 0 like in help. Out of curiosity, did something change about this behavior since the last release?
Function IDB_D_Dlg_Report
Function IDB_D_Dlg_Report
\Dialog_Editor
function# hDlg message wParam lParam
;#exe addfunction "IDB_output_simulator"
#exe addfunction "IDB_D_UpdateCurrentPrices"
;ShowDesktop()
if(IDB_D_CanRun!=XXXXXXXXXX) end
if(hDlg) goto messages
str dd =
;BEGIN DIALOG
;0 "" 0x90CA0AC8 0x0 0 0 353 295 "IDB Update Report"
;1 Button 0x54030001 0x4 300 274 48 14 "OK"
;5 msctls_progress32 0x54030000 0x20000 4 258 346 12 ""
;3 Edit 0x542308C4 0x200 4 2 346 254 ""
;4 Button 0x54032000 0x0 248 274 48 14 "Start"
;END DIALOG
;DIALOG EDITOR: "" 0x2030109 "" "" ""
str controls = "3"
str e3
if(!ShowDialog(dd &IDB_D_Dlg_Report &controls 0 2)) ret
ret
;messages