CreateMovieControl change for wxMediaCtrl on OSX 10.2 and up

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31721 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Ryan Norton
2005-02-03 11:11:36 +00:00
parent 3aa79a0117
commit 3b5023b99a
3 changed files with 118 additions and 31 deletions

View File

@@ -190,6 +190,9 @@ protected:
virtual void DoMoveWindow(int x, int y, int w, int h);
wxSize DoGetBestSize() const;
#ifdef __WXMAC__
friend class wxMediaBackend;
#endif
class wxMediaBackend* m_imp;
bool m_bLoaded;
bool m_bLoop;
@@ -256,6 +259,11 @@ public:
virtual wxMediaState GetState()
{ return wxMEDIASTATE_STOPPED; }
#ifdef __WXMAC__
wxMacControl* GetControlPeer(wxControl* ctrl)
{ return ((wxMediaCtrl*)ctrl)->m_peer; }
#endif
DECLARE_CLASS(wxMediaBackend)
};