TITLE – Window Internals at runtime
“OK, what window are you in?”
“The Spanner Controller window.”
So here I’m shooting for the browser, w_spanner_controller? Nope, no w_spanner anything. W_controller_spanner? Nope, no w_controller anything.
“OK, what’s in the titlebar?” I ask, my frustration growing.
“Untitled, what does that mean?”
Have you ever worked on a system that had literally hundreds of windows with names that are not intuitive? I’ve seen names like w_a13_6.
There are times that at runtime we would love to get information about a window from the user. If only there were a way…
This solution requires a two prong approach. It requires that you have a base class window and a base class menu (see the NOTE at the bottom). Let’s start with the window.