Discussion:
Correct place to launch/save options data dialog in SDI
(too old to reply)
JiiPee
2015-11-29 22:16:21 UTC
Permalink
If I have a SDI project and lets say I want to store options for the
document (or other data). What is the best place the launch (DoModal)
the options dialog box? Is it best done in Document class? Or in
MainFrame? My guess is that document is the place, but is it?

Is it so that all document related dialog boxes (dialog boxes which
modify documents data) should be created/launched in document class
(creating event handler there)? When would I launch a dialog box in
MainFrame class (by creating an event handler there)? Is it when
something if Mainframe related? And I do an event handler in view class
if it is view related issue, is this the way to do it? Thank you
David Lowndes
2015-11-29 23:59:24 UTC
Permalink
Post by JiiPee
Is it so that all document related dialog boxes (dialog boxes which
modify documents data) should be created/launched in document class
(creating event handler there)?
Generally, yes, handle the command in the area that it's applicable
to. Although you're creating an SDI app, I always found it useful to
consider an application as if it were MDI to ensure handlers were in
the correct place.

Dave

Loading...