Important: The information in this document is obsolete and should not be used for new development.
SetWRefCon
Use theSetWRefCon
procedure to set therefCon
field of a window record.
PROCEDURE SetWRefCon (theWindow: WindowPtr; data: LongInt);
- theWindow
- A pointer to the window's window record.
data
- The data to be placed in the
refCon
field.DESCRIPTION
TheSetWRefCon
procedure places the specified data in therefCon
field of the specified window record. TherefCon
field is available to your application for any window-related data it needs to store.SEE ALSO
See Listing 4-3 on page 4-28 for an example that sets therefCon
field. See Listing 4-16 on page 4-60 for an example that uses the contents of therefCon
field.