Document Class and Dialog Windows :: MFC 
Author Message
 Document Class and Dialog Windows :: MFC

Im not very experienced myself but, i would stick with the messages
solution. A couple of books ibe read on MFC mention this as the "Best"
solution for this.

> Hi.

> I am working on a project that contains a formview class
> with multiple dialog windows visible. As the user make
> changes to each dialog box, I want to update the document
> class. I implemente a message solution. The dialog boxes
> update send messages to the view class. The view class
> update the document class.

> In general, the solution above is adequate. However, in
> this particular project, the dialog windows are visible in
> the formview. I would like to know is there other more
> elegant solutions?

> For example, is it possible to implement a GetDocument()
> function that returns a pointer to the document class
> inside the dialog boxes? As another example, how about
> passing the dialog boxes pointers to the document class? I
> do not want to implement these solution unless messages
> fail. Thus these solutions should be last resorts.

> Thanks,
> Kuphryn

Mon, 16 May 2005 05:46:04 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Add document type of class to MFC dialog based

2. Accessing public variables in Document class from a Dialog Class

3. Accessing Document class variables from dialog class

4. Accessing Document class variables from dialog class

5. Getting to Document data from Dialog Box Class

6. REPOST: Getting a document pointer in a dialog class

7. Accessing document class from dialog

8. Dialog box document class data exchange

9. Modeless dialog in a MFC document/view application

10. Showing a modeless progress dialog while opening document with MFC

11. resetting mfc project from single document to multiple document

12. Subclassing Windows class in MFC


Powered by phpBB® Forum Software