- cellRect = CellToRect( TopLeft );
- if ( cellRect != wxGridNoCellRect )
- {
- rect = cellRect;
- }
- else
- {
- rect = wxRect( 0, 0, 0, 0 );
- }
-
- cellRect = CellToRect( BottomRight );
- if ( cellRect != wxGridNoCellRect )
- {
- rect += cellRect;
- }
- else
- {
- return wxGridNoCellRect;
- }
-
- // convert to scrolled coords
- //
- int left, top, right, bottom;
- CalcScrolledPosition( rect.GetLeft(), rect.GetTop(), &left, &top );
- CalcScrolledPosition( rect.GetRight(), rect.GetBottom(), &right, &bottom );
-
- int cw, ch;
- m_gridWin->GetClientSize( &cw, &ch );
+ rect = cellRect;
+ }
+ else
+ {
+ rect = wxRect( 0, 0, 0, 0 );
+ }