X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ff65119eb257c86337573af44ef1094dfe28b08e..0bd9eee2b27bf3d9936e4dfbd1277562455780e9:/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__