/*
* File: simple.cpp
- * Purpose: Minimal wxWindows plugin
+ * Purpose: Minimal wxWidgets plugin
* Author: Julian Smart
* Created: 1997
* Updated:
// Define a new application type
class MyApp: public wxPluginApp
{ public:
- virtual wxFrame *OnInit(void);
+ virtual bool OnInit(void);
virtual wxPluginFrame* OnNewInstance(const wxPluginData& data);
};
// No app initialisation necessary, and for a plugin there is no
// top frame.
-wxFrame *MyApp::OnInit(void)
+bool MyApp::OnInit(void)
{
- return NULL;
+ return TRUE;
}
// Called whenever a new plugin instance is called. We could check