X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/63ebec23f23420f49163f22ff3ba3955f6be0aa9..cc6dd35581586950ebcf7ef4493166001ec5a645:/src/os2/popupwin.cpp diff --git a/src/os2/popupwin.cpp b/src/os2/popupwin.cpp index adc25e8f9c..b96c22d2a5 100644 --- a/src/os2/popupwin.cpp +++ b/src/os2/popupwin.cpp @@ -6,7 +6,7 @@ // Created: 13.05.02 // RCS-ID: $Id$ // Copyright: (c) 2002 Dave Webster -// License: wxWindows license +// License: wxWindows licence /////////////////////////////////////////////////////////////////////////////// // ============================================================================ @@ -30,6 +30,8 @@ #include "wx/popupwin.h" +IMPLEMENT_DYNAMIC_CLASS(wxPopupWindow, wxWindow) + // ============================================================================ // implementation // ============================================================================ @@ -62,6 +64,14 @@ void wxPopupWindow::DoGetPosition( GetParent()->ClientToScreen(pnX, pnY); } // end of wxPopupWindow::DoGetPosition +WXHWND wxPopupWindow::OS2GetParent() const +{ + // we must be a child of the desktop to be able to extend beyond the parent + // window client area (like the comboboxes drop downs do) + // + return (WXHWND)HWND_DESKTOP; +} // end of wxPopupWindow::OS2GetParent + WXDWORD wxPopupWindow::OS2GetStyle( long lFlags , WXDWORD* dwExstyle @@ -74,3 +84,4 @@ WXDWORD wxPopupWindow::OS2GetStyle( return dwStyle; } // end of wxPopupWindow::OS2GetStyle +