Help Center

CWindow.UserDataproperty

Gets/sets a value in the user data area of the window.

WindowspropertyCWindow.incdocumented

Syntax

PROPERTY UserData (BYVAL idx AS LONG) AS LONG_PTR
PROPERTY UserData (BYVAL idx AS LONG, BYVAL newValue AS LONG_PTR)

Parameters

NameDescription
idxThe index number of the user data value to retrieve, in the range 0 to 99 inclusive.
newValueThe value to set.

Description

Gets/sets a value in the user data area of the window.

Examples

pWindow.UserData(1) = value

DIM value AS LONG_PTR = pWindow.UserData(1)

Reference

  • Include file CWindow.inc
  • Defined in AfxNova/CWindow.inc:648
  • Documented in Windows/Windows GUI/CWindow Class.md
  • Topic: CWindow Class