API 文件集 > Miscellaneous > Object ProGtoldata > Function ProMousePickGet
Function ProMousePickGet
Description
Reports the mouse position when the user presses one of the mouse buttons. It does not return until the user presses a button.
NOTE:
You must check the return value to make sure the user did not select a command.
Replacement in Object TOOLKIT:
Synopsis
#include <ProGraphic.h>
ProMousePickGet
(
ProMouseButton expected_button
/* (In)
The identifier of the mouse button the user is expected to use to make the pick. If the user can pick with any button, use PRO_ANY_BUTTON.
*/
ProMouseButton* button_pressed
/* (Out)
The identifier of the button used to make the pick.
*/
ProPoint3d position
/* (Out)
The coordinates of the picked point.
*/
)
Returns
The function successfully retrieved the information.
A general error occurred and the function failed.
Sample Code References
這是否有幫助?