Multiple fixes for OS/2 including getting rid of the C++ unfriendly direct.h and substituting control program io. Various GUI fixes, too.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7044 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -36,8 +36,6 @@
|
||||
|
||||
#ifdef __EMX__
|
||||
#include <dirent.h>
|
||||
#else
|
||||
#include <direct.h>
|
||||
#endif
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
@@ -350,21 +350,6 @@ void wxFrame::DoShowWindow(
|
||||
int bShowCmd
|
||||
)
|
||||
{
|
||||
HWND hClient = NULLHANDLE;
|
||||
SWP vSwp;
|
||||
|
||||
//
|
||||
// Reset the window position
|
||||
//
|
||||
WinQueryWindowPos(m_hFrame, &vSwp);
|
||||
WinSetWindowPos( GetHwnd()
|
||||
,HWND_TOP
|
||||
,vSwp.x
|
||||
,vSwp.y
|
||||
,vSwp.cx
|
||||
,vSwp.cy
|
||||
,SWP_SIZE | SWP_MOVE | SWP_ACTIVATE
|
||||
);
|
||||
::WinShowWindow(m_hFrame, (BOOL)bShowCmd);
|
||||
::WinShowWindow(GetHwnd(), (BOOL)bShowCmd);
|
||||
} // end of wxFrame::DoShowWindow
|
||||
@@ -602,27 +587,6 @@ void wxFrame::SetMenuBar(
|
||||
|
||||
m_frameMenuBar = pMenuBar;
|
||||
pMenuBar->Attach(this);
|
||||
|
||||
//
|
||||
// Now resize the client to fit the new frame
|
||||
//
|
||||
WinQueryWindowPos(m_hFrame, &vSwp);
|
||||
hTitlebar = WinWindowFromID(m_hFrame, FID_TITLEBAR);
|
||||
WinQueryWindowPos(hTitlebar, &vSwpTitlebar);
|
||||
hHScroll = WinWindowFromID(m_hFrame, FID_HORZSCROLL);
|
||||
WinQueryWindowPos(hHScroll, &vSwpHScroll);
|
||||
hVScroll = WinWindowFromID(m_hFrame, FID_VERTSCROLL);
|
||||
WinQueryWindowPos(hVScroll, &vSwpVScroll);
|
||||
hMenuBar = WinWindowFromID(m_hFrame, FID_MENU);
|
||||
WinQueryWindowPos(hMenuBar, &vSwpMenu);
|
||||
WinSetWindowPos( GetHwnd()
|
||||
,HWND_TOP
|
||||
,SV_CXSIZEBORDER/2
|
||||
,(SV_CYSIZEBORDER/2) + vSwpHScroll.cy/2
|
||||
,vSwp.cx - ((SV_CXSIZEBORDER + 1) + vSwpVScroll.cx)
|
||||
,vSwp.cy - ((SV_CYSIZEBORDER + 1) + vSwpTitlebar.cy + vSwpMenu.cy + vSwpHScroll.cy/2)
|
||||
,SWP_SIZE | SWP_MOVE
|
||||
);
|
||||
} // end of wxFrame::SetMenuBar
|
||||
|
||||
void wxFrame::InternalSetMenuBar()
|
||||
@@ -934,18 +898,6 @@ bool wxFrame::OS2Create(
|
||||
memcpy(&m_vSwpTitleBar, &vSwp[i], sizeof(SWP));
|
||||
}
|
||||
|
||||
//
|
||||
// Now set the size of the client
|
||||
//
|
||||
WinSetWindowPos( hClient
|
||||
,HWND_TOP
|
||||
,SV_CXSIZEBORDER/2
|
||||
,(SV_CYSIZEBORDER/2) + m_vSwpHScroll.cy/2
|
||||
,m_vSwp.cx - ((SV_CXSIZEBORDER + 1) + m_vSwpVScroll.cx)
|
||||
,m_vSwp.cy - ((SV_CYSIZEBORDER + 1) + m_vSwpTitleBar.cy + m_vSwpHScroll.cy/2)
|
||||
,SWP_SIZE | SWP_MOVE
|
||||
);
|
||||
|
||||
//
|
||||
// Set the client window's background, otherwise it is transparent!
|
||||
//
|
||||
@@ -1195,6 +1147,13 @@ bool wxFrame::HandlePaint()
|
||||
}
|
||||
else
|
||||
{
|
||||
HPS hPS;
|
||||
RECTL vRect;
|
||||
|
||||
hPS = WinBeginPaint(GetHwnd(), 0L, &vRect);
|
||||
WinFillRect(hPS, &vRect, SYSCLR_WINDOW);
|
||||
WinEndPaint(hPS);
|
||||
|
||||
return wxWindow::HandlePaint();
|
||||
}
|
||||
}
|
||||
|
@@ -990,15 +990,15 @@ $(WXDIR)\lib\wx.lib: \
|
||||
!else
|
||||
|
||||
# Update the dynamic link library
|
||||
$(WXDIR)\lib\wx214.dll: $(OBJECTS)
|
||||
$(WXDIR)\lib\wx22.dll: $(OBJECTS)
|
||||
icc @<<
|
||||
/B" $(LINKFLAGS)" /Fe$@
|
||||
$(LIBS)
|
||||
$(DUMMYOBJ)
|
||||
$(OBJECTS)
|
||||
$(WXDIR)\lib\wx214.def
|
||||
$(WXDIR)\lib\wx22.def
|
||||
<<
|
||||
implib $(WXDIR)\lib\wx214.lib $(WXDIR)\lib\wx214.def
|
||||
implib $(WXDIR)\lib\wx22.lib $(WXDIR)\lib\wx22.def
|
||||
|
||||
!endif
|
||||
|
||||
@@ -1094,7 +1094,7 @@ clean: $(PERIPH_CLEAN_TARGET) clean_png clean_zlib clean_jpeg clean_xpm clean_t
|
||||
rd ..\os2\$D
|
||||
del $(LIBTARGET)
|
||||
!if "$(WXMAKINGDLL)" == "1"
|
||||
erase /N ..\..\lib\wx214.lib
|
||||
erase /N ..\..\lib\wx22.lib
|
||||
!endif
|
||||
|
||||
cleanall: clean
|
||||
|
@@ -26,8 +26,6 @@
|
||||
#include <ctype.h>
|
||||
#ifdef __EMX__
|
||||
#include <dirent.h>
|
||||
#else
|
||||
#include <direct.h>
|
||||
#endif
|
||||
|
||||
#include "wx/log.h"
|
||||
|
@@ -35,8 +35,6 @@
|
||||
#include <ctype.h>
|
||||
#ifdef __EMX__
|
||||
#include <dirent.h>
|
||||
#else
|
||||
#include <direct.h>
|
||||
#endif
|
||||
|
||||
#include <sys/stat.h>
|
||||
|
@@ -2797,8 +2797,6 @@ bool wxWindow::HandlePaint()
|
||||
{
|
||||
HRGN hRgn = NULLHANDLE;
|
||||
wxPaintEvent vEvent;
|
||||
HPS hPS;
|
||||
RECTL vRect;
|
||||
|
||||
if (::WinQueryUpdateRegion(GetHwnd(), hRgn) == RGN_NULL)
|
||||
{
|
||||
@@ -2807,10 +2805,6 @@ bool wxWindow::HandlePaint()
|
||||
}
|
||||
m_updateRegion = wxRegion(hRgn);
|
||||
|
||||
hPS = WinBeginPaint(GetHwnd(), 0L, &vRect);
|
||||
WinFillRect(hPS, &vRect, SYSCLR_WINDOW);
|
||||
WinEndPaint(hPS);
|
||||
|
||||
vEvent.SetEventObject(this);
|
||||
return (GetEventHandler()->ProcessEvent(vEvent));
|
||||
} // end of wxWindow::HandlePaint
|
||||
|
Reference in New Issue
Block a user