Index

CDTWindow

Event_MouseButtonDown

virtual void Event_MouseButtonDown(DT_SLONG button, DT_SLONG x, DT_SLONG y)

This virtual function is called when a user presses a mouse button while the mouse pointer is inside the window. The function's button parameter provides a platform independent code of the mouse button that was pressed, while the x and y parameters provide the (x, y) coordinates of the mouse pointer at that moment. Your application can override this function in your own class in order to process this event.

Parameters

ParameterDescription

button

Platform independent code of the mouse button that was pressed.

  • 0 = left mouse button
  • 1 = right mouse button

x

x coordinate of the mouse pointer when the mouse button was pressed, in pixels and relative to the origin of the window.

y

y coordinate of the mouse pointer when the mouse button was pressed, in pixels and relative to the origin of the window.

 

Index