For a rather large program, with probably close to a hundred controls or maybe even more:
Would it be more practical to just store a global HWND variable for the main window, or to call FindWindow() each time the main window handle is needed to retrieve the handles of child controls?
It's sort a decision between memory and processing, but the difference is so small it's impossible to notice on modern machines. So I guess it wouldn't make too much of a difference. Just wondering what some experienced software engineers/developers thought.