create an instance of each, and call each OnInit function. On exit, wxWindows will call the OnExit
function for each module instance.
+Note that your module class does not have to be in a header file.
+
+For example:
+
+\begin{verbatim}
+ // A module to allow DDE initialization/cleanup
+ // without calling these functions from app.cpp or from
+ // the user's application.
+
+ class wxDDEModule: public wxModule
+ {
+ DECLARE_DYNAMIC_CLASS(wxDDEModule)
+ public:
+ wxDDEModule() {}
+ bool OnInit() { wxDDEInitialize(); return true; };
+ void OnExit() { wxDDECleanUp(); };
+ };
+
+ IMPLEMENT_DYNAMIC_CLASS(wxDDEModule, wxModule)
+\end{verbatim}
+
\wxheading{Derived from}
\helpref{wxObject}{wxobject}
+\wxheading{Include files}
+
+<wx/module.h>
+
\latexignore{\rtfignore{\wxheading{Members}}}
\membersection{wxModule::wxModule}\label{wxmoduleconstr}
\func{virtual bool}{OnInit}{\void}
Provide this function with appropriate initialization for your module. If the function
-returns FALSE, wxWindows will exit immediately.
+returns false, wxWindows will exit immediately.
\membersection{wxModule::RegisterModule}\label{wxmoduleregistermodule}