Lines Matching refs:top
134 size.top = (client.Height() - bmp.bmHeight) >> 1; in OnSize()
135 size.bottom = size.top + bmp.bmHeight; in OnSize()
155 size.top = client.top + 2; in OnSize()
482 rectF.Y = (REAL)(scaled_rect.top - scrollpos.cy); in OnPaint()
529 dirty.top -= scrollpos.cy; in OnLButtonDown()
656 (scaled_rect.top >= client.top)) in FindFirstVisibleItem()
659 (scaled_rect.top < find_rect.top) || in FindFirstVisibleItem()
660 ((scaled_rect.top == find_rect.top) && (scaled_rect.left < find_rect.left))) in FindFirstVisibleItem()
765 if (scaled_rect.top - scrollpos.cy + scaled_shift_y < client.top) in ShiftTop()
769 int top; in ShiftTop() local
771 scaled_shift_y = client.top + scrollpos.cy - scaled_rect.top; in ShiftTop()
772 scaled_top = scaled_rect.top + scaled_shift_y; in ShiftTop()
773 top = (scaled_top * 100 + mScale - 1) / mScale; in ShiftTop()
774 shift_y = top - mpDragItem->rect.top; in ShiftTop()
776 else if (mpDragItem->rect.top + shift_y >= mpDragItem->rect.bottom - MIN_SCREEN_BOX_SIZE) in ShiftTop()
779 shift_y = mpDragItem->rect.bottom - MIN_SCREEN_BOX_SIZE - mpDragItem->rect.top; in ShiftTop()
785 mpDragItem->rect.top += shift_y; in ShiftTop()
837 if (mpDragItem->rect.bottom + shift_y <= mpDragItem->rect.top + MIN_SCREEN_BOX_SIZE) in ShiftBottom()
840 shift_y = mpDragItem->rect.top + MIN_SCREEN_BOX_SIZE - mpDragItem->rect.bottom; in ShiftBottom()
901 if (scaled_rect.top + scaled_shift_y < client.top) in OnMouseMove()
904 int top; in OnMouseMove() local
906 scaled_shift_y = client.top - scaled_rect.top; in OnMouseMove()
907 scaled_top = scaled_rect.top + scaled_shift_y; in OnMouseMove()
908 top = (scaled_top * 100 + mScale - 1) / mScale; in OnMouseMove()
909 shift_y = top - mpDragItem->rect.top; in OnMouseMove()
914 mpDragItem->rect.top += shift_y; in OnMouseMove()
1084 scaled.top = rect.top * mScale / 100; in GetScaledRect()
1154 rect.MoveToXY(CPoint(rect.left - scrollpos.cx, rect.top - scrollpos.cy)); in SelectedVisible()
1175 if ((rect.bottom > client.bottom) && (rect.top > client.top)) in SelectedVisible()
1182 else if ((rect.top < client.top) && (rect.bottom < client.bottom)) in SelectedVisible()
1184 scrollpos.cy += (rect.top - client.top); in SelectedVisible()
1223 if (mpDragItem->rect.top + MIN_SCREEN_BOX_SIZE >= mpDragItem->rect.bottom) in HandleKeydown()
1231 if (mpDragItem->rect.top < 1) in HandleKeydown()
1235 mpDragItem->rect.top -= 1; in HandleKeydown()
1248 mpDragItem->rect.top += 1; in HandleKeydown()
1444 source_center.y = (source->rect.top + source->rect.bottom) / 2; in CalculateConnectionPos()
1446 target_center.y = (target->rect.top + target->rect.bottom) / 2; in CalculateConnectionPos()
1455 line_start.y = (source->rect.top + source->rect.bottom) / 2; in CalculateConnectionPos()
1457 line_end.y = (target->rect.top + target->rect.bottom) / 2; in CalculateConnectionPos()
1464 line_end.y = target->rect.top; in CalculateConnectionPos()
1469 line_start.y = (source->rect.top + source->rect.bottom) / 2; in CalculateConnectionPos()
1471 line_end.y = (target->rect.top + target->rect.bottom) / 2; in CalculateConnectionPos()
1479 line_start.y = (source->rect.top + source->rect.bottom) / 2; in CalculateConnectionPos()
1481 line_end.y = (target->rect.top + target->rect.bottom) / 2; in CalculateConnectionPos()
1486 line_start.y = source->rect.top; in CalculateConnectionPos()
1493 line_start.y = (source->rect.top + source->rect.bottom) / 2; in CalculateConnectionPos()
1495 line_end.y = (target->rect.top + target->rect.bottom) / 2; in CalculateConnectionPos()
1561 if (point.y < select_inner.top) in CheckResizeCursor()
1790 size.top = listsize.top; in OnInitDialog()
1812 size.top = listsize.top; in OnInitDialog()
1819 …mpButtonFrame->SetWindowPos(&mScreenItemView, size.left, size.top, size.Width(), size.Height(), 0); in OnInitDialog()