1998-05-20 10:21:00 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: nativdlg.h
|
|
|
|
// Purpose: Native Windows dialog sample
|
|
|
|
// Author: Julian Smart
|
|
|
|
// Modified by:
|
|
|
|
// Created: 04/01/98
|
2003-03-17 06:55:54 -05:00
|
|
|
// Copyright: (c) Julian Smart
|
2010-07-13 09:29:13 -04:00
|
|
|
// Licence: wxWindows licence
|
1998-05-20 10:21:00 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
// Define a new application
|
2020-10-20 18:57:42 -04:00
|
|
|
class MyApp : public wxApp
|
1998-05-20 10:21:00 -04:00
|
|
|
{
|
2020-10-20 18:57:42 -04:00
|
|
|
public:
|
|
|
|
MyApp(void) {}
|
2018-09-21 13:46:49 -04:00
|
|
|
bool OnInit(void) wxOVERRIDE;
|
1998-05-20 10:21:00 -04:00
|
|
|
};
|
|
|
|
|
2020-10-20 18:57:42 -04:00
|
|
|
class MyFrame : public wxFrame
|
1998-05-20 10:21:00 -04:00
|
|
|
{
|
2020-10-20 18:57:42 -04:00
|
|
|
public:
|
|
|
|
wxWindow* panel;
|
|
|
|
MyFrame(wxWindow* parent, const wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size);
|
1998-05-20 10:21:00 -04:00
|
|
|
void OnQuit(wxCommandEvent& event);
|
|
|
|
void OnTest1(wxCommandEvent& event);
|
|
|
|
|
2020-10-20 18:57:42 -04:00
|
|
|
wxDECLARE_EVENT_TABLE();
|
1998-05-20 10:21:00 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
class MyDialog : public wxDialog
|
|
|
|
{
|
2020-10-20 18:57:42 -04:00
|
|
|
public:
|
1998-05-20 10:21:00 -04:00
|
|
|
void OnOk(wxCommandEvent& event);
|
|
|
|
void OnCancel(wxCommandEvent& event);
|
|
|
|
|
2020-10-20 18:57:42 -04:00
|
|
|
wxDECLARE_EVENT_TABLE();
|
1998-05-20 10:21:00 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#define RESOURCE_QUIT 4
|
|
|
|
#define RESOURCE_TEST1 2
|
|
|
|
|