]> git.saurik.com Git - wxWidgets.git/blame - samples/nativdlg/nativdlg.h
Make wxGraphicsContext::GetSize() const.
[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
526954c5 9// Licence: wxWindows licence
bbf1f0e5
KB
10/////////////////////////////////////////////////////////////////////////////
11
bbf1f0e5
KB
12// Define a new application
13class MyApp: public wxApp
14{
15 public:
925e9792 16 MyApp(void){};
bbf1f0e5
KB
17 bool OnInit(void);
18};
19
20class 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);
bbf1f0e5
KB
25 void OnQuit(wxCommandEvent& event);
26 void OnTest1(wxCommandEvent& event);
27
28 DECLARE_EVENT_TABLE()
29};
30
31class 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