Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "COORD" in [All]

kernel32

.

        COORD dwWriteCoord,

.

        COORD dwWriteCoord,

.

    static extern COORD GetConsoleFontSize(

.

    static extern COORD GetLargestConsoleWindowSize(

.

        COORD dwBufferSize,

.

        COORD dwBufferCoord,

.

        COORD dwReadCoord,

.

        COORD dwReadCoord,

.

       COORD dwDestinationOrigin,

.

       COORD dwCursorPosition

.

        out COORD NewScreenBufferDimensions

.

        COORD dwSize

.

        COORD dwBufferSize,

.

        COORD dwBufferCoord,

.

        COORD dwWriteCoord,

.

        COORD dwWriteCoord,

.

    public struct COORD

.

        public COORD dwSize;

.

        public COORD dwCursorPosition;

.

        public COORD dwMaximumWindowSize;

.

        public COORD dwSize;

.

        public COORD dwCursorPosition;

.

        public COORD dwMaximumWindowSize;

.

        public COORD dwFontSize;

.

        public COORD dwFontSize;

.

        public COORD dwMousePosition;

.

        public COORD dwSize;

.

        dwSize = new COORD();

.

        COORD SelectionAnchor;

.

    public struct COORD

.

        public COORD(short X, short Y)

.

    Public Structure COORD

.
Documentation
.

    static extern Coord GetConsoleFontSize(

.

    public struct Coord

.

    private Coord GetCurrentFontSize()

.

        Coord coord = GetConsoleFontSize(_consoleOutputHandle, currentFont.nFont);

.

        return coord;

.

        public COORD dwSize;

.

        public COORD dwCursorPosition;

.

        public COORD dwMaximumWindowSize;

.

        public COORD dwSize;

.

        public COORD dwCursorPosition;

.

        public COORD dwMaximumWindowSize;

.

        COORD SelectionAnchor;

.

If you want to get the current system date and time expressed in Coordinated Universal Time (UTC) format, use GetSystemTime instead.

.

/// These parameters control the translations between Coordinated Universal Time (UTC)

.

/// These parameters control translations from Coordinated Universal Time (UTC)

.

  /// Current bias for local time translation on this computer, in minutes. The bias is the difference, in minutes, between Coordinated Universal Time (UTC) and local time. All translations between UTC and local time are based on the following formula:

.

        COORD dwReadCoord,

.

    [Out] StringBuilder lpCharacter, uint nLength, COORD dwReadCoord,

.

struct COORD

.

    COORD dwReadCoord;

.

    dwReadCoord.X = 0;

.

    dwReadCoord.Y = 0;

.

    if ( !ReadConsoleOutputCharacter(stdout, lpCharacter, nLength, dwReadCoord, out lpNumberOfCharsRead) )

.

   [Out] StringBuilder lpCharacter, uint nLength, COORD dwReadCoord,

.

    [Out] StringBuilder lpCharacter, uint nLength, COORD dwReadCoord,

.

struct COORD

.

    COORD dwReadCoord;

.

    dwReadCoord.X = 0;

.

    dwReadCoord.Y = 0;

.

    if ( !ReadConsoleOutputCharacter(stdout, lpCharacter, nLength, dwReadCoord, out lpNumberOfCharsRead) )

.

   [Out] StringBuilder lpCharacter, uint nLength, COORD dwReadCoord,

.

    [Out] StringBuilder lpCharacter, uint nLength, COORD dwReadCoord,

.

private struct COORD

.

    COORD dwReadCoord;

.

    dwReadCoord.X = 0;

.

    dwReadCoord.Y = 0;

.

    if ( !ReadConsoleOutputCharacter(stdout, lpCharacter, nLength, dwReadCoord, out lpNumberOfCharsRead) )

.

        out COORD NewScreenBufferDimensions

.

        public COORD dwSize;

.

        public COORD dwCursorPosition;

.

        public COORD dwMaximumWindowSize;

.

    internal struct COORD

.

        internal COORD dwSize;

.

        internal COORD dwCursorPosition;

.

        internal COORD dwMaximumWindowSize;

.

    public struct COORD

.

        public COORD(short X, short Y)

.

        public COORD dwFontSize;

.

        public COORD dwFontSize;

.

    Public Structure COORD

.

    Public dwFontSize As COORD

.
Summary
Sets the current time zone and dynamic daylight saving time settings. These settings control translations from Coordinated Universal Time (UTC) to local time.
.
Summary
Sets the current system time and date. The system time is expressed in Coordinated Universal Time (UTC).
.

        /// and time expressed in Coordinated Universal Time (UTC).

.

        /// and time expressed in Coordinated Universal Time (UTC).

.
Summary
The SetTimeZoneInformation function sets the current time-zone parameters. These parameters control translations from Coordinated Universal Time (UTC) to local time.
.

        /// These parameters control the translations between Coordinated Universal Time (UTC)

.

        /// These parameters control translations from Coordinated Universal Time (UTC)

.

        /// Current bias for local time translation on this computer, in minutes. The bias is the difference, in minutes, between Coordinated Universal Time (UTC) and local time. All translations between UTC and local time are based on the following formula:

.

        COORD dwWriteCoord,

.

COORD

.

   string lpCharacter, uint nLength, COORD dwWriteCoord,

.

COORD

.

   ushort [] lpAttribute, uint nLength, COORD dwWriteCoord,

.

COORD

.

   string lpCharacter, uint nLength, COORD dwWriteCoord,

.

COORD

gdi32

22: BitBlt
.

/// <param name="nXDest">The leftmost x-coordinate of the destination rectangle (in pixels).</param>

.

/// <param name="nYDest">The topmost y-coordinate of the destination rectangle (in pixels).</param>

.

/// <param name="nXSrc">The leftmost x-coordinate of the source rectangle (in pixels).</param>

.

/// <param name="nYSrc">The topmost y-coordinate of the source rectangle (in pixels).</param>

.

''' <param name="nXDest">The leftmost x-coordinate of the destination rectangle (in pixels).</param>

.

''' <param name="nYDest">The topmost y-coordinate of the destination rectangle (in pixels).</param>

.

''' <param name="nXSrc">The leftmost x-coordinate of the source rectangle (in pixels).</param>

.

''' <param name="nYSrc">The topmost y-coordinate of the source rectangle (in pixels).</param>

.

                                // ...do something with start coords...

comctl32

.

/// <param name="dxHotspot">x-coordinate of the location of the drag position relative to the upper-left corner of the image.</param>

.

/// <param name="dyHotspot">y-coordinate of the location of the drag position relative to the upper-left corner of the image.</param>

.

''' <param name="dxHotspot">x-coordinate of the location of the drag position relative to the upper-left corner of the image.</param>

.

''' <param name="dyHotspot">y-coordinate of the location of the drag position relative to the upper-left corner of the image.</param>

.

/// <param name="x">X-coordinate at which to display the drag image.

.

/// The coordinate is relative to the upper-left corner of the window, not the client area.</param>

.

/// <param name="y">Y-coordinate at which to display the drag image.

.

/// The coordinate is relative to the upper-left corner of the window, not the client area.</param>

.

''' <param name="x">X-coordinate at which to display the drag image.

.

''' The coordinate is relative to the upper-left corner of the window, not the client area.</param>

.

''' <param name="y">Y-coordinate at which to display the drag image.

.

''' The coordinate is relative to the upper-left corner of the window, not the client area.</param>

.

/// <param name="x">X-coordinate at which to display the drag image.

.

/// The coordinate is relative to the upper-left corner of the window, not the client area.</param>

.

/// <param name="y">Y-coordinate at which to display the drag image.

.

/// The coordinate is relative to the upper-left corner of the window, not the client area.</param>

.

''' <param name="x">X-coordinate at which to display the drag image.

.

''' The coordinate is relative to the upper-left corner of the window, not the client area.</param>

.

''' <param name="y">Y-coordinate at which to display the drag image.

.

''' The coordinate is relative to the upper-left corner of the window, not the client area.</param>

Interfaces

.

     // x and y are in virtual screen coordinates.

Constants

.

        /// The resource manager has requested to be the coordinator (last resource manager) for the transaction.

.

        /// The transaction was successfully aborted. However, this is a coordinated transaction, and some number of enlisted resources were aborted outright because they could not support abort-retaining semantics

.

        /// The resource manager has requested to be the coordinator (last resource manager) for the transaction.

.

        /// COM+ was unable to talk to the Microsoft Distributed Transaction Coordinator

.

        /// Cannot create a duplicate resource of type Distributed Transaction Coordinator

oleacc

.

This function retrieves the lowest-level accessible object in the object hierarchy at the given point specified in screen coordinates where 0, 0 is the upper left corner. If the element at the point is not an accessible object (that is, does not support IAccessible), then the function retrieves the IAccessible interface of the parent object. The parent object must provide information about the child element through the IAccessible interface.

.

This function retrieves the lowest-level accessible object in the object hierarchy at a given point in screen coordinates where (0, 0) is the upper left corner. If the element at the point is not an accessible object (that is, does not support IAccessible), then the function retrieves the IAccessible interface of the parent object. The parent object must provide information about the child element through the IAccessible interface.

Structures

.

// containing a geocoordinate rectangle

.

    /// The x-coordinate of a cursor's hot spot

.

    /// The y-coordinate of a cursor's hot spot

.

   ''' The x-coordinate of a cursor's hot spot.

.

   ''' The y-coordinate of the cursor's hot spot.

.

        public COORD dwMousePosition;

.

        Public dwMousePosition As COORD

.

    When the window procedure receives the WM_NCCALCSIZE message, the first rectangle contains the new coordinates of a window that has been moved or resized, that is, it is the proposed new window coordinates. The second contains the coordinates of the window before it was moved or resized. The third contains the coordinates of the window's client area before the window was moved or resized. If the window is a child window, the coordinates are relative to the client area of the parent window. If the window is a top-level window, the coordinates are relative to the screen origin.

.

    When the window procedure returns, the first rectangle contains the coordinates of the new client rectangle resulting from the move or resize. The second rectangle contains the valid destination rectangle, and the third rectangle contains the valid source rectangle. The last two rectangles are used in conjunction with the return value of the WM_NCCALCSIZE message to determine the area of the window to be preserved.

35: RECT
.
Summary
The RECT structure defines the coordinates of the upper-left and lower-right corners of a rectangle.
.

    /// Time in Universal Coordinated Time (UTC) when the property set was last modified.

.

     /// The coordinates of the window's upper-left corner when the window is minimized.

.

     /// The coordinates of the window's upper-left corner when the window is maximized.

.

     /// The window's coordinates when the window is in the restored position.

.
Summary
A COORD structure that contains the size of the console screen buffer, in character cell columns and rows.
.

    public COORD dwSize;

.

        this.dwSize=new COORD(x,y);

.
    • COORD

Enums

.

    ///The transaction was successfully aborted. However, this is a coordinated transaction, and some number of enlisted resources were aborted outright because they could not support abort-retaining semantics

.

    [Description("The transaction was successfully aborted. However, this is a coordinated transaction, and some number of enlisted resources were aborted outright because they could not support abort-retaining semantics")]

.

    ///The resource manager has requested to be the coordinator (last resource manager) for the transaction.

.

    [Description("The resource manager has requested to be the coordinator (last resource manager) for the transaction.")]

.

    ///COM+ was unable to talk to the Microsoft Distributed Transaction Coordinator

.

    [Description("COM+ was unable to talk to the Microsoft Distributed Transaction Coordinator")]

.

    ///Cannot create a duplicate resource of type Distributed Transaction Coordinator

.

    [Description("Cannot create a duplicate resource of type Distributed Transaction Coordinator")]

.

    '''The transaction was successfully aborted. However, this is a coordinated transaction, and some number of enlisted resources were aborted outright because they could not support abort-retaining semantics

.

    <Description("The transaction was successfully aborted. However, this is a coordinated transaction, and some number of enlisted resources were aborted outright because they could not support abort-retaining semantics")> _

.

    '''The resource manager has requested to be the coordinator (last resource manager) for the transaction.

.

    <Description("The resource manager has requested to be the coordinator (last resource manager) for the transaction.")> _

.

    '''COM+ was unable to talk to the Microsoft Distributed Transaction Coordinator

.

    <Description("COM+ was unable to talk to the Microsoft Distributed Transaction Coordinator")> _

.

    '''Cannot create a duplicate resource of type Distributed Transaction Coordinator

.

    <Description("Cannot create a duplicate resource of type Distributed Transaction Coordinator")> _

.

        /// <summary>Coordinate data is mapped to a virtual desktop.</summary>

.

        ''' <summary>Coordinate data is mapped to a virtual desktop.</summary>

.

        /// To get the coordinates of the portion of the screen that is not obscured by the system taskbar or by application desktop toolbars,

.

        /// The SM_XVIRTUALSCREEN metric is the coordinates for the left side of the virtual screen.

.

        /// To get the coordinates of the portion of the screen not obscured by the system taskbar or by application desktop toolbars,

.

        /// The SM_YVIRTUALSCREEN metric is the coordinates for the top of the virtual screen.

.

        /// The coordinates for the left side of the virtual screen. The virtual screen is the bounding rectangle of all display monitors.

.

        /// The coordinates for the top of the virtual screen. The virtual screen is the bounding rectangle of all display monitors.

.

    ''' Width of the client area for a full-screen window on the primary display monitor in pixels. To get the coordinates of the portion of the screen not obscured by the system taskbar or by application desktop toolbars call the SystemParametersInfo function with the SPI_GETWORKAREA value.

.

    ''' Height of the client area for a full-screen window on the primary display monitor in pixels. To get the coordinates of the portion of the screen not obscured by the system taskbar or by application desktop toolbars call the SystemParametersInfo function with the SPI_GETWORKAREA value.

.

    ''' Windows 2000 (v5.0+) Coordinate of the top of the virtual screen

.

    ''' Windows 2000 (v5.0+) Coordinate of the left of the virtual screen

.

    /// A window is being minimized or maximized. The system needs the coordinates of the minimized rectangle for the window.

.

    ''' The low-order word specifies the horizontal position of the cursor, in screen coordinates,

.

    ''' The high-order word specifies the vertical position of the cursor, in screen coordinates,

.

    ''' The x and y coordinates of the upper-left corner of the client area of the window.

.

    ''' The low-order word contains the x-coordinate while the high-order word contains the y coordinate.

.

    ''' A <c>POINTS</c> structure that contains the x- and y-coordinates of the cursor.

.

    ''' The coordinates are relative to the upper-left corner of the screen.

.

    ''' A <c>POINTS</c> structure that contains the x- and y-coordinates of the cursor.

.

    ''' The coordinates are relative to the upper-left corner of the screen.

.

    ''' A <c>POINTS</c> structure that contains the x- and y-coordinates of the cursor.

.

    ''' The coordinates are relative to the upper-left corner of the screen.

.

    ''' A <c>POINTS</c> structure that contains the x- and y-coordinates of the cursor.

.

    ''' The coordinates are relative to the upper-left corner of the screen.

.

    ''' Sent to a window in order to determine what part of the window corresponds to a particular screen coordinate.

.

    ''' The low-order word specifies the x-coordinate of the cursor.

.

    ''' The coordinate is relative to the upper-left corner of the screen.

.

    ''' The high-order word specifies the y-coordinate of the cursor.

.

    ''' The coordinate is relative to the upper-left corner of the screen.

.

    ''' A pointer to a <see cref="Win32.Types.Rect"/> structure with the screen coordinates of the drag rectangle.

.

    ''' A <c>POINTS</c> structure that contains the x- and y-coordinates of the cursor.

.

    ''' The coordinates are relative to the upper-left corner of the screen.

.

    ''' The low-order word specifies the x-coordinate of the cursor.

.

    ''' The coordinate is relative to the upper-left corner of the client area.

.

    ''' The high-order word specifies the y-coordinate of the cursor.

.

    ''' The coordinate is relative to the upper-left corner of the client area.

.

    ''' The low-order word specifies the x-coordinate of the cursor.

.

    ''' The coordinate is relative to the upper-left corner of the client area.

.

    ''' The high-order word specifies the y-coordinate of the cursor.

.

    ''' The coordinate is relative to the upper-left corner of the client area.

.

    ''' The low-order word specifies the x-coordinate of the cursor.

.

    ''' The coordinate is relative to the upper-left corner of the client area.

.

    ''' The high-order word specifies the y-coordinate of the cursor.

.

    ''' The coordinate is relative to the upper-left corner of the client area.

.

    ''' The low-order word specifies the x-coordinate of the cursor.

.

    ''' The coordinate is relative to the upper-left corner of the client area.

.

    ''' The high-order word specifies the y-coordinate of the cursor.

.

    ''' The coordinate is relative to the upper-left corner of the client area.

.

    ''' A pointer to a <c>POINTS</c> structure that contains the x- and y-coordinates of the cursor.

.

    ''' The coordinates are relative to the upper-left corner of the screen.

.

    ''' A pointer to a <c>POINTS</c> structure that contains the x- and y-coordinates of the cursor.

.

    ''' The coordinates are relative to the upper-left corner of the screen.

.

    ''' A pointer to a <c>POINTS</c> structure that contains the x- and y-coordinates of the cursor.

.

    ''' The coordinates are relative to the upper-left corner of the screen.

msvcrt

43: time
.
Summary
The time function returns the number of seconds elapsed since midnight (00:00:00), January 1, 1970, coordinated universal time, according to the system clock. The return value is stored in the location given by timer. This parameter may be NULL, in which case the return value is not stored.

opengl32

.

        GL_CURRENT_TEXTURE_COORDS = 0x0B03,

.

        GL_CURRENT_RASTER_TEXTURE_COORDS = 0x0B06,

.

        GL_MAP1_TEXTURE_COORD_1 = 0x0D93,

.

        GL_MAP1_TEXTURE_COORD_2 = 0x0D94,

.

        GL_MAP1_TEXTURE_COORD_3 = 0x0D95,

.

        GL_MAP1_TEXTURE_COORD_4 = 0x0D96,

.

        GL_MAP2_TEXTURE_COORD_1 = 0x0DB3,

.

        GL_MAP2_TEXTURE_COORD_2 = 0x0DB4,

.

        GL_MAP2_TEXTURE_COORD_3 = 0x0DB5,

.

        GL_MAP2_TEXTURE_COORD_4 = 0x0DB6,

.

    public enum TextureCoordName : uint

.

        GL_TEXTURE_COORD_ARRAY = 0x8078,

.

        GL_TEXTURE_COORD_ARRAY_SIZE = 0x8088,

.

        GL_TEXTURE_COORD_ARRAY_TYPE = 0x8089,

.

        GL_TEXTURE_COORD_ARRAY_STRIDE = 0x808A,

.

        GL_TEXTURE_COORD_ARRAY_POINTER = 0x8092,

.

        GL_TEXTURE_COORD_ARRAY_EXT = 0x8078,

.

        GL_TEXTURE_COORD_ARRAY_SIZE_EXT = 0x8088,

.

        GL_TEXTURE_COORD_ARRAY_TYPE_EXT = 0x8089,

.

        GL_TEXTURE_COORD_ARRAY_STRIDE_EXT = 0x808A,

.

        GL_TEXTURE_COORD_ARRAY_COUNT_EXT = 0x808B,

.

        GL_TEXTURE_COORD_ARRAY_POINTER_EXT = 0x8092,

.

    public const double GLU_TESS_MAX_COORD = 1.0e150;

.

        GLU_TESS_COORD_TOO_LARGE = 100155,

.

    public static extern void glEvalCoord1d(double u);

.

    public static extern void glEvalCoord1dv(double[] u);

.

    public static extern void glEvalCoord1f(float u);

.

    public static extern void glEvalCoord1fv(float[] u);

.

    public static extern void glEvalCoord2d(double u, double v);

.

    public static extern void glEvalCoord2dv(double[] u);

.

    public static extern void glEvalCoord2f(float u, float v);

.

    public static extern void glEvalCoord2fv(float[] u);

.

    public static extern void glGetTexGendv(uint coord, uint pname, double[] params_notkeyword);

.

    public static extern void glGetTexGenfv(uint coord, uint pname, float[] params_notkeyword);

.

    public static extern void glGetTexGeniv(uint coord, uint pname, int[] params_notkeyword);

.

    public static extern void glTexCoord1d(double s);

.

    public static extern void glTexCoord1dv(double[] v);

.

    public static extern void glTexCoord1f(float s);

.

    public static extern void glTexCoord1fv(float[] v);

.

    public static extern void glTexCoord1i(int s);

.

    public static extern void glTexCoord1iv(int[] v);

.

    public static extern void glTexCoord1s(short s);

.

    public static extern void glTexCoord1sv(short[] v);

.

    public static extern void glTexCoord2d(double s, double t);

.

    public static extern void glTexCoord2dv(double[] v);

.

    public static extern void glTexCoord2f(float s, float t);

.

    public static extern void glTexCoord2fv(float[] v);

.

    public static extern void glTexCoord2i(int s, int t);

.

    public static extern void glTexCoord2iv(int[] v);

.

    public static extern void glTexCoord2s(short s, short t);

.

    public static extern void glTexCoord2sv(short[] v);

.

    public static extern void glTexCoord3d(double s, double t, double r);

.

    public static extern void glTexCoord3dv(double[] v);

.

    public static extern void glTexCoord3f(float s, float t, float r);

.

    public static extern void glTexCoord3fv(float[] v);

.

    public static extern void glTexCoord3i(int s, int t, int r);

.

    public static extern void glTexCoord3iv(int[] v);

.

    public static extern void glTexCoord3s(short s, short t, short r);

.

    public static extern void glTexCoord3sv(short[] v);

.

    public static extern void glTexCoord4d(double s, double t, double r, double q);

.

    public static extern void glTexCoord4dv(double[] v);

.

    public static extern void glTexCoord4f(float s, float t, float r, float q);

.

    public static extern void glTexCoord4fv(float[] v);

.

    public static extern void glTexCoord4i(int s, int t, int r, int q);

.

    public static extern void glTexCoord4iv(int[] v);

.

    public static extern void glTexCoord4s(short s, short t, short r, short q);

.

    public static extern void glTexCoord4sv(short[] v);

.

    public static extern void glTexCoordPointer(int size, uint type, int stride, float[] pointer);

.

    public static extern void glTexGend(uint coord, uint pname, double param);

.

    public static extern void glTexGendv(uint coord, uint pname, double[] params_notkeyword);

.

    public static extern void glTexGenf(uint coord, uint pname, float param);

.

    public static extern void glTexGenfv(uint coord, uint pname, float[] params_notkeyword);

.

    public static extern void glTexGeni(uint coord, uint pname, int param);

.

    public static extern void glTexGeniv(uint coord, uint pname, int[] params_notkeyword);

.

    public static extern void gluQuadricTexture(IntPtr quadObject, int textureCoords);

.

    public static extern void gluTessVertex(IntPtr tess, double[] coords, double[] data);

user32

.
Summary
The ClientToScreen API converts the client-area coordinates of a specified point to screen coordinates.
.

        bool coordinatesFound = false;

.

        coordinatesFound = ClientToScreen(handle, ref point);

.

        if (coordinatesFound == true)

.

/// <param name="x">Specifies the initial horizontal position of the window. For an overlapped or pop-up window, the x parameter is the initial x-coordinate of the window's upper-left corner, in screen coordinates. For a child window, x is the x-coordinate of the upper-left corner of the window relative to the upper-left corner of the parent window's client area. If x is set to CW_USEDEFAULT, the system selects the default position for the window's upper-left corner and ignores the y parameter. CW_USEDEFAULT is valid only for overlapped windows; if it is specified for a pop-up or child window, the x and y parameters are set to zero.</param>

.

/// <param name="y">Specifies the initial vertical position of the window. For an overlapped or pop-up window, the y parameter is the initial y-coordinate of the window's upper-left corner, in screen coordinates. For a child window, y is the initial y-coordinate of the upper-left corner of the child window relative to the upper-left corner of the parent window's client area. For a list box y is the initial y-coordinate of the upper-left corner of the list box's client area relative to the upper-left corner of the parent window's client area.

.

/// <param name="nWidth">Specifies the width, in device units, of the window. For overlapped windows, nWidth is the window's width, in screen coordinates, or CW_USEDEFAULT. If nWidth is CW_USEDEFAULT, the system selects a default width and height for the window; the default width extends from the initial x-coordinates to the right edge of the screen; the default height extends from the initial y-coordinate to the top of the icon area. CW_USEDEFAULT is valid only for overlapped windows; if CW_USEDEFAULT is specified for a pop-up or child window, the nWidth and nHeight parameter are set to zero.</param>

.

/// <param name="nHeight">Specifies the height, in device units, of the window. For overlapped windows, nHeight is the window's height, in screen coordinates. If the nWidth parameter is set to CW_USEDEFAULT, the system ignores nHeight.</param> <param name="hWndParent">Handle to the parent or owner window of the window being created. To create a child window or an owned window, supply a valid window handle. This parameter is optional for pop-up windows.

.

''' <param name="x">Specifies the initial horizontal position of the window. For an overlapped or pop-up window, the x parameter is the initial x-coordinate of the window's upper-left corner, in screen coordinates. For a child window, x is the x-coordinate of the upper-left corner of the window relative to the upper-left corner of the parent window's client area. If x is set to CW_USEDEFAULT, the system selects the default position for the window's upper-left corner and ignores the y parameter. CW_USEDEFAULT is valid only for overlapped windows; if it is specified for a pop-up or child window, the x and y parameters are set to zero.</param>

.

''' <param name="y">Specifies the initial vertical position of the window. For an overlapped or pop-up window, the y parameter is the initial y-coordinate of the window's upper-left corner, in screen coordinates. For a child window, y is the initial y-coordinate of the upper-left corner of the child window relative to the upper-left corner of the parent window's client area. For a list box y is the initial y-coordinate of the upper-left corner of the list box's client area relative to the upper-left corner of the parent window's client area.

.

''' <param name="nWidth">Specifies the width, in device units, of the window. For overlapped windows, nWidth is the window's width, in screen coordinates, or CW_USEDEFAULT. If nWidth is CW_USEDEFAULT, the system selects a default width and height for the window; the default width extends from the initial x-coordinates to the right edge of the screen; the default height extends from the initial y-coordinate to the top of the icon area. CW_USEDEFAULT is valid only for overlapped windows; if CW_USEDEFAULT is specified for a pop-up or child window, the nWidth and nHeight parameter are set to zero.</param>

.

''' <param name="nHeight">Specifies the height, in device units, of the window. For overlapped windows, nHeight is the window's height, in screen coordinates. If the nWidth parameter is set to CW_USEDEFAULT, the system ignores nHeight.</param> <param name="hWndParent">Handle to the parent or owner window of the window being created. To create a child window or an owned window, supply a valid window handle. This parameter is optional for pop-up windows.

.

    FR.left = Left_x_value 'in container's screen coordinates

.
Summary
Retrieves the cursor position in screen coordinates.
.

     public POINT ptScreenPos;       // A POINT structure that receives the screen coordinates of the cursor.

.
Summary
Retrieves the cursor position in screen coordinates.
.

     public Int32 xHotspot;     // Specifies the x-coordinate of a cursor's hot spot. If this structure defines an icon, the hot

.

     public Int32 yHotspot;     // Specifies the y-coordinate of the cursor's hot spot. If this structure defines an icon, the hot

.

        public int x ;            //Specifies the x-coordinate of the mouse

.

        public int y ;            //Specifies the y-coordinate of the mouse

.

        public int time ;             //Specifies the time stamp of the mouse coordinate

.

        public IntPtr dwExtraInfo;        //Specifies extra information associated with this coordinate.

.

This function retrieves the update region of a window by copying it into the specified region. The coordinates of the update region are relative to the upper left corner of the window; that is, they are client coordinates.

.

/** converted coords **/

.

The MSDN Docs say that ptScreen should be in client or window coordinates, but it actually needs to be in screen coordinates.

.

    /// A RECT structure that specifies the display monitor rectangle, expressed in virtual-screen coordinates.

.

    /// Note that if the monitor is not the primary display monitor, some of the rectangle's coordinates may be negative values.

.

    /// expressed in virtual-screen coordinates. Windows uses this rectangle to maximize an application on the monitor.

.

    /// Note that if the monitor is not the primary display monitor, some of the rectangle's coordinates may be negative values.

.

    /// The RECT structure defines the coordinates of the upper-left and lower-right corners of a rectangle.

.

    /// In other words, the pixel whose coordinates are ( right, bottom ) lies immediately outside of the the rectangle.

.

    /// The x-coordinate of the upper-left corner of the rectangle.

.

    /// The y-coordinate of the upper-left corner of the rectangle.

.

    /// The x-coordinate of the lower-right corner of the rectangle.

.

    /// The y-coordinate of the lower-right corner of the rectangle.

.

    /// A RECT structure that specifies the display monitor rectangle, expressed in virtual-screen coordinates.

.

    /// Note that if the monitor is not the primary display monitor, some of the rectangle's coordinates may be negative values.

.

    /// expressed in virtual-screen coordinates. Windows uses this rectangle to maximize an application on the monitor.

.

    /// Note that if the monitor is not the primary display monitor, some of the rectangle's coordinates may be negative values.

.

    /// The RECT structure defines the coordinates of the upper-left and lower-right corners of a rectangle.

.

    /// In other words, the pixel whose coordinates are ( right, bottom ) lies immediately outside of the the rectangle.

.

    /// The x-coordinate of the upper-left corner of the rectangle.

.

    /// The y-coordinate of the upper-left corner of the rectangle.

.

    /// The x-coordinate of the lower-right corner of the rectangle.

.

    /// The y-coordinate of the lower-right corner of the rectangle.

.

' Clicks left mouse button in current coordinates

.

    ' mouse_event moves in a coordinate system where

.

    ' Get the current mouse coordinates and convert

.

    ' Convert the coordinates of the center of the

.

static extern IntPtr RealChildWindowFromPoint(IntPtr hwndParent, POINT ptParentClientCoords);

.

Private Shared Function RealChildWindowFromPoint(hwndParent As IntPtr, ptParentClientCoords As POINT) As IntPtr

.

<DllImport("user32", CharSet:=CharSet.Ansi, SetLastError:=True, ExactSpelling:=True)> Public Function RealChildWindowFromPoint(ByVal hwndParent As IntPtr, ByVal ptParentClientCoords As POINTAPI) As IntPtr

.
Summary
The ScreenToClient function converts the screen coordinates of a specified point on the screen to client-area coordinates.
.
Context
using ScreenToClient to convert to a managed Rectangle. hWnd is assumed to be the handle to the form/control you need coords for
.

/** this takes the POINT, which is using screen coords (0,0 in top left screen) and converts them into coords inside specified window (0,0 from  top left of hWnd) **/

.

The last bit of the above example is incorrect. The correct client left/top will be retrieved but the width/height will be inaccurate. This function reports the distance of any given screen coordinates from the origin of our hwnd's ClientRect. In this way it allows us to deduce the location of the ClientRect origin given any other point. It does not allow us to deduce the location of any other point of the ClientRect, just the origin. The above example errs by trying to use this to deduce the distance from the ClientRect origin to the WindowRect bottom/right. This is not helpful because it will not give the accurate height and width of the ClientRect since the WindowRect bottom/right will be further out and different than the yet unknown ClientRect. The origin is deducible because that's where the function reports from, but this is not true of any other point in the ClientRect. So the proper way to use this is to make only the first call to ScreenToClient and then call GetClientRect to retrieve the ClientRect dimensions and add them to the origin.

Cut off search results after 60. Please refine your search.


 
Access PInvoke.net directly from VS: