3ds Max C++ API Reference
Mouse Callback Messages

Macros

#define MOUSE_ABORT   0
 Sent when the user aborts a mouse procedure. More...
 
#define MOUSE_IDLE   0
 
#define MOUSE_POINT   1
 Sent when the user has clicked a point. More...
 
#define MOUSE_MOVE   2
 Sent when the mouse input is captured and the user moved the mouse. More...
 
#define MOUSE_DBLCLICK   3
 sent when the user has double clicked the mouse. More...
 
#define MOUSE_INIT   4
 Sent when the mouse proc is plugged in as the current mouse proc. More...
 
#define MOUSE_UNINIT   5
 sent when the mouse proc is un-plugged as the current mouse proc. More...
 
#define MOUSE_FREEMOVE   6
 Similar to a MOUSE_MOVE message except it is not called when the mouse is in a 'drag' session. More...
 
#define MOUSE_KEYBOARD   7
 Keyboard input is processed by registering an accelerator table. More...
 
#define MOUSE_PROPCLICK   8
 Sent on a right click, when nothing is selected, and the user is not over any selectable object. More...
 
#define MOUSE_SNAPCLICK   9
 

Detailed Description

Macro Definition Documentation

◆ MOUSE_ABORT

#define MOUSE_ABORT   0

Sent when the user aborts a mouse procedure.

An examle is when the user is dragging the mouse and he right clicks.

◆ MOUSE_IDLE

#define MOUSE_IDLE   0

This message is used internally.

◆ MOUSE_POINT

#define MOUSE_POINT   1

Sent when the user has clicked a point.

◆ MOUSE_MOVE

#define MOUSE_MOVE   2

Sent when the mouse input is captured and the user moved the mouse.

When mouse input is captured all mouse events continue to go to the current window even when the mouse is move outside the limits of the window. This is when the user is 'dragging'.

◆ MOUSE_DBLCLICK

#define MOUSE_DBLCLICK   3

sent when the user has double clicked the mouse.

◆ MOUSE_INIT

#define MOUSE_INIT   4

Sent when the mouse proc is plugged in as the current mouse proc.

If a plug-in needed to perform some kind of initialization when it was first became current this message could be processed.

◆ MOUSE_UNINIT

#define MOUSE_UNINIT   5

sent when the mouse proc is un-plugged as the current mouse proc.

◆ MOUSE_FREEMOVE

#define MOUSE_FREEMOVE   6

Similar to a MOUSE_MOVE message except it is not called when the mouse is in a 'drag' session.

This means that mouse input is not captured. If mouse input is not captured and the mouse is moved outside the current window, the current window will no longer receive the mouse messages.

◆ MOUSE_KEYBOARD

#define MOUSE_KEYBOARD   7

Keyboard input is processed by registering an accelerator table.

See Class Interface for the methods to register a keyboard accelerator. Also see the section Keyboard Accelerators and Dialog Messages.

◆ MOUSE_PROPCLICK

#define MOUSE_PROPCLICK   8

Sent on a right click, when nothing is selected, and the user is not over any selectable object.

For example, this is how the unfreeze-by-hit pick mode knows to abort if the user presses the right mouse button. Note that this is different than if you right click while dragging - in that case you get a MOUSE_ABORT message.

◆ MOUSE_SNAPCLICK

#define MOUSE_SNAPCLICK   9