MSPropShell.LocaleID
![]() |
The LocaleID property sets and retrieves the national language used in the property pages.
Syntax
MSPropShell.LocaleID = Long
Long = MSPropShell.LocaleID
Parameters
This property takes no parameters.
Property Value
A Long that indicates the language.
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 property pages 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
PropPageShell.AddPage PpgDesc
PropPageShell.AddPage PpgAttr
PropPageShell.AddPage PpgProfile
PropPageShell.AddPage PpgOutput
' Retrieve the language locale ID.
Dim lLocID As Long
lLocID = PropPageShell.LocaleID
' Convert the long to a string containing the hexadecimal.
' equivalent.
Dim sHexLocID As String
sHexLocID = Hex(lLocID)
Requirements
Reference: Microsoft PropShell Control 1.0
Library: mspshell.dll
See Also
.gif)