abmSetCursorFromHandle function
|
Remarks
|
Changes the cursor associated to the button using a cursor loaded in memory.
|
|
Return value
|
|
Value
|
Meaning
|
|
|
|
|
FALSE
|
The operation failed
|
|
TRUE
|
The operation was successful
|
|
|
Syntax
|
long abmSetCursorFromHandle (
HWND hWndBtn,
long hCursor
);
|
Parameters
|
Description
|
|
hWndBtn
|
Windows handle associated to the button.
|
|
hCursor
|
Handle of the new cursor.
|
|
Visual Basic example
abmSetCursorFromHandle btn1.hWnd, LoadResPicture(xxx, vbResCursor).Handle
With this code the
Cursor property will be changed using a cursor identified by xxx (contained in a .RES file).
Visual C++ example
HCURSOR hCursor = LoadCursorFromFile ("yourcursor.cur");
abmSetCursorFromHandle (btn1.GetSafeHwnd (), (OLE_HANDLE) hCursor);
With this code the
Cursor property will be changed using a cursor loaded from a file.