mfc >> OnDocOpened-like method?

by GuitarBill » Wed, 26 Nov 2003 18:23:56 GMT

Can't you use the CView::OnUpdate() override?
Thats the 'proper' place to respond to the contents of a
new document...

>-----Original Message-----
>Hi All,
>
>I'm in a real pickle trying to figure this one out.
>
>I want to know when a file has been opened successfully.
In my app,
>files can either be loaded from the menu bar (File|Open
or MRU), or they
>are opened programmatically by calling OpenDocumentFile.
I want to be
>able to step in to the creation process at the point when
the document
>has loaded the child frame and the view has been created.
>
>The second of these two cases is easy - I'm calling
OpenDocumentFile, so
>when it returns, I'm at the point that I want to be. But
what about when
>the user has opened the file manually?
>
>Does such a method exist within the CDocument class that
I could overload?
>
>Thanks in advance,
>
> Paul.
>
>.
>


mfc >> OnDocOpened-like method?

by Paul Perkins » Wed, 26 Nov 2003 18:46:29 GMT


It's not the change of the document's contents that I want to respond to,
but the point in time when the document has loaded and the view created.

I have worked out (thanks to Dave Lowndes) that I should override
OpenDocumentFile to do what I need.

Thanks,

Paul.

On Wed, 26 Nov 2003 02:23:56 -0800, GuitarBill






Similar Threads

1. problem with isprint(), isspace() and the likes...

What is the best microsoft NG to ask questions/report bugs about
isprint() and the like functions?

Thanks!

2. Who likes painting?

3. how to create a doubly liked list???

I want to ask what's the differences between doubly liked list and linear
liked list, and also the circular doubly liked list in terms of
implementation. THX 

4. Create my own asynchronous BeginXXXX methods and EndXXXX methods - CSharp/C#

5. constant methods, constant method parameters

Looks like c# does not have the ability to create constant methods or 
constant parameters, is there an equilavent, or a reason why it was taken 
out? 


6. Passing method reference in a method parameter - CSharp/C#

7. out method and method with return value

"lianqtlit" < XXXX@XXXXX.COM > wrote in message 
news: XXXX@XXXXX.COM ...
> In performance wise which is more costly to use when there one value to 
> return?
> Is it the out method parameter or the method that has a return value?

Return value I presume. In most languages the return value is returned in a 
register whereas a parameter is placed on the stack.

> 


8. How to identify the calling method of a method - CSharp/C#