Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - <b>mousex()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
MouseX()
Return the x-position of a mouse click
------------------------------------------------------------------------------

Syntax
MouseX()   -->   nX

Arguments
None.

Returns
An integer representing the x co-ordinate of the mouse at the
time of the click (or double click).

Description
This function returns the x-position of the mouse cursor at
the time of the click or double click, relative to the window
containing the mouse cursor.

Note:  this function should only be called when you have just
retrieved an event indicating a mouse click.

Example
// Put a red dot where the mouse was clicked
SetPixel( hDC, MouseX(), MouseY(), nRed )


See Also: GetCaretX() MouseCol() MouseY()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson