PreviewWindowSet Method (MFileClass)
channel ID. Reserved for future use. Use empty string (that is "") instead of this parameter.
handle of the window
Sets the parent window for preview.
Syntax
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
) 

Parameters

_bsChannelID
channel ID. Reserved for future use. Use empty string (that is "") instead of this parameter.
_hWndParent
handle of the window
Example

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;
See Also

Reference

MFileClass Class
MFileClass Members