]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/contrib/dllwidget/dllwidget.h
warning fix
[wxWidgets.git] / wxPython / contrib / dllwidget / dllwidget.h
index 61263da61426fd87432d4370526d5dceba1771dd..5e15f935d44ccc44887986c7b54003422916de23 100644 (file)
@@ -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__