X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0d598bae33dff0e48eebd569aa3d75e95e8d6947..b2447e8408982b9a2528a56ec00010458e70f4db:/src/os2/popupwin.cpp diff --git a/src/os2/popupwin.cpp b/src/os2/popupwin.cpp index 3592101960..faf26b0cf0 100644 --- a/src/os2/popupwin.cpp +++ b/src/os2/popupwin.cpp @@ -1,12 +1,12 @@ /////////////////////////////////////////////////////////////////////////////// -// Name: os2/popupwin.cpp +// Name: src/os2/popupwin.cpp // Purpose: implements wxPopupWindow for OS2 // Author: Dave Webster // Modified by: // Created: 13.05.02 // RCS-ID: $Id$ // Copyright: (c) 2002 Dave Webster -// License: wxWindows licence +// Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// // ============================================================================ @@ -17,10 +17,6 @@ // headers // ---------------------------------------------------------------------------- -#ifdef __GNUG__ - #pragma implementation "popup.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -28,16 +24,15 @@ #ifndef WX_PRECOMP #endif //WX_PRECOMP +#if wxUSE_POPUPWIN #include "wx/popupwin.h" // ============================================================================ // implementation // ============================================================================ -bool wxPopupWindow::Create( - wxWindow* pParent -, int nFlags -) +bool wxPopupWindow::Create( wxWindow* pParent, + int nFlags ) { return wxPopupWindowBase::Create(pParent) && wxWindow::Create( pParent @@ -48,10 +43,8 @@ bool wxPopupWindow::Create( ); } // end of wxPopupWindow::Create -void wxPopupWindow::DoGetPosition( - int* pnX -, int* pnY -) const +void wxPopupWindow::DoGetPosition( int* pnX, + int* pnY ) const { // // The position of a "top level" window such as this should be in @@ -70,16 +63,13 @@ WXHWND wxPopupWindow::OS2GetParent() const return (WXHWND)HWND_DESKTOP; } // end of wxPopupWindow::OS2GetParent -WXDWORD wxPopupWindow::OS2GetStyle( - long lFlags -, WXDWORD* dwExstyle -) const +WXDWORD wxPopupWindow::OS2GetStyle( long lFlags, + WXDWORD* dwExstyle ) const { - WXDWORD dwStyle = wxWindow::OS2GetStyle( lFlags & wxBORDER_MASK - ,dwExstyle - ); + WXDWORD dwStyle = wxWindow::OS2GetStyle( lFlags & wxBORDER_MASK + ,dwExstyle + ); return dwStyle; } // end of wxPopupWindow::OS2GetStyle - - +#endif