I created a CMFCPropertyGridCtrl in the main window, is the property box, has nothing to do but what I asked and concrete box
This property box is used to display and modify some of the current document properties (may attribute types of different types of document/number is different, just the way, this does not matter)
Design principles, I found that either the properties box must know the document, or document need to know properties box,
In violation of the principle of modular design
How to design reasonable point?
CodePudding user response:
Or you can have a SETTING in the class, property box or document from SETTING in the class to obtain the corresponding attributes