Type a page name and press Enter. You'll jump to the page if it exists, or you can create it if it doesn't.
To create a page in a module other than user32, prefix the name with the module name and a period.
ClientToScreen (user32)
.
C# Signature:
[DllImport("user32.dll")]
static extern bool ClientToScreen(IntPtr hWnd, ref POINT lpPoint);
VB Signature:
<DllImport("user32.dll")> _
Private Shared Function ClientToScreen(ByVal hWnd As IntPtr, ByRef lpPoint As POINT) As Boolean
Private Shared Function ClientToScreen(ByVal hWnd As IntPtr, ByRef lpPoint As Point) As Boolean
End Function
[DllImport("user32.dll")]
static extern bool ClientToScreen(IntPtr hwnd, ref Point lpPoint);
[DllImport("user32.dll")]
static extern bool SetCursorPos(int X, int Y);
public void MoveCursorOverButton(Button button)
{
IntPtr handle = IntPtr.Zero;
Point point;
int x = 0;
int y = 0;
int width = 0;
int height = 0;
bool coordinatesFound = false;
The ClientToScreen API converts the client-area coordinates of a specified point to screen coordinates.
8/4/2022 12:59:04 AM - timur.kelman+pinvoke@gmail.com-79.193.218.180
The POINT structure defines the x- and y-coordinates of a point.
9/24/2022 6:08:15 AM - -93.99.148.7
Please edit this page!
Do you have...
helpful tips or sample code to share for using this API in managed code?
corrections to the existing content?
variations of the signature you want to share?
additional languages you want to include?
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).