STK X Send comments on this topic.
SetMouseCursorFromHandle Method (AgUiAx2DCntrl)
See Also  Example
CursorHandle
A windows handle to a loaded cursor file.





Description

Sets mouse cursor to the passed cursor handle.

Syntax

[Visual Basic .NET]
Public Sub SetMouseCursorFromHandle( _
   ByVal CursorHandle As Integer _
) 

[C#]
public void SetMouseCursorFromHandle(
int CursorHandle
);

[Managed C++]
public: void SetMouseCursorFromHandle(
int CursorHandle
);

[Java]
public  setMouseCursorFromHandle(
ppInteger 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.

Example

[Visual Basic .NET] Copy Code
Dim hCursor As IntPtr
hCursor = LoadCursorFromFile("C:\NewCursor.cur")
AxAgUiAx2DCntrl1.SetMouseCursorFromHandle(hCursor.ToInt32")
.....

See Also

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1