bool OnInit();
};
-class MyCanvas : public wxScrolledWindow
-{
-public:
- MyCanvas(wxWindow *parent, const wxPoint& pos, const wxSize& size);
- void OnPaint(wxPaintEvent& event);
-
-private:
- DECLARE_EVENT_TABLE()
-};
-
// Define a new frame
class MyFrame : public wxFrame
{
void OnQuit(wxCommandEvent& event);
void OnPlay(wxCommandEvent& event);
+ void OnSetNullAnimation(wxCommandEvent& event);
+ void OnSetInactiveBitmap(wxCommandEvent& event);
+ void OnSetNoAutoResize(wxCommandEvent& event);
+ void OnSetBgColor(wxCommandEvent& event);
void OnStop(wxCommandEvent& event);
void OnUpdateUI(wxUpdateUIEvent& event);
void OnOpen(wxCommandEvent& event);
#endif // wxUSE_FILEDLG
- MyCanvas* GetCanvas() const { return m_canvas; }
wxAnimationCtrl* GetAnimationCtrl() const { return m_animationCtrl; }
protected:
- MyCanvas* m_canvas;
wxAnimationCtrl* m_animationCtrl;
private: