Support for automatic setup.h in OS/2 with OW builds. __WXOS2__ final removal. Source cleaning.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36024 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: frame.cpp
|
||||
// Name: src/os2/frame.cpp
|
||||
// Purpose: wxFrame
|
||||
// Author: David Webster
|
||||
// Modified by:
|
||||
@@ -242,13 +242,8 @@ wxStatusBar* wxFrame::OnCreateStatusBar(
|
||||
,nHeight
|
||||
);
|
||||
|
||||
::WinSetParent( pStatusBar->GetHWND()
|
||||
,m_hFrame
|
||||
,FALSE
|
||||
);
|
||||
::WinSetOwner( pStatusBar->GetHWND()
|
||||
,m_hFrame
|
||||
);
|
||||
::WinSetParent( pStatusBar->GetHWND(), m_hFrame, FALSE );
|
||||
::WinSetOwner( pStatusBar->GetHWND(), m_hFrame);
|
||||
//
|
||||
// to show statusbar
|
||||
//
|
||||
@@ -310,24 +305,15 @@ void wxFrame::PositionStatusBar()
|
||||
#endif // wxUSE_STATUSBAR
|
||||
|
||||
#if wxUSE_TOOLBAR
|
||||
wxToolBar* wxFrame::OnCreateToolBar(
|
||||
long lStyle
|
||||
, wxWindowID vId
|
||||
, const wxString& rsName
|
||||
)
|
||||
wxToolBar* wxFrame::OnCreateToolBar( long lStyle, wxWindowID vId, const wxString& rsName )
|
||||
{
|
||||
wxToolBar* pToolBar = wxFrameBase::OnCreateToolBar( lStyle
|
||||
,vId
|
||||
,rsName
|
||||
);
|
||||
|
||||
::WinSetParent( pToolBar->GetHWND()
|
||||
,m_hFrame
|
||||
,FALSE
|
||||
);
|
||||
::WinSetOwner( pToolBar->GetHWND()
|
||||
,m_hFrame
|
||||
);
|
||||
::WinSetParent( pToolBar->GetHWND(), m_hFrame, FALSE);
|
||||
::WinSetOwner( pToolBar->GetHWND(), m_hFrame);
|
||||
return pToolBar;
|
||||
} // end of WinGuiBase_CFrame::OnCreateToolBar
|
||||
#endif
|
||||
@@ -875,17 +861,12 @@ bool wxFrame::HandlePaint()
|
||||
|
||||
::WinQueryWindowRect(GetHwnd(), &vRect3);
|
||||
|
||||
#if !(defined(__WATCOMC__) && __WATCOMC__ < 1240 )
|
||||
// Open Watcom 1.3 had incomplete headers
|
||||
// that's reported and should be fixed for OW 1.4
|
||||
|
||||
static const int nIconWidth = 32;
|
||||
static const int nIconHeight = 32;
|
||||
int nIconX = (int)((vRect3.xRight - nIconWidth)/2);
|
||||
int nIconY = (int)((vRect3.yBottom + nIconHeight)/2);
|
||||
|
||||
::WinDrawPointer(hPs, nIconX, nIconY, hIcon, DP_NORMAL);
|
||||
#endif
|
||||
}
|
||||
::WinEndPaint(hPs);
|
||||
}
|
||||
|
Reference in New Issue
Block a user