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?

[Webinar] Streamline your web hosting managementRegister Today

x
 
captainkirkConnect With a Mentor Commented:
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
 
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
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
nil_dibCommented:
what excatly is the problem?
you can't see the treectrl in the wizzard member panel?

nil_dib
0
 
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
 
jhattinghAuthor Commented:
Thanks mate
0
All Courses

From novice to tech pro — start learning today.