originally posted by lance edmonds in http://www.powerbasic.com/support/pb...ead.php?t=2889:
ok, so i looked in win32.hlp. according to that, enddialog() should only be used with modal dialogs.
but dialog end is used on both modal nad modeless dialogs. if it's just a wrapper for enddialog(), shouldn't we be terminating our modeless dialogs by some other technique?
and if dialog end is ok to use with modeless dialogs, does the "use dialog end only within callback" rule still apply?
------------------
--dan
[this message has been edited by dan soper (edited november 15, 2000).]
dialog end, like enddialog(), should *only* be used in the dialog box procedure for the target dialog. neither of your examples obey this rule.
see enddialog() in win32.hlp for more information.
see enddialog() in win32.hlp for more information.
dialog end is a wrapper for enddialog(), so the same basic rules apply to both the statement and the api call.
but dialog end is used on both modal nad modeless dialogs. if it's just a wrapper for enddialog(), shouldn't we be terminating our modeless dialogs by some other technique?
and if dialog end is ok to use with modeless dialogs, does the "use dialog end only within callback" rule still apply?
------------------
--dan
[this message has been edited by dan soper (edited november 15, 2000).]
Comment