X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bbf1f0e5cffb8c01696eb26e254857a61f017d70..8329fea8ad89a4df6c2f0441facdc5ad189473ea:/utils/nplugin/samples/simple/simple.cpp?ds=inline diff --git a/utils/nplugin/samples/simple/simple.cpp b/utils/nplugin/samples/simple/simple.cpp index 137e7b0585..3c46d88c8d 100644 --- a/utils/nplugin/samples/simple/simple.cpp +++ b/utils/nplugin/samples/simple/simple.cpp @@ -1,6 +1,6 @@ /* * File: simple.cpp - * Purpose: Minimal wxWindows plugin + * Purpose: Minimal wxWidgets plugin * Author: Julian Smart * Created: 1997 * Updated: @@ -32,7 +32,7 @@ // Define a new application type class MyApp: public wxPluginApp { public: - virtual wxFrame *OnInit(void); + virtual bool OnInit(void); virtual wxPluginFrame* OnNewInstance(const wxPluginData& data); }; @@ -70,9 +70,9 @@ IMPLEMENT_APP(MyApp) // 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