Files
wxWidgets/src/os2/popupwin.cpp
Vadim Zeitlin 3f66f6a5b3 Remove all lines containing cvs/svn "$Id$" keyword.
This keyword is not expanded by Git which means it's not replaced with the
correct revision value in the releases made using git-based scripts and it's
confusing to have lines with unexpanded "$Id$" in the released files. As
expanding them with Git is not that simple (it could be done with git archive
and export-subst attribute) and there are not many benefits in having them in
the first place, just remove all these lines.

If nothing else, this will make an eventual transition to Git simpler.

Closes #14487.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74602 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-07-26 16:02:46 +00:00

75 lines
2.6 KiB
C++

///////////////////////////////////////////////////////////////////////////////
// Name: src/os2/popupwin.cpp
// Purpose: implements wxPopupWindow for OS2
// Author: Dave Webster
// Modified by:
// Created: 13.05.02
// Copyright: (c) 2002 Dave Webster <dwebster@bhmi.com>
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
// ============================================================================
// declarations
// ============================================================================
// ----------------------------------------------------------------------------
// headers
// ----------------------------------------------------------------------------
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
#ifndef WX_PRECOMP
#endif //WX_PRECOMP
#if wxUSE_POPUPWIN
#include "wx/popupwin.h"
// ============================================================================
// implementation
// ============================================================================
bool wxPopupWindow::Create( wxWindow* pParent,
int nFlags )
{
return wxPopupWindowBase::Create(pParent) &&
wxWindow::Create( pParent
,-1
,wxDefaultPosition
,wxDefaultSize
,nFlags | wxPOPUP_WINDOW
);
} // end of wxPopupWindow::Create
void wxPopupWindow::DoGetPosition( int* pnX,
int* pnY ) const
{
//
// The position of a "top level" window such as this should be in
// screen coordinates, not in the client ones which MSW gives us
// (because we are a child window)
//
wxPopupWindowBase::DoGetPosition(pnX, pnY);
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 ) const
{
WXDWORD dwStyle = wxWindow::OS2GetStyle( lFlags & wxBORDER_MASK
,dwExstyle
);
return dwStyle;
} // end of wxPopupWindow::OS2GetStyle
#endif