MSPropShell.Refresh

Windows Media Encoder SDK banner art

The Refresh method recreates all of the property pages in the MSPropShell control.

Syntax

MSPropShell.Refresh

Parameters

This method takes no parameters.

Return Values

This method does not return a value.

Remarks

The Refresh method destroys all of the property pages and recreates them. If you add a new WMEncoder object, call Refresh to rebuild the property pages. Alternatively, set the MSPropShell.AutoRefresh property to True to control this automatically.

Example Code

' Create a WMEncoder object.
Dim Encoder As WMEncoder
Set Encoder = New WMEncoder

' Create the Windows Media Encoder property pages.
Dim PpgSources As New WMEncSourcesPage
Dim PpgDesc As New WMEncDisplayInfoPage
Dim PpgAttr As New WMEncAttributesPage
Dim PpgProfile As New WMEncProfilePage
Dim PpgOutput As New WMEncOutputPage

' Add Windows Media Encoder to the property page shell.
' You must add the encoder before adding the property pages.
PropPageShell.AddObject Encoder

' Add the Sources property page to the property page shell. To create an
' MSPropShell ActiveX control, on the Project menu, click Components,
' and then in the Components dialog box, select Microsoft PropShell
' Control 1.0. In the following example, the ActiveX control is named
' PropPageShell.
PropPageShell.AddPage PpgSources

' Set the AutoRefresh property to False.
PropPageShell.AutoRefresh = False

' Add the other property pages to the MSPropShell ActiveX
' control.
PropPageShell.AddPage PpgProfile
PropPageShell.AddPage PpgOutput

' Refresh the MSPropShell ActiveX control.
PropPageShell.Refresh

Requirements

Reference: Microsoft PropShell Control 1.0

Library: mspshell.dll

See Also