Make wxWinCE buildable (workaround eVC++ limitations).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37733 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2006-02-25 21:15:50 +00:00
parent fc2e1beec2
commit 555b2ce915

View File

@@ -844,12 +844,14 @@ void wxHVScrolledWindow::RefreshRowColumn(size_t row, size_t column)
rect.height = OnGetRowHeight(row);
rect.width = OnGetColumnWidth(column);
for ( size_t n = GetVisibleRowsBegin(); n < row; n++ )
size_t n;
for ( n = GetVisibleRowsBegin(); n < row; n++ )
{
rect.y += OnGetRowHeight(n);
}
for ( size_t n = GetVisibleColumnsBegin(); n < column; n++ )
for ( n = GetVisibleColumnsBegin(); n < column; n++ )
{
rect.x += OnGetColumnWidth(n);
}
@@ -942,26 +944,28 @@ void wxHVScrolledWindow::RefreshRowsColumns(size_t fromRow, size_t toRow,
// calculate the rect occupied by these lines on screen
wxRect rect;
for ( size_t nBefore = GetVisibleRowsBegin();
size_t nBefore, nBetween;
for ( nBefore = GetVisibleRowsBegin();
nBefore < fromRow;
nBefore++ )
{
rect.y += OnGetRowHeight(nBefore);
}
for ( size_t nBetween = fromRow; nBetween <= toRow; nBetween++ )
for ( nBetween = fromRow; nBetween <= toRow; nBetween++ )
{
rect.height += OnGetRowHeight(nBetween);
}
for ( size_t nBefore = GetVisibleColumnsBegin();
for ( nBefore = GetVisibleColumnsBegin();
nBefore < fromColumn;
nBefore++ )
{
rect.x += OnGetColumnWidth(nBefore);
}
for ( size_t nBetween = fromColumn; nBetween <= toColumn; nBetween++ )
for ( nBetween = fromColumn; nBetween <= toColumn; nBetween++ )
{
rect.width += OnGetColumnWidth(nBetween);
}
@@ -1387,4 +1391,3 @@ void wxHVScrolledWindow::OnMouseWheel(wxMouseEvent& event)
}
#endif