MFC Control Design Pattern Question
-
Hi, I am designing a series of MFC controls for inputting basic information into a DirectX Modeling program. I would like to make those controls widely available by publishing them on this (or some similar) site. This is my first time doing this, so before I put them out there for feedback and general use, I thought I'd get some input on what design patterns would be easiest or most conventional to use. Basically I am working on a control that will allow a user to input parameters for the following basic DirectX meshes: Polygon (2 params) Box (3 params) Sphere (3 params) Cylinder (5 params) Torus (4 params) Text (3 params) and it's materials (10 params, or one struct). So as you can see this control will contain a lot of information. Should I allow the user to access this material through one giant struct or wrapper class containing all the data, or by memberwise retrieval? Should the user gain access to the data by references or by values? Any references on MFC control design patterns appreciated. Thanks - Jason