carguy:
but I'm sure there are neat ways of doing this in C.
and even more neat ways in C++, which you are using.
So, how about a Display class that defines panel area objects? That class can contain functions and variables that operate on references to your data.