~brian-sidebotham/wxwidgets-cmake/wxpython-2.9.4

« back to all changes in this revision

Viewing changes to samples/nativdlg/nativdlg.h

  • Committer: Brian Sidebotham
  • Date: 2013-08-03 14:30:08 UTC
  • Revision ID: brian.sidebotham@gmail.com-20130803143008-c7806tkych1tp6fc
Initial import into Bazaar

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/////////////////////////////////////////////////////////////////////////////
 
2
// Name:        nativdlg.h
 
3
// Purpose:     Native Windows dialog sample
 
4
// Author:      Julian Smart
 
5
// Modified by:
 
6
// Created:     04/01/98
 
7
// RCS-ID:      $Id: nativdlg.h 64940 2010-07-13 13:29:13Z VZ $
 
8
// Copyright:   (c) Julian Smart
 
9
// Licence:     wxWindows licence
 
10
/////////////////////////////////////////////////////////////////////////////
 
11
 
 
12
// Define a new application
 
13
class MyApp: public wxApp
 
14
{
 
15
  public:
 
16
    MyApp(void){};
 
17
    bool OnInit(void);
 
18
};
 
19
 
 
20
class MyFrame: public wxFrame
 
21
{
 
22
  public:
 
23
    wxWindow *panel;
 
24
    MyFrame(wxWindow *parent, const wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size);
 
25
    void OnQuit(wxCommandEvent& event);
 
26
    void OnTest1(wxCommandEvent& event);
 
27
 
 
28
 DECLARE_EVENT_TABLE()
 
29
};
 
30
 
 
31
class MyDialog : public wxDialog
 
32
{
 
33
  public:
 
34
    void OnOk(wxCommandEvent& event);
 
35
    void OnCancel(wxCommandEvent& event);
 
36
 
 
37
 DECLARE_EVENT_TABLE()
 
38
};
 
39
 
 
40
#define RESOURCE_QUIT       4
 
41
#define RESOURCE_TEST1      2
 
42