]>
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 and Markus Holzem
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
18 // Define a new application
19 class MyApp
: public wxApp
29 class MyFrame
: public wxFrame
33 MyFrame(wxFrame
*parent
, const wxString
& title
, const wxPoint
& pos
, const wxSize
& size
);
35 void OnActivate(bool) {}
36 void OnLoadFile(wxCommandEvent
& event
);
37 void OnSaveFile(wxCommandEvent
& event
);
38 void OnQuit(wxCommandEvent
& event
);
39 void OnAbout(wxCommandEvent
& event
);
43 // Define a new canvas which can receive some events
44 class MyCanvas
: public wxScrolledWindow
47 MyCanvas(wxWindow
*parent
, const wxPoint
& pos
, const wxSize
& size
);
50 void OnPaint(wxPaintEvent
& event
);
54 #define PNGDEMO_QUIT 100
55 #define PNGDEMO_ABOUT 101
56 #define PNGDEMO_LOAD_FILE 102
57 #define PNGDEMO_SAVE_FILE 103