X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ff65119eb257c86337573af44ef1094dfe28b08e..42f8298f6f42d5d63bb3caf65682b7d9d9f8b702:/wxPython/contrib/dllwidget/dllwidget.h diff --git a/wxPython/contrib/dllwidget/dllwidget.h b/wxPython/contrib/dllwidget/dllwidget.h index 61263da614..5e15f935d4 100644 --- a/wxPython/contrib/dllwidget/dllwidget.h +++ b/wxPython/contrib/dllwidget/dllwidget.h @@ -41,7 +41,7 @@ Example of use: { public: MyWindow(wxWindow *parent, long style) - : wxWindow(parent, -1) {} + : wxWindow(parent, wxID_ANY) {} int HandleCommand(int cmd, const wxString& param) { @@ -75,7 +75,7 @@ class wxDllWidget : public wxPanel { public: wxDllWidget(wxWindow *parent, - wxWindowID id = -1, + wxWindowID id = wxID_ANY, const wxString& dllName = wxEmptyString, const wxString& className = wxEmptyString, const wxPoint& pos = wxDefaultPosition, @@ -132,12 +132,12 @@ private: { \ *classInst = new widget(parent, style); \ *cmdFunc = SendCommandTo##widget; \ - return TRUE; \ + return true; \ } #define END_WIDGET_LIBRARY() \ - return FALSE; \ + return false; \ } #endif // __DLLWIDGET_H__