]>
git.saurik.com Git - wxWidgets.git/blob - samples/png/pngdemo.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxBitmap class
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
14 // Define a new application
15 class MyApp
: public wxApp
25 class MyFrame
: public wxFrame
29 MyFrame(wxFrame
*parent
, const wxString
& title
, const wxPoint
& pos
, const wxSize
& size
);
32 void OnActivate(bool) {}
33 void OnLoadFile(wxCommandEvent
& event
);
34 void OnSaveFile(wxCommandEvent
& event
);
35 void OnQuit(wxCommandEvent
& event
);
36 void OnAbout(wxCommandEvent
& event
);
40 // Define a new canvas which can receive some events
41 class MyCanvas
: public wxScrolledWindow
44 MyCanvas(wxWindow
*parent
, const wxPoint
& pos
, const wxSize
& size
);
47 void OnPaint(wxPaintEvent
& event
);
51 #define PNGDEMO_QUIT 100
52 #define PNGDEMO_ABOUT 101
53 #define PNGDEMO_LOAD_FILE 102
54 #define PNGDEMO_SAVE_FILE 103