[C #] [Windows API] Mouse Cursor Mobile, Hide, Get

[C#][Windows API] Mouse cursor move, hide, get position

For the native method declarations used in the following examples, please refer to [Common Windows Native Methods Organizing (Windows API)].

{

/// /// Show or hide the cursor (this effect only applies to all windows on the current processing thread). ///
public static void SetCursorVisiable(Boolean Show)
{
NativeMethods.ShowCursor(Show);
}

/// /// Get or set the coordinates of the cursor on the screen ///
public static Point CursorPostion
{
get
{
Point Output;
NativeMethods.GetCursorPos(out Output);
return Output;
}
set
{
NativeMethods.SetCursorPos(value.X, ​​value.Y);
}
}
}

Share

Original text: Large column [C#][Windows API] Mouse cursor move, hide, get position< /p>

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 3093 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.