]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/popupwin.cpp
fix for [ 950550 ] wxChoice - wxEmptyString (wxChoice::FindString doesn't work with...
[wxWidgets.git] / src / msw / popupwin.cpp
index aa340cdc9f8ec9a81db917d6f08737fb6c02d94b..dcd2272474e8ed0f312bc21f9a8d8bfa9c42e5d0 100644 (file)
@@ -50,7 +50,7 @@ bool wxPopupWindow::Create(wxWindow *parent, int flags)
     Hide();
 
     return wxPopupWindowBase::Create(parent) &&
-               wxWindow::Create(parent, -1,
+               wxWindow::Create(parent, wxID_ANY,
                                 wxDefaultPosition, wxDefaultSize,
                                 flags | wxPOPUP_WINDOW);
 }
@@ -100,7 +100,7 @@ WXHWND wxPopupWindow::MSWGetParent() const
 bool wxPopupWindow::Show(bool show)
 {
     if ( !wxWindowMSW::Show(show) )
-        return FALSE;
+        return false;
 
     if ( show )
     {
@@ -111,7 +111,7 @@ bool wxPopupWindow::Show(bool show)
         }
     }
 
-    return TRUE;
+    return true;
 }
 
 #endif // #if wxUSE_POPUPWIN