]>
git.saurik.com Git - wxWidgets.git/blob - src/os2/popupwin.cpp
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: os2/popupwin.cpp
3 // Purpose: implements wxPopupWindow for OS2
4 // Author: Dave Webster
8 // Copyright: (c) 2002 Dave Webster <dwebster@bhmi.com>
9 // License: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
12 // ============================================================================
14 // ============================================================================
16 // ----------------------------------------------------------------------------
18 // ----------------------------------------------------------------------------
21 #pragma implementation "popup.h"
24 // For compilers that support precompilation, includes "wx.h".
25 #include "wx/wxprec.h"
31 #include "wx/popupwin.h"
33 // ============================================================================
35 // ============================================================================
37 bool wxPopupWindow::Create(
42 return wxPopupWindowBase::Create(pParent
) &&
43 wxWindow::Create( pParent
47 ,nFlags
| wxPOPUP_WINDOW
49 } // end of wxPopupWindow::Create
51 void wxPopupWindow::DoGetPosition(
57 // The position of a "top level" window such as this should be in
58 // screen coordinates, not in the client ones which MSW gives us
59 // (because we are a child window)
61 wxPopupWindowBase::DoGetPosition(pnX
, pnY
);
62 GetParent()->ClientToScreen(pnX
, pnY
);
63 } // end of wxPopupWindow::DoGetPosition
65 WXHWND
wxPopupWindow::OS2GetParent() const
67 // we must be a child of the desktop to be able to extend beyond the parent
68 // window client area (like the comboboxes drop downs do)
70 return (WXHWND
)HWND_DESKTOP
;
71 } // end of wxPopupWindow::OS2GetParent
73 WXDWORD
wxPopupWindow::OS2GetStyle(
78 WXDWORD dwStyle
= wxWindow::OS2GetStyle( lFlags
& wxBORDER_MASK
83 } // end of wxPopupWindow::OS2GetStyle