X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4a61305d364dcf229395fb223daec31e2d6efcb4..33ff77f695fa78cae844cc930e73c076639b8fe3:/wxPython/contrib/dllwidget/dllwidget_.i diff --git a/wxPython/contrib/dllwidget/dllwidget_.i b/wxPython/contrib/dllwidget/dllwidget_.i index 37aa1781db..e2e486942c 100644 --- a/wxPython/contrib/dllwidget/dllwidget_.i +++ b/wxPython/contrib/dllwidget/dllwidget_.i @@ -27,6 +27,13 @@ %extern windows.i %extern _defs.i +//---------------------------------------------------------------------- + +%{ + // Put some wx default wxChar* values into wxStrings. + static const wxString wxPyEmptyString(wxT("")); +%} + //--------------------------------------------------------------------------- /* @@ -82,8 +89,8 @@ class wxDllWidget : public wxPanel public: wxDllWidget(wxWindow *parent, wxWindowID id = -1, - const wxString& dllName = wxEmptyString, - const wxString& className = wxEmptyString, + const wxString& dllName = wxPyEmptyString, + const wxString& className = wxPyEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0); @@ -92,8 +99,8 @@ public: bool Ok(); - int SendCommand(int cmd, const wxString& param = wxEmptyString); - wxWindow* GetEmbeddedWindow(); + int SendCommand(int cmd, const wxString& param = wxPyEmptyString); + wxWindow* GetWidgetWindow(); static wxString GetDllExt(); };