Post messages to all child windows within MDI? 
Author Message
 Post messages to all child windows within MDI?

I've many documents (all are images) opened within MDI, if user click
to zoom one image, how can i synchronize all other documents? to post
messages, or else? Thanks a lot for any idea.



Thu, 04 Nov 1999 03:00:00 GMT  
 Post messages to all child windows within MDI?

Dear H,

I don't understand why you want to sync the zooming  of different images.
At any rate, a good place to start is CDocument::GetFirstViewPosition() and
GetNextView().

Help on GetNextView has a nice example. (You'll probably want to set some
variables for each view inside the loop as well or post a message now that
you have a pointer to the view.)

For all documents, you'll want CDocTemplate::GetFirstDocumentPosition() and
GetNextDocument() to get each document and then use the example loop for
each view.

You'll need to implement the document stuff for each different template you
want updated.

Hope this helps,

Fred



Quote:
> I've many documents (all are images) opened within MDI, if user click
> to zoom one image, how can i synchronize all other documents? to post
> messages, or else? Thanks a lot for any idea.



Thu, 04 Nov 1999 03:00:00 GMT  
 Post messages to all child windows within MDI?

Take a look at SendMessageToDescendants()



Fri, 05 Nov 1999 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Post messages to all child windows within MDI?

2. Post messages to all child windows within MDI?

3. message to all MDI Child Windows

4. Sending message to all child MDI windows.

5. Change MDI child caption and Close child window button

6. Change MDI child caption and Close child window button

7. MFC MDI Multiple Views in Separate MDI Child Windows

8. MDI Children Within a Tab Control

9. Keeping Child in MDI within App Frame

10. Opening a new MDI child when no MDI Child exists

11. Opening a new MDI child from a MDI Child

12. Keeping MDI children within Frame

 

 
Powered by phpBB® Forum Software