Encoder SDK and Property Shell Problem...
WMPTalk.com Forum Index WMPTalk.com
Discuss Windows Media Player
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web wmptalk.com
Encoder SDK and Property Shell Problem...

 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> SDK
Author Message
Bill N.
Guest





Posted: Thu Sep 30, 2004 10:05 pm    Post subject: Encoder SDK and Property Shell Problem... Reply with quote

Posted a message in Encoder Section but so far no hints as how to fix this
issue...

I'm using Visual Basic 6 - MSPropshell Tab displaying improperly when Second
WME file is loaded into it.

Have a WME Editing Program that I wrote that will load selected WME File,
allow the end-user to edit it, then allow saving WME Data.

Problem comes in when the second time through for the MSPropShell where the
First Tab shows nothing until you click on another tab in it and then click
on the First Tab.

This is a partial listing from the Subroutine that builds the MSPropShell...
"PageShell" is the name of the MSPropShell on my form.

All appropriate variables are initialized and defined properly.

This routine is used every time I load a WME File into the Property Shell
Pages.

Everything else works in my WME Editor Program except for the annoyance of
Blank on the first tab when the WME file is loaded on the second time and
after. I can't ask the end-user to exit the program and restart it every time.

---
..
..
..

' Clear Encoder Buffer
Encoder.Flush

' Load Selected WME File
Encoder.Load (ProcessFile)

On Error GoTo err_handler

' Remove All associated objects and pages so we don't end up with multiple
' sets of tabs
PageShell.RemoveAllObjects
PageShell.RemoveAllPages

' Create the Encoder Property Pages
Dim PpgSources As New WMEncSourcesAltPage
Dim PpgDesc As New WMEncDisplayInfoPage
Dim PpgAttr As New WMEncAttributesPage
Dim PpgEnc As New WMEncProfilePage
Dim PpgOutput As New WMEncOutputPage
Dim PpgVidSize As New WMEncVideoSizePage
Dim PpgProcessing As New WMEncProcessingPage
Dim PpgPlugins As New WMEncPluginsPage
Dim PpgSecurity As New WMEncDRMPage
Dim PpgAdvanced As New WMEncAdvancedPage

' Add the Encoder to the Page Shell
PageShell.AddObject Encoder

' Add the Encoder Property Pages to the Page Shell
PageShell.AddPage PpgSources
PageShell.AddPage PpgDesc
PageShell.AddPage PpgEnc
PageShell.AddPage PpgOutput
PageShell.AddPage PpgVidSize
PageShell.AddPage PpgProcessing
PageShell.AddPage PpgPlugins
PageShell.AddPage PpgSecurity
PageShell.AddPage PpgAdvanced

PageShell.Refresh

Exit Sub

err_handler:

MsgBox "Error adding encoder property pages"

..
..
..
---

I've noticed that the Windows Media Encoder 9 EXE doesn't have this problem
when you show the Property Shell Page and load multiple WME files.

Even went so far as to create a "New" MSPropShell using:

Dim PageShell1 As MSPropShell

Then setting the left, top, height, and width using the MSPropshell that is
on the form then making the one on the form not visible. Still have the same
issue.

Can anyone give me a hint on where to look to fix this?

Bill N.

Back to top
 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> SDK All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Microsoft Office Forum New Topics
Powered by phpBB