slightly cleaned up the sample code -- but it (still) really needs a rewrite

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17476 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2002-10-07 22:17:16 +00:00
parent e03cdae726
commit c280423d85
2 changed files with 54 additions and 98 deletions

View File

@@ -24,15 +24,10 @@ class MyWindow;
class MyFrame: public wxFrame
{
public:
wxPanel *panel;
MyTextWindow *text_window;
MyWindow *canvas;
MyFrame(wxFrame *frame, char *title, int x, int y, int w, int h);
void OnSize(wxSizeEvent& event);
void Draw(wxDC& dc, bool draw_bitmaps = TRUE);
MyFrame(wxFrame *frame, const char *title, int x, int y, int w, int h);
void OnQuit(wxCommandEvent& event);
void LoadFile(wxCommandEvent& event);
void Quit(wxCommandEvent& event);
void TestSizers(wxCommandEvent& event);
void TestNotebookSizers(wxCommandEvent& event);
void About(wxCommandEvent& event);
@@ -61,7 +56,7 @@ public:
~MyWindow();
void OnPaint(wxPaintEvent& event);
private:
private:
DECLARE_EVENT_TABLE()
};
@@ -75,6 +70,5 @@ public:
#define LAYOUT_QUIT 100
#define LAYOUT_TEST 101
#define LAYOUT_ABOUT 102
#define LAYOUT_LOAD_FILE 103
#define LAYOUT_TEST_SIZER 104
#define LAYOUT_TEST_NB 105