// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
public:
MyFrame(wxFrame *frame, wxChar *title, int x, int y, int w, int h);
public:
MyFrame(wxFrame *frame, wxChar *title, int x, int y, int w, int h);
void OnQuit(wxCommandEvent& event);
void OnTest(wxCommandEvent& event);
void OnAbout(wxCommandEvent& event);
void OnQuit(wxCommandEvent& event);
void OnTest(wxCommandEvent& event);
void OnAbout(wxCommandEvent& event);
public:
MySecondFrame(wxFrame *frame, wxChar *title, int x, int y, int w, int h);
};
public:
MySecondFrame(wxFrame *frame, wxChar *title, int x, int y, int w, int h);
};
// Create the main frame window
MyFrame *frame = new MyFrame(NULL, _T("Dynamic wxWidgets App"), 50, 50, 450, 340);
// Show the frame
frame->Show(true);
// Create the main frame window
MyFrame *frame = new MyFrame(NULL, _T("Dynamic wxWidgets App"), 50, 50, 450, 340);
// Show the frame
frame->Show(true);
// Create the main frame window
MySecondFrame *frame2 = new MySecondFrame(NULL, _T("Dynamic wxWidgets App"), 150, 150, 450, 340);
// Create the main frame window
MySecondFrame *frame2 = new MySecondFrame(NULL, _T("Dynamic wxWidgets App"), 150, 150, 450, 340);
{
MyFrame *frame = (MyFrame*) window;
frame->SetStatusText( wxT("Hello from MyFrame"), 0 );
{
MyFrame *frame = (MyFrame*) window;
frame->SetStatusText( wxT("Hello from MyFrame"), 0 );
wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(MyFrame::OnTest) );
Connect( DYNAMIC_ABOUT, wxID_ANY,
wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(MyFrame::OnAbout) );
wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(MyFrame::OnTest) );
Connect( DYNAMIC_ABOUT, wxID_ANY,
wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(MyFrame::OnAbout) );
{
MySecondFrame *frame = (MySecondFrame*) window;
frame->SetStatusText( wxT("Hello from MySecondFrame"), 0 );
{
MySecondFrame *frame = (MySecondFrame*) window;
frame->SetStatusText( wxT("Hello from MySecondFrame"), 0 );