Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.10.24
LEADTOOLS Raster imaging C++ Class library help

LBitmapWindow::SetCursor

Show in webframe

#include "ltwrappr.h"

virtual HCURSOR LBitmapWindow::SetCursor(hCursor, uToolType = TOOL_USERMODE)

HCURSOR hCursor;

/* handle to the new cursor */

L_UINT uToolType;

/* tool type */

Sets the cursor for the specified tool type.

Parameter

Description

hCursor

Handle to the cursor to be used for the specified tool type. This HCURSOR must remain valid until it is no longer needed. No copy is made. Specify NULL to reset the cursor for all tool types to the default cursors.

uToolType

Flag that indicates the tool type for which the new cursor will be used. Possible values are:

 

Value

Meaning

 

TOOL_PANIMAGE

Set the cursor for the Pan tool.

 

TOOL_ZOOMRECT

Set the cursor for the Zoom To Rect tool.

 

TOOL_ZOOM_ON_MOUSECLICK

Set the cursor for the Zoom On Mouse Click tool.

 

TOOL_REGION

Set the cursor for the Region tool.

 

0

Set the cursor for the window.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

Specify NULL to reset the cursor for all tool types to the default cursors.

Required DLLs and Libraries

LTKRN

LTWVC

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

Platforms

Win32, x64.

See Also

Functions:

LBitmapWindow::SetToolType, Class Members

Example

 

Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.