proper way to store info for a window
Okay, here's another newbie question, which I get conflicting answers to when I ask people I know.
What is the proper way to get information to your window to and how are you going to store it?
Most times one would want to have your window routine know things like a pointer to what it's displaying, but since you can't just pass it each time your window routine is called, how are you supposed to do this correctly? I know one could just solve everything by using a global variable, but is this the correct way? I also found a way using static varaibles, but I am not sure of the scope of how well insulated that is from other windows that would call the routine.