
MDI app w/ modal-less dialog box (inter-view communication)
Hello.
I am developing a MDI
program using MFC4.2 (vc++ 5.0). For each
view, at the users' request, I need to be able to create a modal-less
dialog box. This dialog box will contain various controls. When the
user uses the dialog box to change the values of the controls, I need
the view to know about it, so the view can adjust. Also, if the user
has input focus on the view, and uses the keyboard to change the values
of the same parameters, I need the dialog box to stay in sync.
I can create a modal-less dialog box just fine. The dialog box
contains apointer to the "parent" view, so if the view changes, I can
just signal the dialog box, which can re-read the variables from the
view.
But, how do I update the view that the box is mated to when the user
changes settings via the dialog box?
I can think of a few ways, but I'm looking for the "proper" method.
Something clean & elegant....
TIA,
Dennis Jenkins
Linscan Systems, Inc.