STK X Send comments on this topic.
SetMouseCursorFromHandle Method (AgUiAxVOCntrl)
See Also  Example
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 _
) 

[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")
AxAgUiAxVOCntrl1.SetMouseCursorFromHandle(hCursor.ToInt32")
.....

See Also

© 2017 Analytical Graphics, Inc. All Rights Reserved.

STK Engine for UNIX 11.2