/*
* File: simple.cpp
- * Purpose: Minimal wxWindows plugin
+ * Purpose: Minimal wxWidgets plugin
* Author: Julian Smart
* Created: 1997
* Updated:
/* static const char sccsid[] = "%W% %G%"; */
-#ifdef __GNUG__
-#pragma implementation
-#pragma interface
-#endif
-
#include "wx/wxprec.h"
#ifdef __BORLANDC__
// 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