Show pageOld revisionsBacklinksAdd to bookBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== onDocumentSwitch ====== Event of [[:scripting:api:frame-events:start|IFrameEvents]] ===== Description ===== Called when active document has been changed ===== Parameters ===== * [[:scripting:api:base-document:start|IBaseDocument]] **pActiveDocument** ===== Syntax ===== ==== JavaScript ==== <code javascript> Appplication.onDocumentSwitch = function() { }; </code>==== Visual Basic Script ==== <code vb> function onDocumentSwitch() { } Appplication.onDocumentSwitch = onDocumentSwitch </code>==== C++ ==== <code cpp> HRESULT CFrameEvents::onDocumentSwitch(IBaseDocument* pActiveDocument) { } </code>===== See Also ===== [[:scripting:api:frame-events:start|IFrameEvents]] ~~NOTOC~~