X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ff65119eb257c86337573af44ef1094dfe28b08e..89a3d0f77289fe8a39757bfc3bfe3704c009d224:/wxPython/contrib/dllwidget/dllwidget.h?ds=sidebyside diff --git a/wxPython/contrib/dllwidget/dllwidget.h b/wxPython/contrib/dllwidget/dllwidget.h index 61263da614..ec32e605b5 100644 --- a/wxPython/contrib/dllwidget/dllwidget.h +++ b/wxPython/contrib/dllwidget/dllwidget.h @@ -8,10 +8,6 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ -#pragma interface "dllwidget.h" -#endif - #ifndef __DLLWIDGET_H__ #define __DLLWIDGET_H__ @@ -41,7 +37,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 +71,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 +128,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__