Help Center

CStatic.SetCursormethod

Associates a cursor with a static control.

WindowsmethodCStatic.incdocumented

Syntax

FUNCTION SetCursor (BYVAL hStatic AS HWND, BYVAL hCur AS HCURSOR) AS HCURSOR

Parameters

NameDescription
hCurHandle of the cursor to set.

Description

Associates a cursor with a static control. The return value is a handle to the cursor previously associated with the static control.

Example

DIM hOldCur AS HCURSOR = CStatic.SetCursor(hStatic, hCur)

Reference

  • Include file CStatic.inc
  • Defined in AfxNova/CStatic.inc:173
  • Documented in Windows/WIndows Controls/CStatic Class.md
  • Topic: CStatic Class