
3 Mar
2004
3 Mar
'04
6:50 p.m.
Hi
So, the code to implement graph drawing would have to be freestanding function that takes window as parameter. What does it buy?
Good design, for one thing. What business does a window have knowing about graphs? A window is a window is a window. Same for a drawing surface. I've seen too many 3000-line CMyDialog: public CDialog classes to buy the reuse-is-inheritance argument. If you _really_ want to create a CMyWindow class, you can always use aggregation. Regards David Turner