]>
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 license
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 WXDWORD
wxPopupWindow::OS2GetStyle(
70 WXDWORD dwStyle
= wxWindow::OS2GetStyle( lFlags
& wxBORDER_MASK
75 } // end of wxPopupWindow::OS2GetStyle