Lines Matching refs:mpDragItem
324 mpDragItem = NULL; in BEGIN_MESSAGE_MAP()
453 if (item == mpDragItem) in OnPaint()
461 item = mpDragItem; in OnPaint()
466 if (mpDragItem == item) in OnPaint()
523 if (mpDragItem) in OnLButtonDown()
525 dirty = GetScaledRect(mpDragItem->rect); in OnLButtonDown()
537 mpDragItem = mpScreenFlow->GetFlowItem(pt, TRUE); in OnLButtonDown()
539 if (mpDragItem) in OnLButtonDown()
592 if (!mpDragItem) in OnSetFocus()
598 SelectFlowItem(mpDragItem); in OnSetFocus()
599 CRect scaled_rect = GetScaledRect(mpDragItem->rect); in OnSetFocus()
614 if (mpDragItem) in OnKillFocus()
616 CRect scaled_rect = GetScaledRect(mpDragItem->rect); in OnKillFocus()
702 if (mpDragItem) in SelectFlowItem()
706 CRect scaled_rect = GetScaledRect(mpDragItem ->rect); in SelectFlowItem()
716 mpDragItem = item; in SelectFlowItem()
724 if (item == mpDragItem) in HideFlowItem()
726 mpDragItem = NULL; in HideFlowItem()
744 shift_x = left - mpDragItem->rect.left; in ShiftLeft()
746 else if (mpDragItem->rect.left + shift_x >= mpDragItem->rect.right - MIN_SCREEN_BOX_SIZE) in ShiftLeft()
749 shift_x = mpDragItem->rect.right - MIN_SCREEN_BOX_SIZE - mpDragItem->rect.left; in ShiftLeft()
755 mpDragItem->rect.left += shift_x; in ShiftLeft()
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()
804 shift_x = right - mpDragItem->rect.right; in ShiftRight()
806 else if (mpDragItem->rect.right + shift_x <= mpDragItem->rect.left + MIN_SCREEN_BOX_SIZE) in ShiftRight()
809 shift_x = mpDragItem->rect.left + MIN_SCREEN_BOX_SIZE - mpDragItem->rect.right; in ShiftRight()
815 mpDragItem->rect.right += shift_x; in ShiftRight()
834 shift_y = bottom - mpDragItem->rect.bottom; in ShiftBottom()
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()
846 mpDragItem->rect.bottom += shift_y; in ShiftBottom()
868 if (mpDragItem && (nFlags & MK_LBUTTON)) in OnMouseMove()
876 CRect scaled_rect = GetScaledRect(mpDragItem->rect); in OnMouseMove()
891 shift_x = left - mpDragItem->rect.left; in OnMouseMove()
896 mpDragItem->rect.left += shift_x; in OnMouseMove()
897 mpDragItem->rect.right += shift_x; in OnMouseMove()
909 shift_y = top - mpDragItem->rect.top; in OnMouseMove()
914 mpDragItem->rect.top += shift_y; in OnMouseMove()
915 mpDragItem->rect.bottom += shift_y; in OnMouseMove()
957 UpdateConnectionPos(mpDragItem); in OnMouseMove()
1148 if (mpDragItem) in SelectedVisible()
1152 CRect rect = GetScaledRect(mpDragItem->rect); in SelectedVisible()
1205 if (mpDragItem) in HandleKeydown()
1214 if (EditFlowItem(mpDragItem)) in HandleKeydown()
1223 if (mpDragItem->rect.top + MIN_SCREEN_BOX_SIZE >= mpDragItem->rect.bottom) in HandleKeydown()
1227 mpDragItem->rect.bottom--; in HandleKeydown()
1231 if (mpDragItem->rect.top < 1) in HandleKeydown()
1235 mpDragItem->rect.top -= 1; in HandleKeydown()
1236 mpDragItem->rect.bottom -= 1; in HandleKeydown()
1244 mpDragItem->rect.bottom++; in HandleKeydown()
1248 mpDragItem->rect.top += 1; in HandleKeydown()
1249 mpDragItem->rect.bottom += 1; in HandleKeydown()
1257 if (mpDragItem->rect.left + MIN_SCREEN_BOX_SIZE >= mpDragItem->rect.right) in HandleKeydown()
1262 mpDragItem->rect.right--; in HandleKeydown()
1266 if (mpDragItem->rect.left < 1) in HandleKeydown()
1270 mpDragItem->rect.left -= 1; in HandleKeydown()
1271 mpDragItem->rect.right -= 1; in HandleKeydown()
1279 mpDragItem->rect.right++; in HandleKeydown()
1283 mpDragItem->rect.left += 1; in HandleKeydown()
1284 mpDragItem->rect.right += 1; in HandleKeydown()
1292 UpdateConnectionPos(mpDragItem); in HandleKeydown()
1541 if (!mpDragItem) in CheckResizeCursor()
1547 select_outer =GetScaledRect(mpDragItem->rect); in CheckResizeCursor()