MPLATFORMLib Namespace > MPlaylistClass Class : PreviewWindowSet Method |
Public Overridable Sub PreviewWindowSet( _ ByVal _bsChannelID As String, _ ByVal _hWndParent As Long _ )
public virtual void PreviewWindowSet( string _bsChannelID, long _hWndParent )
public procedure PreviewWindowSet( _bsChannelID: String; _hWndParent: Int64 ); virtual;
public: virtual void PreviewWindowSet( BSTR* _bsChannelID, long _hWndParent )
Here is playlist initialization example:
Dim m_objPlaylist As MPlaylistClass = New PlaylistClass() m_objPlaylist.PreviewWindowSet("", panelPreview.Handle.ToInt32()) m_objPlaylist.PreviewEnable("", 1, 1) m_objPlaylist.ObjectStart(New Object())
MPlaylistClass m_objPlaylist = new PlaylistClass(); m_objPlaylist.PreviewWindowSet("", panelPreview.Handle.ToInt32()); m_objPlaylist.PreviewEnable("", 1, 1); m_objPlaylist.ObjectStart(new object());
var myPlaylist: IMPlaylist; myPreview: IMPreview; m_objEvents: TEvents; myObject: IMObject; cookie: LONG_PTR; begin myPlaylist:= CreateComObject(CLASS_MPlaylist) as IMPlaylist; myObject:= myPlaylist as IMObject; myPreview:= myPlaylist as IMPreview; m_objEvents:= TEvents.Create(); myObject.ObjectCallbackSet(m_objEvents, cookie); myPreview.PreviewWindowSet('', panelPreview.Handle); myPreviewEnable('', 1, 1); end;