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>mousey()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
MouseY()
Return the y-position of a mouse click
------------------------------------------------------------------------------

Syntax
MouseY()   -->   nY

Arguments
None.

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

Description
This function returns the y-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: GetCaretY() MouseRow() MouseX()

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