Re: Classes
- From: Joseph M. Newcomer <newcomer@xxxxxxxxxxxx>
- Date: Wed, 31 May 2006 17:46:57 -0400
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 becomeJoseph M. Newcomer [MVP]
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
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.
- Prev by Date: Re: Show a login dialog box before the main application
- Next by Date: Re: Switching from dialog based app to SDI
- Previous by thread: Re: Exception handling for new
- Next by thread: Re: Switching from dialog based app to SDI
- Index(es):
Relevant Pages
|