CHorizontalWireFrameis a class that overrides
CWireFramein order to implement special wire frame behavior: horizontal-only dragging. This behavior is achieved by trapping all
MouseMoveevents and fixing the vertical position to a constant value.
CSubview* theGroupEnclosure = NULL);
theOwneris a pointer to its owner, the
CViewobject with which it is associated. It gets information about this object, such as the object's enclosure, from the object itself.
theGroupEnclosureis the subview that acts as the enclosure of the group containing this wire frame.
virtual void MouseMove(CPoint theLocation,
short theButton = 0,
BOOLEAN isShiftKey = FALSE,
BOOLEAN isControlKey = FALSE);
theLocation, the view receives and handles this event. If the wire frame is in a selected state, it responds to the mouse move event by resizing or dragging the rubberband frame in a horizontal direction.
theButtonspecifies which mouse button is used and can have the values 0 (left), 1 (middle), or 2 (right). By default, neither the Shift key nor the Control key is used in conjunction with the mouse button.