SET_USER_DATA@

Platform

Win32, x64

Purpose

To set the location of user data associated with the control.

Syntax

SUBROUTINE SET_USER_DATA@(HWND, LOCDATA)
INTEGER(7) HWND
INTEGER(7) LOCDATA

Description

HWND is the window handle of the control obtained by using %lc (Handle of Last Control). LOCDATA is an INTEGER(7) that is associated with the control. This can be the address of a memory location or just an integer. The data stored is up to the programmer. The data is retrieved either by using GET_USER_DATA@ or by using CLEARWIN_INFO@('USER_DATA') inside a callback for the control. The data can also be stored via the %ud (User data) format code.

See also

%ud (User data), GET_USER_DATA@

Notes

To pass the location of of a variable or or array use the LOC intrinsic.

 

 

Basket
Empty
 
Copyright © 1999-2023 Silverfrost Limited