home *** CD-ROM | disk | FTP | other *** search
-
- <%WinShell = CreateObject("WinShellHTMLPreProc")%>
- <!--
- * This file was automatically generated by Microsoft Internet Explorer 4.0
- * using the file <%WinShell.TemplateDirPath%>control.htt
- -->
-
-
- <html>
- <head>
- </head>
-
- <body topmargin=0 leftmargin=0>
- <object id="InfoHelp" classid="clsid:3A53F860-D35B-11CF-BB82-00A0C908DBAA">
- </object>
- <object id="PopMenu" classid="clsid:7823A620-9DD9-11CF-A662-00AA00C066D2" codebase="http://themesrv/DesktopNews/iemenu.ocx#Version=4,70,0,1116">
- </object>
- <object id="CatSelector" classid="clsid:BEAADBC0-E570-11CF-A9AD-00AA00B92C4D"
- width=222 height=18>
- </object>
- <object id="DownArrow" classid="clsid:BEAADBC0-E570-11CF-A9AD-00AA00B92C4D"
- width=18 height=18>
- </object>
- </body>
-
- <script language="VBScript">
- Option Explicit
- Dim bTimerActive
-
- Dim PageCount
- ReDim NameArray(1)
- ReDim PageArray(1)
- ReDim WebViewRegFlag(1)
- ReDim WebViewRegKey(1)
- ReDim SubkeyArray(1)
-
- Sub Window_OnLoad()
- Dim Result
-
- bTimerActive = 0
-
- SetColors(CatSelector)
- Result = CatSelector.ChangeFont(14, "Arial")
- Result = CatSelector.AddButton("...")
-
- SetColors(DownArrow)
- Result = DownArrow.AddGraphButton( 16, 16, "0000000000000000000000001FF80FF007E003C0018000000000000000000000")
-
- InfoHelp.InfoviewName="Microsoft Catalog"
- Call GetRegInfo("<%WinShell.RegKeyName%>")
-
- If PageCount > 0 Then
- Result = CatSelector.ChangeButton(0,NameArray(1))
- parent.view.location.href=(PageArray(1))
- End If
- End Sub
-
- Sub PopMenu_Click( ByVal x )
- Dim Result
- Result = CatSelector.ChangeButton(0,NameArray(X))
- parent.view.location.href = PageArray(x)
- End Sub
-
- Sub CatSelector_Click( Dummy )
- Dim Result
- Result = PopMenu.PopUp(1,18)
- End Sub
-
- Sub DownArrow_Click( Dummy )
- Dim Result
- Result = PopMenu.PopUp(108,18)
- End Sub
-
- Sub GetRegInfo( ByVal Subkey )
- Dim Result, Index, Path
-
- PageCount = InfoHelp.GetWebViewInfo(Subkey + "\Content")
- If PageCount = 0 Then
- Subkey = "*"
- PageCount = InfoHelp.GetWebViewInfo(Subkey + "\Content")
- End If
-
- If PageCount = 0 Then
- Alert("ERROR: Subkey " + Subkey + " doesn't exist")
- Else
- ReDim NameArray(PageCount)
- ReDim PageArray(PageCount)
- ReDim SubkeyArray(PageCount)
-
- WebViewRegFlag = InfoHelp.OutputArray
- WebViewRegKey = InfoHelp.OutputArray
-
- For Index = 0 To PageCount-1
- If (CStr(WebViewRegFlag(Index))) = 3 Then ' 3 means it's a subkey
- SubkeyArray(Index) = WebViewRegKey(Index)
- End If
- Next
- For Index = 0 To PageCount-1
- Path = Subkey + "\Content\" + SubkeyArray(Index) + "\"
- Result = InfoHelp.GetWebViewInfo(Path)
- If Result <> 1 Then
- Alert("ERROR: Couldn't find friendly name for " + SubkeyArray(Index))
- Else
- WebViewRegFlag = InfoHelp.OutputArray
- WebViewRegKey = InfoHelp.OutputArray
- NameArray(Index+1) = WebViewRegKey(0)
- PopMenu.AddItem(WebViewRegKey(0))
- End If
- Next
- For Index = 0 To PageCount-1
- Path = Subkey + "\Content\" + SubKeyArray(Index) + "\Content_HTML"
- Result = InfoHelp.GetWebViewInfo(Path)
- If Result <> 1 Then
- Alert("ERROR: Couldn't find URL for " + SubkeyArray(Index))
- Else
- WebViewRegFlag = InfoHelp.OutputArray
- WebViewRegKey = InfoHelp.OutputArray
- PageArray(Index+1) = WebViewRegKey(0)
- End If
- Next
- End If
- End Sub
-
- Sub SetColors( Button )
- Button.BordColor = "#000000"
- Button.BackColor = "#669999"
- Button.ForeColor = "#000000"
- Button.BackHighColor = "#006666"
- Button.ForeHighColor = "#FFFFFF"
- Button.BackClickColor = "#000000"
- Button.ForeClickColor = "#FFFFFF"
- End Sub
- </script>
- </html>
-
-