]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/moviectrl.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/msw/moviectrl.h
3 // Purpose: DirectX7+ wxMovieCtrl MSW
4 // Author: Ryan Norton <wxprojects@comcast.net>
8 // Copyright: (c) Ryan Norton
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
16 #include "wx/datetime.h"
25 class wxMovieCtrl
: public wxControl
31 wxMovieCtrl(wxWindow
* parent
, wxWindowID id
, const wxString
& fileName
, const wxString
& label
= wxT(""),
32 const wxPoint
& pos
= wxDefaultPosition
, const wxSize
& size
= wxDefaultSize
,
33 long style
= 0, const wxString
& name
= wxPanelNameStr
)
34 { Create(parent
, id
, fileName
, label
, pos
, size
, style
, name
); }
38 bool Create(wxWindow
* parent
, wxWindowID id
, const wxString
& fileName
, const wxString
& label
= wxT(""),
39 const wxPoint
& pos
= wxDefaultPosition
, const wxSize
& size
= wxDefaultSize
,
40 long style
= 0, const wxString
& name
= wxPanelNameStr
);
46 wxMovieCtrlState
GetState();
49 bool Seek(const wxTimeSpan
& where
);
52 virtual void SetLabel(const wxString
& label
);
55 void OnSize(wxSizeEvent
& evt
);
56 wxSize
DoGetBestSize() const;
58 // void OnActivate(wxActivateEvent& evt);
60 //msw-specific - we need to overload the window proc
61 // WXLRESULT MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam);
73 DECLARE_DYNAMIC_CLASS(wxMovieCtrl
);
77 #endif // wxUSE_MOVIECTRL