Function ProMouseBoxInput
Description
Draws a dynamic rectangle from the specified point (in screen coordinates) to the current mouse position, until the user presses the left mouse button. The function then returns the coordinates of the box entered.
If you hit the middle or right mouse button instead of picking the first vertex, the function aborts.
Replacement in Object TOOLKIT:
Synopsis
#include <ProGraphic.h>
ProMouseBoxInput
(
/* (In)
If not equal to NULL, this specifies the coordinates of one of the corners of the box. If this is NULL, the function obtains the placement of both corners of the box.
*/
ProOutline outline
/* (Out)
The coordinates of the box, as selected by the user.
*/
)
Returns
The function successfully returned the box outline.
The user picked a command.
Sample Code References
User Guide References
¿Fue esto útil?