OnAfterWebWindowViewChange Event

Microsoft FrontPage Visual Basic

Private Sub expression_OnAfterWebWindowViewChange(ByVal pWebWindow As WebWindowEx)

expression     An object of type Application declared using the WithEvents keyword in a class module.

pWebWindow       The WebWindowEx object in which the view has changed.

Example

The following example displays the name of the new view type to the user every time the view is changed.

Private Sub objApp_OnAfterWebWindowViewChange(ByVal pWebWindow As WebWindowEx)
'Occurs after the Web site window view changes.

    'Display message to user
    MsgBox "The view has changed to " & pWebWindow.ViewModeEx & " mode."

End Sub