Hi,
Is it possible to avoid closing a document when the Close All Documents is
used?
In the IVsWindowFrameNotify.OnClose method we return E_ABORT if the document
should not be closed. This works fine when closing a single document, but
when Close All Documents is used, the document is always closed.
If it is not possible to avoid this, is there some way of knowing that the
Close All Documents command was used?
Best regards,
Andreas Suurkuusk
SciTech Software AB
Dmitry Shaporenkov - 28 Feb 2005 10:24 GMT
Hello Andreas,
you can use DTE.Events.CommandEvents.BeforeExecute event for that purpose.
Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
> is there some way of knowing that
> the Close All Documents command was used?