Sets the user data of the user control.
void SetData (
const void * userData,
long offset,
long size
);
Parameters
- userData
-
Pointer to the user data block.
- offset
-
0-based offset in the user data block.
- size
-
Number of bytes to set in the user data block, beginning at offset.
Description
Every user control can have a block of data describing the visual appearance and the behavior of the
item. Moreover, the application can store any other information in this block. DG makes a copy of userData
so the application can free its memory after calling SetData.
DG automatically allocates and resizes memory blocks if necessary so the data block can be enlarged by
setting (offset + size) larger than the current size of the item data field.