Re: Classes

Tech-Archive recommends: Speed Up your PC by fixing your registry



As already pointed out, if it isn't a window, there's no reason to derive from CWnd. On
the other hand, you might find it advantageous to derive from CObject if you want
CObject-like behavior. If you don't need this, you don't need to use any base class.
joe

On 28 May 2006 15:47:33 -0700, "Biancu" <mrbiancu@xxxxxxxxx> wrote:

Hi, When I create my own classes, wich are not intended to become
windows, just to perform some image processing work, should I derive
them from CWnd?
e.g.: class Image : public CWnd

or should I create a generic class, with no base class? or should I
derive from a different class?
Thanks,
Martin
Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.



Relevant Pages