Some minor corrections (typos, return value handling).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36633 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -266,7 +266,7 @@ bool wxDialog::Show( bool bShow )
|
|||||||
if ( bShow )
|
if ( bShow )
|
||||||
{
|
{
|
||||||
// dialogs don't get WM_SIZE message after creation unlike most (all?)
|
// dialogs don't get WM_SIZE message after creation unlike most (all?)
|
||||||
// other windows and so could start their life non laid out correctly
|
// other windows and so could start their life not laid out correctly
|
||||||
// if we didn't call Layout() from here
|
// if we didn't call Layout() from here
|
||||||
//
|
//
|
||||||
// NB: normally we should call it just the first time but doing it
|
// NB: normally we should call it just the first time but doing it
|
||||||
|
@@ -812,8 +812,10 @@ void wxSlider::GetPosition(
|
|||||||
vPoint.x -= vPt.x;
|
vPoint.x -= vPt.x;
|
||||||
vPoint.y -= vPt.y;
|
vPoint.y -= vPt.y;
|
||||||
}
|
}
|
||||||
*pnX = vPoint.x;
|
if (pnX)
|
||||||
*pnY = vPoint.y;
|
*pnX = vPoint.x;
|
||||||
|
if (pnY)
|
||||||
|
*pnY = vPoint.y;
|
||||||
} // end of wxSlider::GetPosition
|
} // end of wxSlider::GetPosition
|
||||||
|
|
||||||
int wxSlider::GetSelEnd() const
|
int wxSlider::GetSelEnd() const
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
// Name: msw/spinctrl.cpp
|
// Name: os2/spinctrl.cpp
|
||||||
// Purpose: wxSpinCtrl class implementation for Win32
|
// Purpose: wxSpinCtrl class implementation for OS/2
|
||||||
// Author: David Webster
|
// Author: David Webster
|
||||||
// Modified by:
|
// Modified by:
|
||||||
// Created: 10/15/99
|
// Created: 10/15/99
|
||||||
|
@@ -428,8 +428,10 @@ void wxDisplaySize(
|
|||||||
::DevCloseDC(hdcScreen);
|
::DevCloseDC(hdcScreen);
|
||||||
::WinReleasePS(hpsScreen);
|
::WinReleasePS(hpsScreen);
|
||||||
}
|
}
|
||||||
*pWidth = (int)lWidth;
|
if (pWidth)
|
||||||
*pHeight = (int)lHeight;
|
*pWidth = (int)lWidth;
|
||||||
|
if (pHeight)
|
||||||
|
*pHeight = (int)lHeight;
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxDisplaySizeMM(
|
void wxDisplaySizeMM(
|
||||||
|
Reference in New Issue
Block a user