代码拉取完成,页面将自动刷新
//Example 9-8. An example program which takes a single argument
//indicating a video file; that video file will be replayed inside of a wxWidgets object that
//we will define, called WxMoviePlayer
//
#include "wx/wx.h"
#include "WxMoviePlayer.hpp"
// Application class, the top level object in wxWidgets
//
class MyApp : public wxApp {
public:
virtual bool OnInit();
};
// Behind the scenes stuff to create a main() function and attach MyApp
//
DECLARE_APP( MyApp );
IMPLEMENT_APP( MyApp );
// When MyApp is initialized, do these things.
//
bool MyApp::OnInit() {
wxFrame* frame = new wxFrame( NULL, wxID_ANY, wxT("ch4_wx") );
frame->Show( true );
WxMoviePlayer* mp = new WxMoviePlayer(
frame,
wxPoint( -1, -1 ),
wxSize( 640, 480 )
);
mp->open( wxString(argv[1]) );
mp->Show( true );
return true;
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。