*I know this is not the Windows/Linux forum, but this question pertains more to C++ than GUI concepts*
What is the best way to handle it when one class needs to access the members of another class, and those members are objects? For example, suppose I have a main window. That window has child controls (objects), and when events happen with those child controls, menu items in the main window's menu bar needs to be enabled or disabled.
What is the best way to access these parent objects and work with their properties from the child objects? Should I go against the rules and make the controls public? Should I have Get() methods? Friend classes? A better way/best way?