OnAfterWebWindowSubViewChange Event

Microsoft FrontPage Visual Basic

OnAfterWebWindowSubViewChange Event

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

Private Sub application__OnAfterWebWindowSubViewChange(ByVal pWebWindow As WebWindowEx)

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 WebWindowEx)
'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