X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/89e7a223c2771879a05a6168d740207a4cc5fe3e..da2b4b7a57f816723ed26dbbeca0549b9ce6735a:/src/common/popupcmn.cpp diff --git a/src/common/popupcmn.cpp b/src/common/popupcmn.cpp index 5a4d032d16..581d20333d 100644 --- a/src/common/popupcmn.cpp +++ b/src/common/popupcmn.cpp @@ -147,11 +147,11 @@ void wxPopupTransientWindow::Init() m_focus = (wxWindow *)NULL; } -wxPopupTransientWindow::wxPopupTransientWindow(wxWindow *parent) +wxPopupTransientWindow::wxPopupTransientWindow(wxWindow *parent, int style) { Init(); - (void)Create(parent); + (void)Create(parent, style); } wxPopupTransientWindow::~wxPopupTransientWindow() @@ -229,7 +229,7 @@ bool wxPopupTransientWindow::ProcessLeftDown(wxMouseEvent& WXUNUSED(event)) return FALSE; } -#if wxUSE_COMBOBOX +#if wxUSE_COMBOBOX && defined(__WXUNIVERSAL__) // ---------------------------------------------------------------------------- // wxPopupComboWindow @@ -272,7 +272,7 @@ void wxPopupComboWindow::OnDismiss() m_combo->OnDismiss(); } -#endif // wxUSE_COMBOBOX +#endif // wxUSE_COMBOBOX && defined(__WXUNIVERSAL__) // ---------------------------------------------------------------------------- // wxPopupWindowHandler @@ -300,6 +300,7 @@ void wxPopupWindowHandler::OnLeftDown(wxMouseEvent& event) m_popup->DismissAndNotify(); break; +#ifdef __WXUNIVERSAL__ case wxHT_WINDOW_HORZ_SCROLLBAR: sbar = win->GetScrollbar(wxHORIZONTAL); break; @@ -307,6 +308,7 @@ void wxPopupWindowHandler::OnLeftDown(wxMouseEvent& event) case wxHT_WINDOW_VERT_SCROLLBAR: sbar = win->GetScrollbar(wxVERTICAL); break; +#endif default: // forgot to update the switch after adding a new hit test code?