X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6aa89a22b8e47000c98bff05c6f545f331f1c353..6143d648c866ead1d9330c88359dca8a4f1a654a:/src/os2/popupwin.cpp diff --git a/src/os2/popupwin.cpp b/src/os2/popupwin.cpp index b96c22d2a5..346d6c87d4 100644 --- a/src/os2/popupwin.cpp +++ b/src/os2/popupwin.cpp @@ -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,18 +24,15 @@ #ifndef WX_PRECOMP #endif //WX_PRECOMP +#if wxUSE_POPUPWIN #include "wx/popupwin.h" -IMPLEMENT_DYNAMIC_CLASS(wxPopupWindow, wxWindow) - // ============================================================================ // implementation // ============================================================================ -bool wxPopupWindow::Create( - wxWindow* pParent -, int nFlags -) +bool wxPopupWindow::Create( wxWindow* pParent, + int nFlags ) { return wxPopupWindowBase::Create(pParent) && wxWindow::Create( pParent @@ -50,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 @@ -72,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