*/
class NativeWMediaPlayer extends SWTOleNativeComponent implements INativeWMediaPlayer {
protected static Control createControl(Composite parent, Object[] parameters) {
OleFrame frame = new OleFrame(parent, SWT.NONE);
OleClientSite site;
try {
site = new OleClientSite(frame, SWT.NONE, "WMPlayer.OCX");
configureOleFrame(site, frame);
} catch(SWTException e) {
e.printStackTrace();
frame.dispose();
return null;
}
site.doVerb(OLE.OLEIVERB_INPLACEACTIVATE);
return frame;
}