SDI App - split views... Problem

After the wizard created my sdi app, i modified the CLeftView to be derived from CFormView. I've got it working ok, but although ClassWizard can add stuff in the message-maps tab, it can't add member variables. Why? How do I fix this?
LVL 1
jhattinghAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

nil_dibCommented:
member variables of control elements?
0
jhattinghAuthor Commented:
Yes! e.g. I have a treectrl, and without classwizard, I have to manually create() which is a bit of a pain!
0
nil_dibCommented:
what excatly is the problem?
you can't see the treectrl in the wizzard member panel?

nil_dib
0
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

jhattinghAuthor Commented:
Yep - totally blank.
0
abancroftCommented:
Try rebuilding the ClassWizard file. Delete the .CLW file from the project directory & then run ClassWizard.
0
jhattinghAuthor Commented:
Didn't work :(

Thanks all the same for your response
0
captainkirkCommented:
If i understand correctly, you have derived a class for the left pane... tell me, do your class files include the AFX_DATA_MAP and AFX_DATA_INIT macros?? If not, add them and rebuild the ClassWizard file and see if the problem goes away...
0
jhattinghAuthor Commented:
That's done it - thanks CaptainKirk. Please propose answer.

Thank you all for your help.

LWJason
0
captainkirkCommented:
repost as answer -

If i understand correctly, you have derived a class for the left pane... tell me, do your class files include the AFX_DATA_MAP and AFX_DATA_INIT macros?? If not, add them and rebuild the ClassWizard file and see if the problem goes away...
 

 
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jhattinghAuthor Commented:
Thanks mate
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C++

From novice to tech pro — start learning today.