Re: Handling focus change on child frame

Tech-Archive recommends: Speed Up your PC by fixing your registry



UpdateAllViews is certainly a good way to do it so long as you can call that from the document, although you can have a view call it from the document using the document pointer GetDocument(). I wouldn't have one view talk to another unless they are not in the same application. I sort of thought this was being done across applications that you control.

Tom

"Pedro Ferreira" <none@xxxxxxxx> wrote in message news:OWaNlmW%23HHA.748@xxxxxxxxxxxxxxxxxxxxxxx
Tom Serface wrote:
You could just send a message from one window to the other (application or view) from the dialog with information about the data that needs to change. The change could come from fishing the data out of the document or by having a pointer to the data in the actual message.

Tom


Hello Tom, thanks for your reply.

Yes, I could do that. But what I was trying to do is to keep that away from the shared views since its just one application that needs that extra functionality.

I will probably end up doing just that. Or maybe use CDocument::UpdateAllViews with some hint data. Not sure if its a good thing though.

Pedro

.