I'd like to know what the "best" way is to attach data to a window, avoiding global variables if at all possible. I'm thinking along the lines of giving a window a pointer to a data structure when I open it. The data structure would contain a handle to the file, file prefs, etc. The demos I've seen have all either stored such information in a global or in an edit field in the window. If a global variable is necessary, how can I attain this as simply and as efficiently as possible? Thanks in advance, and happy thanksgiving. :) -- Brian Victor