OnAfterWebWindowSubViewChange Event

       

Occurs after the Folder list in the Web view sub window has changed from the Folder List view to Navigation view.

Private Sub application__OnAfterWebWindowSubViewChange(ByVal pWebWindow As WebWindow)

application   An object of type Application declared with events in a class module.

pWebWindow   The WebWindowEx object in which the view has changed.

Example

The following example displays the name of the view type in the sub window, unless the sub window is closed by the user.

Private Sub objApp_OnAfterWebWindowSubViewChange(ByVal pWebWindow As WebWindow)
'Occurs when a sub view in the Web window changes

    'Display a message indicating what view the sub window is currently in
    Select Case pWebWindow.SubViewMode
        Case fpWebSubViewFolders
            MsgBox "The view in the sub window has changed to Folder View."
        Case fpWebSubViewNavigation
            MsgBox "The view in the sub window has changed to Navigation View."
        Case fpWebSubViewNone
            MsgBox "The sub window has closed."
    End Select

End Sub