MFC SDI Application without a default "New Document" on Startup
Posted
by Jd
on Stack Overflow
See other posts from Stack Overflow
or by Jd
Published on 2010-04-19T23:59:42Z
Indexed on
2010/04/20
0:03 UTC
Read the original article
Hit count: 489
My application is an SDI with multiple views. By default, it creates a new document when the application starts. I want to modify this behavior so that a new document is created only when user explicitly clicks on "New". Or at least mimic this behavior. Any ideas? I am using Visual Studio 2008 with MFC feature pack. I googled and found some solution to this problem in an old MS Journal article. But unfortunately it doesn't seem to work now. Any workarounds or solutions? In short, I need to differentiate between framework call to OnFileNew() and User Click on New.
© Stack Overflow or respective owner