git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43098
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
virtual ~MyFrame();
// event handlers (these functions should _not_ be virtual)
virtual ~MyFrame();
// event handlers (these functions should _not_ be virtual)
void OnLoad(wxCommandEvent& event);
void OnUnload(wxCommandEvent& event);
void OnLoad(wxCommandEvent& event);
void OnUnload(wxCommandEvent& event);
+#endif // wxUSE_DYNLIB_CLASS
void OnQuit(wxCommandEvent& event);
void OnAbout(wxCommandEvent& event);
void OnQuit(wxCommandEvent& event);
void OnAbout(wxCommandEvent& event);
Render_Load = 100,
Render_Unload,
Render_Load = 100,
Render_Unload,
+#endif // wxUSE_DYNLIB_CLASS
// standard menu items
Render_Quit = wxID_EXIT,
// standard menu items
Render_Quit = wxID_EXIT,
// handlers) which process them. It can be also done at run-time, but for the
// simple menu events like this the static method is much simpler.
BEGIN_EVENT_TABLE(MyFrame, wxFrame)
// handlers) which process them. It can be also done at run-time, but for the
// simple menu events like this the static method is much simpler.
BEGIN_EVENT_TABLE(MyFrame, wxFrame)
EVT_MENU(Render_Load, MyFrame::OnLoad)
EVT_MENU(Render_Unload,MyFrame::OnUnload)
EVT_MENU(Render_Load, MyFrame::OnLoad)
EVT_MENU(Render_Unload,MyFrame::OnUnload)
+#endif // wxUSE_DYNLIB_CLASS
EVT_MENU(Render_Quit, MyFrame::OnQuit)
EVT_MENU(Render_About, MyFrame::OnAbout)
EVT_MENU(Render_Quit, MyFrame::OnQuit)
EVT_MENU(Render_About, MyFrame::OnAbout)
#if wxUSE_MENUS
// create a menu bar
wxMenu *menuFile = new wxMenu;
#if wxUSE_MENUS
// create a menu bar
wxMenu *menuFile = new wxMenu;
menuFile->Append(Render_Load, _T("&Load renderer...\tCtrl-L"));
menuFile->Append(Render_Unload, _T("&Unload renderer\tCtrl-U"));
menuFile->Append(Render_Load, _T("&Load renderer...\tCtrl-L"));
menuFile->Append(Render_Unload, _T("&Unload renderer\tCtrl-U"));
+#endif // wxUSE_DYNLIB_CLASS
menuFile->Append(Render_Quit, _T("E&xit\tCtrl-Q"), _T("Quit this program"));
// the "About" item should be in the help menu
menuFile->Append(Render_Quit, _T("E&xit\tCtrl-Q"), _T("Quit this program"));
// the "About" item should be in the help menu
+#if wxUSE_DYNLIB_CLASS
+
void MyFrame::OnLoad(wxCommandEvent& WXUNUSED(event))
{
static wxString s_name = _T("renddll");
void MyFrame::OnLoad(wxCommandEvent& WXUNUSED(event))
{
static wxString s_name = _T("renddll");
+#endif // wxUSE_DYNLIB_CLASS
+
void MyFrame::OnQuit(wxCommandEvent& WXUNUSED(event))
{
// true is to force the frame to close
void MyFrame::OnQuit(wxCommandEvent& WXUNUSED(event))
{
// true is to force the frame to close