Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!rex!uflorida!kluge!serss0.fiu.edu From: acmfiu@serss0.fiu.edu (ACMFIU) Newsgroups: comp.sys.apple2 Subject: hiding data in a window structure Message-ID: <3567@kluge.fiu.edu> Date: 14 May 91 02:02:19 GMT Sender: news@kluge.fiu.edu Organization: Florida International University, Miami Lines: 19 i have an on-screen window but would like to create an off-screen grafport that would contain the contents of the window. it's no problem for me to create and maintain the off-screen grafport but what i want is to store the pointer to this grafport in some "safe" area in a windows grafport so that when i need to copy the data from off-screen to on-screen i can have the off-screen grafport readily available (i.e. i don't want to create a global for the off-screen grafport and i can do it locally by _GetPort and then getting the pointer to my off-screen grafport out of that data structure). i need to do this for some faster screen writes. i took a look at the window data structure and i could store the grafport pointer in wRefCon. however, i can find this entry in a GrafPort, which is different, to my anyway, than a window data structure you pass to NewWindow. oh yeah, if there's another 4-byte location free in the window grafport i'd like to know about that too. albert chin