AGI STK X 11Send comments on this topic.
SetMouseCursorFromHandle Method (AgUiAxVOCntrl)
See Also
CursorHandle
A windows handle to a loaded cursor file.
Windows






Windows & Linux

Description

Sets mouse cursor to the passed cursor handle.

Syntax

[Visual Basic .NET]
Public Sub SetMouseCursorFromHandle( _
    ByVal CursorHandle As Integer _
) As 
[C#]
public void SetMouseCursorFromHandle(
    int CursorHandle
);
[Managed C++]
public: void SetMouseCursorFromHandle(
    int CursorHandle
);
[Java]
public void setMouseCursorFromHandle(
    Integer CursorHandle
);
[Unmanaged C++]
public: HRESULT SetMouseCursorFromHandle(
    int CursorHandle
);

Parameters

CursorHandle
A windows handle to a loaded cursor file.

Remarks

The cursor is repalced to the newly selected cursor when the mouse pointer is moved over the control.

See Also

Example

[Visual Basic .NET]
Dim hCursor As IntPtr
hCursor = LoadCursorFromFile("C:\NewCursor.cur")
AxAgUiAxVOCntrl1.SetMouseCursorFromHandle(hCursor.ToInt32")
.....
© 2019 Analytical Graphics, Inc. All Rights Reserved.