X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0568fd59ca381043065d745b7cbc03ad13eafa88..3a774635dc72055d9119440f76d1bdceedc3b42e:/include/wx/msw/moviectrl.h diff --git a/include/wx/msw/moviectrl.h b/include/wx/msw/moviectrl.h index b7498552a3..d1b1c1026d 100644 --- a/include/wx/msw/moviectrl.h +++ b/include/wx/msw/moviectrl.h @@ -26,12 +26,12 @@ enum wxMovieCtrlState class wxMovieCtrl : public wxControl { public: - wxMovieCtrl() + wxMovieCtrl() : m_bLoaded(false) { } wxMovieCtrl(wxWindow* parent, wxWindowID id, const wxString& fileName, const wxString& label = wxT(""), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, - long style = 0, const wxString& name = wxPanelNameStr) + long style = 0, const wxString& name = wxPanelNameStr) : m_bLoaded(false) { Create(parent, id, fileName, label, pos, size, style, name); } ~wxMovieCtrl(); @@ -43,6 +43,8 @@ public: bool Play(); bool Pause(); bool Stop(); + + bool Load(const wxString& fileName); wxMovieCtrlState GetState(); @@ -60,7 +62,10 @@ public: protected: void OnSize(wxSizeEvent& evt); wxSize DoGetBestSize() const; + void Cleanup(); + bool m_bVideo; + bool m_bLoaded; //msw-specific - we need to overload the window proc WXLRESULT MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam);