Re: More CChildFrame questions

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Visual settings belong in the view. Data belongs in the document.
joe

On Thu, 21 Jun 2007 17:08:16 +0100, "GT" <ContactGT_remove_@xxxxxxxxxxx> wrote:

"David Wilkinson" <no-reply@xxxxxxxxxxxx> wrote in message
news:%23tmfzbBtHHA.2752@xxxxxxxxxxxxxxxxxxxxxxx
GT wrote:

Fair enough, but see my other post in the other thread. The view does
some complex, lengthy maths when it is created, which I would rather just
do once and 'assign' the view to a childframe, then destroy the
childframe, but holding onto my view, then assign the view to another
frame later.

If this is the wrong approach, then any suggestions would be gratefully
appreciated.

GT:

Ajay has given you the correct solution in the other thread. Don't keep
the computed information in the view class itself.

I understand this now. So should I also move all the visual settings and
configuration data to the document for all my classes too - will end up with
a complicated document and some annoyingly long variable names!

Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.