]> git.saurik.com Git - wxWidgets.git/blame - samples/nativdlg/nativdlg.h
Add test for wxChoice's focus events. (no fix yet).
[wxWidgets.git] / samples / nativdlg / nativdlg.h
CommitLineData
bbf1f0e5
KB
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$
6aa89a22 8// Copyright: (c) Julian Smart
2f6c54eb 9// Licence: wxWindows license
bbf1f0e5
KB
10/////////////////////////////////////////////////////////////////////////////
11
12#ifdef __GNUG__
13#pragma interface
14#endif
15
16// Define a new application
17class MyApp: public wxApp
18{
19 public:
925e9792 20 MyApp(void){};
bbf1f0e5
KB
21 bool OnInit(void);
22};
23
24class MyFrame: public wxFrame
25{
26 public:
27 wxWindow *panel;
28 MyFrame(wxWindow *parent, const wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size);
bbf1f0e5
KB
29 void OnQuit(wxCommandEvent& event);
30 void OnTest1(wxCommandEvent& event);
31
32 DECLARE_EVENT_TABLE()
33};
34
35class MyDialog : public wxDialog
36{
37 public:
38 void OnOk(wxCommandEvent& event);
39 void OnCancel(wxCommandEvent& event);
40
41 DECLARE_EVENT_TABLE()
42};
43
44#define RESOURCE_QUIT 4
45#define RESOURCE_TEST1 2
46