
Signature
Sergey M
http://www.usysware.com/dpack/ - VS.NET package/add-ins
http://www.usysware.com/blog/
Hello Sergey,
yes, you're right, thank you. However, I'm equally interested to get notified
when a document
is about to close, and OnAfterDocumentWindowHide does not work right for
this purpose, because
it seems to get called each time when a document window loses focus (and
there is no magic flag
fLastHide there :)).
Any ideas how to catch document closing?
Regards,
Dmitry Shaporenkov
>> what is the best way to get notified when a document is opened for
>> editing is the IDE?
[quoted text clipped - 6 lines]
>
> Hope this helps.
Sergey M - 09 Mar 2005 16:52 GMT
Dmitry,
Sorry it took me so long to reply.
> Any ideas how to catch document closing?
Not directly, I'm afraid. The only time I needed that is when a
document with my custom marker was about to close. Luckily
IVsTextMarkerClient.OnBeforeBufferClose() was readily available to me.

Signature
Sergey Mishkovskiy
http://www.usysware.com/dpack/ - free VS.NET add-ons
http://www.usysware.com/blog/
Dmitry Shaporenkov - 10 Mar 2005 09:01 GMT
Hello Sergey,
thank you for your information. I'm now trying to use IVsRunningDocumentTableEvents.OnAfterLastDocumentUnlock,
let's see how it will work.
Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
> Dmitry,
>
[quoted text clipped - 5 lines]
> document with my custom marker was about to close. Luckily
> IVsTextMarkerClient.OnBeforeBufferClose() was readily available to me.
Marko_metronik - 07 Dec 2005 09:45 GMT
Hello sorry for the use of your thread:)
How can you subscribe to the IVsRunningDocTableEvents interface and
OnBeforeDocumentWindowShow() method. I have no idea how to get event
notification. Some sample code would be appreciated.
Thank you.