projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
SOCKLEN_T handling for OSX - it seems to be defined as a size_t, when the parameters...
[wxWidgets.git]
/
src
/
os2
/
frame.cpp
diff --git
a/src/os2/frame.cpp
b/src/os2/frame.cpp
index 96743fc97989fc92e1a7530cbbafcbd145d6573c..c0d17e3403f62ecbf5e423ef6ac54120a1af1360 100644
(file)
--- a/
src/os2/frame.cpp
+++ b/
src/os2/frame.cpp
@@
-173,15
+173,13
@@
void wxFrame::DoGetClientSize(
//
// Set the client size (i.e. leave the calculation of borders etc.
//
// Set the client size (i.e. leave the calculation of borders etc.
-// to wxWi
ndow
s)
+// to wxWi
dget
s)
//
void wxFrame::DoSetClientSize(
int nWidth
, int nHeight
)
{
//
void wxFrame::DoSetClientSize(
int nWidth
, int nHeight
)
{
- wxStatusBar* pStatusBar = GetStatusBar();
-
//
// Statusbars are not part of the OS/2 Client but parent frame
// so no statusbar consideration
//
// Statusbars are not part of the OS/2 Client but parent frame
// so no statusbar consideration
@@
-217,8
+215,6
@@
wxStatusBar* wxFrame::OnCreateStatusBar(
)
{
wxStatusBar* pStatusBar = NULL;
)
{
wxStatusBar* pStatusBar = NULL;
- SWP vSwp;
- ERRORID vError;
wxString sError;
pStatusBar = wxFrameBase::OnCreateStatusBar( nNumber
wxString sError;
pStatusBar = wxFrameBase::OnCreateStatusBar( nNumber
@@
-281,7
+277,6
@@
void wxFrame::PositionStatusBar()
int nY;
int nStatbarWidth;
int nStatbarHeight;
int nY;
int nStatbarWidth;
int nStatbarHeight;
- HWND hWndClient;
RECTL vRect;
RECTL vFRect;
RECTL vRect;
RECTL vFRect;
@@
-355,17
+350,7
@@
void wxFrame::SetMenuBar(
wxMenuBar* pMenuBar
)
{
wxMenuBar* pMenuBar
)
{
- ERRORID vError;
wxString sError;
wxString sError;
- HWND hTitlebar = NULLHANDLE;
- HWND hHScroll = NULLHANDLE;
- HWND hVScroll = NULLHANDLE;
- HWND hMenuBar = NULLHANDLE;
- SWP vSwp;
- SWP vSwpTitlebar;
- SWP vSwpVScroll;
- SWP vSwpHScroll;
- SWP vSwpMenu;
if (!pMenuBar)
{
if (!pMenuBar)
{
@@
-384,7
+369,7
@@
void wxFrame::SetMenuBar(
//
// Can set a menubar several times.
// TODO: how to prevent a memory leak if you have a currently-unattached
//
// Can set a menubar several times.
// TODO: how to prevent a memory leak if you have a currently-unattached
- // menubar? wxWi
ndow
s assumes that the frame will delete the menu (otherwise
+ // menubar? wxWi
dget
s assumes that the frame will delete the menu (otherwise
// there are problems for MDI).
//
if (pMenuBar->GetHMenu())
// there are problems for MDI).
//
if (pMenuBar->GetHMenu())
@@
-738,10
+723,8
@@
void wxFrame::PositionToolBar()
if (!pToolBar)
return;
if (!pToolBar)
return;
- HWND hWndClient;
RECTL vRect;
RECTL vFRect;
RECTL vRect;
RECTL vFRect;
- SWP vSwp;
wxPoint vPos;
::WinQueryWindowRect(m_hFrame, &vRect);
wxPoint vPos;
::WinQueryWindowRect(m_hFrame, &vRect);
@@
-798,6
+781,10
@@
void wxFrame::IconizeChildFrames(
bool bIconize
)
{
bool bIconize
)
{
+ // FIXME: Generic MDI does not use Frames for the Childs, so this does _not_
+ // work. Possibly, the right thing is simply to eliminate this
+ // functions and all the calls to it from within this file.
+#if 0
for (wxWindowList::Node* pNode = GetChildren().GetFirst();
pNode;
pNode = pNode->GetNext() )
for (wxWindowList::Node* pNode = GetChildren().GetFirst();
pNode;
pNode = pNode->GetNext() )
@@
-829,6
+816,7
@@
void wxFrame::IconizeChildFrames(
pFrame->Iconize(bIconize);
}
}
pFrame->Iconize(bIconize);
}
}
+#endif
} // end of wxFrame::IconizeChildFrames
WXHICON wxFrame::GetDefaultIcon() const
} // end of wxFrame::IconizeChildFrames
WXHICON wxFrame::GetDefaultIcon() const
@@
-899,7
+887,6
@@
bool wxFrame::HandlePaint()
if (hIcon)
{
if (hIcon)
{
- HWND hWndClient;
RECTL vRect3;
::WinQueryWindowRect(GetHwnd(), &vRect3);
RECTL vRect3;
::WinQueryWindowRect(GetHwnd(), &vRect3);
@@
-1227,7
+1214,6
@@
MRESULT EXPENTRY wxFrameWndProc(
//
MRESULT rc = (MRESULT)0;
//
MRESULT rc = (MRESULT)0;
- bool bProcessed = FALSE;
//
// Stop right here if we don't have a valid handle in our wxWindow object.
//
// Stop right here if we don't have a valid handle in our wxWindow object.
@@
-1325,8
+1311,6
@@
MRESULT wxFrame::OS2WindowProc(
case WM_SIZE:
{
case WM_SIZE:
{
- SHORT nScxold = SHORT1FROMMP(wParam); // Old horizontal size.
- SHORT nScyold = SHORT2FROMMP(wParam); // Old vertical size.
SHORT nScxnew = SHORT1FROMMP(lParam); // New horizontal size.
SHORT nScynew = SHORT2FROMMP(lParam); // New vertical size.
SHORT nScxnew = SHORT1FROMMP(lParam); // New horizontal size.
SHORT nScynew = SHORT2FROMMP(lParam); // New vertical size.