X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4a61305d364dcf229395fb223daec31e2d6efcb4..b483f5fed274a9152faab05b0ebb4e5f5158c506:/wxPython/contrib/dllwidget/dllwidget.h diff --git a/wxPython/contrib/dllwidget/dllwidget.h b/wxPython/contrib/dllwidget/dllwidget.h index daf209c82d..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, @@ -86,7 +82,7 @@ public: bool Ok() { return m_widget != NULL; } virtual int SendCommand(int cmd, const wxString& param = wxEmptyString); - virtual wxWindow* GetEmbeddedWindow() { return m_widget; } + virtual wxWindow* GetWidgetWindow() { return m_widget; } virtual void AddChild(wxWindowBase *child); @@ -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__