CWindow.UserDataproperty
Gets/sets a value in the user data area of the window.
Syntax
PROPERTY UserData (BYVAL idx AS LONG) AS LONG_PTR
PROPERTY UserData (BYVAL idx AS LONG, BYVAL newValue AS LONG_PTR)
Parameters
| Name | Description | |
|---|---|---|
idx | The index number of the user data value to retrieve, in the range 0 to 99 inclusive. | |
newValue | The 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