Quote Originally Posted by NLscotty View Post
Code:
class Dialog : public WinFunc
class WinFunc : public WinIcon
class WinIcon : public WinBGround
Class WinBGround : oublic WinTrats
As D_Drmmr mentioned, it looks like you're deriving classes from other classes only to save typing. That is not the way to use public inheritance.

The class hierarchy using public inheritance is supposed to model an IS-A relationship. A Windows function is not a Windows Icon, A Windows Icon is not a background, etc., so you should not be setting up your classes this way. In other words, the inheritance must make "real-world" sense.

Regards,

Paul McKenzie