BeMDI SDK

  CMDIMouseAction

CMDIMouseAction::HandleMouseDown
Handles a mouse down event.
virtual void HandleMouseDown(BPoint point, int32 hitTestArea, int32 buttons, int32 clicks);


Parameters
pointCurrent mouse position in screen coordinates.
hitTestAreaValue returned by IHitTest::HitTest. The remarks section contains a list possible values.
buttonsCombination of B_PRIMARY_MOUSE_BUTTON, B_SECONDARY_MOUSE_BUTTON and B_TERTIARY_MOUSE_BUTTON.
clicksNumber of mouse clicks. 1 for single click; 2 for double click etc.


Remarks

Determines the 'mouseAction' from the 'hitTestArea'. It respects the restrictions set for the MDI view. If the MDI view has set the MDI_NOT_RESIZABLE flag, no resize operation is started etc.

Possible values for 'hitTestArea':
MDI_NC_NONE Invalid point.
MDI_NC_SIZE_EDGE Mouse is over the resize edge. Starts a resize operation.
MDI_NC_BORDER Mouse is over the border. A double click minimizes the view, a single click starts a move operation.
MDI_NC_CLOSE_BOX Mouse is over the close box. This value is ignored by this class.
MDI_NC_MAXIMIZE_BOX Mouse is over the maximize box. Ignored.
MDI_NC_TITLE_TAB Mouse is over the title tab. This class handles this value like MDI_NC_BORDER.

  Top


© 2000 by 3rd-evolution