]>
git.saurik.com Git - wxWidgets.git/blob - src/os2/popupwin.cpp
b96c22d2a52ed26f348522bd4e9266a653708927
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 IMPLEMENT_DYNAMIC_CLASS(wxPopupWindow
, wxWindow
)
35 // ============================================================================
37 // ============================================================================
39 bool wxPopupWindow::Create(
44 return wxPopupWindowBase::Create(pParent
) &&
45 wxWindow::Create( pParent
49 ,nFlags
| wxPOPUP_WINDOW
51 } // end of wxPopupWindow::Create
53 void wxPopupWindow::DoGetPosition(
59 // The position of a "top level" window such as this should be in
60 // screen coordinates, not in the client ones which MSW gives us
61 // (because we are a child window)
63 wxPopupWindowBase::DoGetPosition(pnX
, pnY
);
64 GetParent()->ClientToScreen(pnX
, pnY
);
65 } // end of wxPopupWindow::DoGetPosition
67 WXHWND
wxPopupWindow::OS2GetParent() const
69 // we must be a child of the desktop to be able to extend beyond the parent
70 // window client area (like the comboboxes drop downs do)
72 return (WXHWND
)HWND_DESKTOP
;
73 } // end of wxPopupWindow::OS2GetParent
75 WXDWORD
wxPopupWindow::OS2GetStyle(
80 WXDWORD dwStyle
= wxWindow::OS2GetStyle( lFlags
& wxBORDER_MASK
85 } // end of wxPopupWindow::OS2GetStyle