/////////////////////////////////////////////////////////////////////////////
#if defined(__GNUG__) && !defined(__APPLE__)
-#pragma implementation "dynamic.cpp"
-#pragma interface "dynamic.cpp"
+#pragma implementation
+#pragma interface
#endif
// For compilers that support precompilation, includes "wx/wx.h".
};
// ID for the menu commands
-#define DYNAMIC_QUIT 1
+#define DYNAMIC_QUIT wxID_EXIT
#define DYNAMIC_TEXT 101
-#define DYNAMIC_ABOUT 102
+#define DYNAMIC_ABOUT wxID_ABOUT
// Create a new application object
IMPLEMENT_APP (MyApp)
MyFrame *frame = new MyFrame(NULL, _T("Dynamic wxWidgets App"), 50, 50, 450, 340);
// You used to have to do some casting for param 4, but now there are type-safe handlers
- frame->Connect( DYNAMIC_QUIT, wxID_ANY,
+ frame->Connect( DYNAMIC_QUIT, wxID_ANY,
wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(MyFrame::OnQuit) );
- frame->Connect( DYNAMIC_ABOUT, wxID_ANY,
+ frame->Connect( DYNAMIC_ABOUT, wxID_ANY,
wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(MyFrame::OnAbout) );
// Give it an icon