LBitmapWindow::OnSetCursor

#include "ltwrappr.h"

virtual L_BOOL LBitmapWindow::OnSetCursor(hWnd, nHitTest, message)

HWND hWnd;

/* handle to the window */

L_UINT nHitTest;

/* hit-test code */

L_UINT message;

/* Identifier of the mouse message */

This function is called whenever the class object updates its cursor.

Parameter

Description

hWnd

The Class Object’s window handle.

nHitTest

The hit-test code. For more information, refer to the Windows SDK documentation for WM_SETCURSOR.

message

Identifier of the mouse message. For more information, refer to the Windows SDK documentation for WM_SETCURSOR.

Returns

TRUE

The function was successful.

FALSE

An error occurred. Refer to Return Codes.

If an application processes this message, it should return TRUE to halt further processing or FALSE to continue.  For more information, refer to the MSDN documentation for WM_SETCURSOR.

Comments

Override this function if you want to change the cursor for the class object's window.

This function will be called following the class object's own processing of the WM_SETCURSOR message.

For more information, refer to the Windows SDK documentation for WM_SETCURSOR.

Required DLLs and Libraries

LTKRN

LTWC

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

See Also

Functions:

LBitmapWindow::SetCursor, Class Members

Example